mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-07-29 18:57:56 -05:00
Add support for using free boundary conditions in Flow
The OPM spesific keywords FREEBC[XYZ[-]] can be used to specify boundary cells that are open. Default is a closed boundary.
This commit is contained in:
@@ -361,11 +361,12 @@ protected:
|
||||
unsigned timeIdx,
|
||||
const FluidState& exFluidState)
|
||||
{
|
||||
bool enableBoundaryMassFlux = false;
|
||||
const auto& problem = elemCtx.problem();
|
||||
|
||||
bool enableBoundaryMassFlux = problem.hasFreeBoundaryConditions();
|
||||
if (!enableBoundaryMassFlux)
|
||||
return;
|
||||
|
||||
const auto& problem = elemCtx.problem();
|
||||
const auto& stencil = elemCtx.stencil(timeIdx);
|
||||
const auto& scvf = stencil.boundaryFace(scvfIdx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user