Skip to content

libraries_porousBoundaryConditions_darcyGradPressure

phorgue edited this page Sep 27, 2021 · 3 revisions

darcyGradPressure BC

Description

This boundary condition provides a fixed gradient condition for pressure p, pressure head h or potential potential to impose fixed Darcy velocity. After computing the flux phi corresponding to the fixed velocity U, fixed gradient is computed as:

grad(p) = - (phi-phiG-phiPc)/M

where phi is the total flux, phiG the gravity-induced flux, phiPc capillary-induced flux and M the phase mobility (depends on the solver used)

Solver specificities

Usage

<patchName>
{
    type            darcyGradPressure;
    phiName         phi; // optional (phi by default)
    value           uniform 0; // optional initial value (necessary for paraview display)
}

Comments

This boundary generally requires a fixedValue BC on velocity which may be variable in time and in space (darcyGradPressure updates pressure gradient at each time iteration).

Restrictions

This boundary works for most solvers except anisoImpesFoam which requires the use of darcyGradPressureAniso due to its tensorial permeability field.

Return to porousMultiphaseFoam main page