Provides controls for the pressure reference is closed-volume simulations and a general method for limiting the pressure during the startup of steady-state simulations. More...
#include <pressureControl.H>
Public Member Functions | |
| pressureControl (const volScalarField &p, const volScalarField &rho, const dictionary &dict, const bool pRefRequired=true) | |
| Construct from the SIMPLE/PIMPLE sub-dictionary. | |
| label | refCell () const |
| Return the cell in which the reference pressure is set. | |
| scalar | refValue () const |
| Return the pressure reference level. | |
| bool | limit (volScalarField &p) const |
| Limit the pressure if necessary and return true if so. | |
Provides controls for the pressure reference is closed-volume simulations and a general method for limiting the pressure during the startup of steady-state simulations.
Definition at line 50 of file pressureControl.H.
| pressureControl | ( | const volScalarField & | p, |
| const volScalarField & | rho, | ||
| const dictionary & | dict, | ||
| const bool | pRefRequired = true ) |
Construct from the SIMPLE/PIMPLE sub-dictionary.
Definition at line 26 of file pressureControl.C.
References dict, Foam::dimPressure, if(), p, pMin, Foam::reduce(), UPstream::reduceAnd(), rho, Foam::setRefCell(), and Foam::Zero.

|
inline |
Return the cell in which the reference pressure is set.
Definition at line 23 of file pressureControlI.H.
|
inline |
Return the pressure reference level.
Definition at line 29 of file pressureControlI.H.
| bool limit | ( | volScalarField & | p | ) | const |
Limit the pressure if necessary and return true if so.
Definition at line 224 of file pressureControl.C.
References Foam::endl(), Foam::Info, Foam::max(), Foam::min(), p, and pMin.
