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:
Tor Harald Sandve
2019-02-07 14:56:55 +01:00
parent 4ecda15b11
commit a5463ed1a0
3 changed files with 95 additions and 21 deletions
+3 -2
View File
@@ -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);