Public Member Functions | List of all members
rotatingTotalPressureFvPatchScalarField Class Reference

This boundary condition provides a total pressure condition for patches in a rotating frame. More...

Inheritance diagram for rotatingTotalPressureFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for rotatingTotalPressureFvPatchScalarField:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("rotatingTotalPressure")
 
 rotatingTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 rotatingTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from totalPressureFvPatchScalarField
 TypeName ("totalPressure")
 
 totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &)
 
 totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
const wordUName () const
 
wordUName ()
 
const wordphiName () const
 
wordphiName ()
 
const wordrhoName () const
 
wordrhoName ()
 
const wordpsiName () const
 
wordpsiName ()
 
scalar gamma () const
 
scalar & gamma ()
 
const scalarFieldp0 () const
 
scalarFieldp0 ()
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 
virtual void updateCoeffs (const scalarField &p0p, const vectorField &Up)
 

Detailed Description

This boundary condition provides a total pressure condition for patches in a rotating frame.

Usage
Property Description Required Default value
U velocity field name no U
phi flux field name no phi
rho density field name no none
psi compressibility field name no none
gamma ratio of specific heats (Cp/Cv) yes
p0 static pressure reference yes
omega angular velocty of the frame [rad/s] yes

Example of the boundary condition specification:

    <patchName>
    {
        type            rotatingTotalPressure;
        U               U;
        phi             phi;
        rho             rho;
        psi             psi;
        gamma           1.4;
        p0              uniform 1e5;
        omega           100;
    }

The omega entry is a Function1 type, able to describe time varying functions.

See also
Foam::totalPressureFvPatchScalarField Foam::Function1Types
Source files

Definition at line 125 of file rotatingTotalPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ rotatingTotalPressureFvPatchScalarField() [1/5]

rotatingTotalPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Definition at line 32 of file rotatingTotalPressureFvPatchScalarField.C.

Referenced by rotatingTotalPressureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ rotatingTotalPressureFvPatchScalarField() [2/5]

rotatingTotalPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Definition at line 58 of file rotatingTotalPressureFvPatchScalarField.C.

◆ rotatingTotalPressureFvPatchScalarField() [3/5]

Definition at line 44 of file rotatingTotalPressureFvPatchScalarField.C.

◆ rotatingTotalPressureFvPatchScalarField() [4/5]

Definition at line 71 of file rotatingTotalPressureFvPatchScalarField.C.

◆ rotatingTotalPressureFvPatchScalarField() [5/5]

Definition at line 82 of file rotatingTotalPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "rotatingTotalPressure"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Reimplemented from totalPressureFvPatchScalarField.

Definition at line 175 of file rotatingTotalPressureFvPatchScalarField.H.

References rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Reimplemented from totalPressureFvPatchScalarField.

Definition at line 192 of file rotatingTotalPressureFvPatchScalarField.H.

References rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Reimplemented from totalPressureFvPatchScalarField.

Definition at line 118 of file rotatingTotalPressureFvPatchScalarField.C.

References os(), and totalPressureFvPatchScalarField::write().

Here is the call graph for this function:

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