pressureReference Class Reference

Provides controls for the pressure reference in closed-volume simulations. More...

Public Member Functions

 pressureReference (const volScalarField &p, const volScalarField &pRef, const dictionary &dict, const bool pRefRequired=true)
 Construct from the simple/pimple sub-dictionary. More...
 
 pressureReference (const volScalarField &p, 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...
 

Detailed Description

Provides controls for the pressure reference in closed-volume simulations.

Source files

Definition at line 50 of file pressureReference.H.

Constructor & Destructor Documentation

◆ pressureReference() [1/2]

pressureReference ( const volScalarField p,
const volScalarField pRef,
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 31 of file pressureReference.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, p, and Foam::setRefCell().

Here is the call graph for this function:

◆ pressureReference() [2/2]

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

Construct from the simple/pimple sub-dictionary.

Definition at line 111 of file pressureReference.C.

Member Function Documentation

◆ refCell()

Foam::label refCell ( ) const
inline

Return the cell in which the reference pressure is set.

Definition at line 28 of file pressureReferenceI.H.

Referenced by Foam::fv::CorrectPhi(), incompressibleDenseParticleFluid::correctPressure(), incompressibleFluid::correctPressure(), and main().

Here is the caller graph for this function:

◆ refValue()

Foam::scalar refValue ( ) const
inline

Return the pressure reference level.

Definition at line 34 of file pressureReferenceI.H.

Referenced by incompressibleDenseParticleFluid::correctPressure(), incompressibleFluid::correctPressure(), and main().

Here is the caller graph for this function:

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