pressureControl Class Reference

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...

Public Member Functions

 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...
 

Detailed Description

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.

Source files

Definition at line 54 of file pressureControl.H.

Constructor & Destructor Documentation

◆ pressureControl()

pressureControl ( const volScalarField p,
const volScalarField rho,
const dictionary dict,
const bool  pRefRequired = true 
)

Construct from the SIMPLE/PIMPLE sub-dictionary.

Definition at line 33 of file pressureControl.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), dict, Foam::dimDensity, Foam::dimPressure, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, dictionary::found(), dictionary::get(), Foam::Info, IOWarningInFunction, Foam::max(), Foam::min(), Foam::nl, p, pMin, dictionary::readEntry(), dictionary::readIfPresent(), Foam::reduce(), rho, rhoMax, rhoMin, Foam::setRefCell(), and dimensioned< Type >::value().

Here is the call graph for this function:

Member Function Documentation

◆ refCell()

Foam::label refCell ( ) const
inline

Return the cell in which the reference pressure is set.

Definition at line 30 of file pressureControlI.H.

◆ refValue()

Foam::scalar refValue ( ) const
inline

Return the pressure reference level.

Definition at line 36 of file pressureControlI.H.

◆ limit()

bool limit ( volScalarField p) const

Limit the pressure if necessary and return true if so.

Definition at line 231 of file pressureControl.C.

References Foam::endl(), Foam::Info, Foam::max(), Foam::min(), p, pMin, and dimensioned< Type >::value().

Here is the call graph for this function:

The documentation for this class was generated from the following files: