Provides controls for the pressure reference in closed-volume simulations and a general method for limiting the pressure during the startup of steady-state simulations. More...
Public Member Functions | |
pressureControl (const volScalarField &p, const volScalarField &pRef, const volScalarField &rho, const dictionary &dict, const bool pRefRequired=true) | |
Construct from the simple/pimple sub-dictionary. More... | |
pressureControl (const volScalarField &p, const volScalarField &rho, const dictionary &dict, const bool pRefRequired=true) | |
Construct from the simple/pimple sub-dictionary. More... | |
label | refCell () const |
Return the cell in which the reference pressure is set. More... | |
scalar | refValue () const |
Return the pressure reference level. More... | |
bool | limit (volScalarField &p) const |
Limit the pressure if necessary and return true if so. More... | |
Provides controls for the pressure reference in closed-volume simulations and a general method for limiting the pressure during the startup of steady-state simulations.
Definition at line 52 of file pressureControl.H.
pressureControl | ( | const volScalarField & | p, |
const volScalarField & | pRef, | ||
const volScalarField & | rho, | ||
const dictionary & | dict, | ||
const bool | pRefRequired = true |
||
) |
Construct from the simple/pimple sub-dictionary.
supporting the pressure and derived pressure fields (e.g. p_rgh)
Definition at line 32 of file pressureControl.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::dimDensity, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, dictionary::found(), Foam::Info, IOWarningInFunction, dictionary::lookup(), Foam::max(), Foam::min(), Foam::nl, patchi, pMin(), Foam::reduce(), Foam::setRefCell(), and dimensioned< Type >::value().
pressureControl | ( | const volScalarField & | p, |
const volScalarField & | rho, | ||
const dictionary & | dict, | ||
const bool | pRefRequired = true |
||
) |
Construct from the simple/pimple sub-dictionary.
Definition at line 235 of file pressureControl.C.
|
inline |
Return the cell in which the reference pressure is set.
Definition at line 28 of file pressureControlI.H.
|
inline |
Return the pressure reference level.
Definition at line 34 of file pressureControlI.H.
bool limit | ( | volScalarField & | p | ) | const |
Limit the pressure if necessary and return true if so.
Definition at line 248 of file pressureControl.C.
References GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), Foam::endl(), Foam::Info, Foam::max(), Foam::min(), pMin(), and dimensioned< Type >::value().