rotatingTotalPressureFvPatchScalarField Class Reference

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

Inheritance diagram for rotatingTotalPressureFvPatchScalarField:
Collaboration diagram for rotatingTotalPressureFvPatchScalarField:

Public Member Functions

 TypeName ("rotatingTotalPressure")
 Runtime type information. More...
 
 rotatingTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 rotatingTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given rotatingTotalPressureFvPatchScalarField. More...
 
 rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &)
 Copy constructor. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from totalPressureFvPatchScalarField
 TypeName ("totalPressure")
 Runtime type information. More...
 
 totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given totalPressureFvPatchScalarField. More...
 
 totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &)
 Copy constructor. More...
 
 totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
void updateCoeffs (const scalarField &p0p, const vectorField &Up)
 Update the coefficients associated with the patch field. More...
 
- Public Member Functions inherited from dynamicPressureFvPatchScalarField
 TypeName ("dynamicPressure")
 Runtime type information. More...
 
 dynamicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 dynamicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given dynamicPressureFvPatchScalarField. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &)
 Copy constructor. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField. More...
 
void updateCoeffs (const scalarField &p0p, const scalarField &Kp)
 Update the coefficients associated with the patch field. More...
 

Additional Inherited Members

- Protected Attributes inherited from totalPressureFvPatchScalarField
const word UName_
 Name of the velocity field. More...
 
const word phiName_
 Name of the flux field. More...
 
- Protected Attributes inherited from dynamicPressureFvPatchScalarField
const word rhoName_
 Name of the density field used to normalise the mass flux. More...
 
const word psiName_
 Name of the compressibility field used to calculate the wave speed. More...
 
const scalar gamma_
 Heat capacity ratio. More...
 
scalarField p0_
 Reference pressure. More...
 

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 velocity 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::Function1s
Source files

Definition at line 124 of file rotatingTotalPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ rotatingTotalPressureFvPatchScalarField() [1/5]

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

Construct from patch and internal field.

Definition at line 36 of file rotatingTotalPressureFvPatchScalarField.C.

Referenced by rotatingTotalPressureFvPatchScalarField::clone(), and rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField().

Here is the caller graph for this function:

◆ rotatingTotalPressureFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 48 of file rotatingTotalPressureFvPatchScalarField.C.

References rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField().

Here is the call graph for this function:

◆ rotatingTotalPressureFvPatchScalarField() [3/5]

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

Construct by mapping given rotatingTotalPressureFvPatchScalarField.

onto a new patch

Definition at line 61 of file rotatingTotalPressureFvPatchScalarField.C.

References rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField().

Here is the call graph for this function:

◆ rotatingTotalPressureFvPatchScalarField() [4/5]

◆ rotatingTotalPressureFvPatchScalarField() [5/5]

Copy constructor setting internal field reference.

Definition at line 86 of file rotatingTotalPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "rotatingTotalPressure"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Reimplemented from totalPressureFvPatchScalarField.

Definition at line 174 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

Construct and return a clone setting internal field reference.

Reimplemented from totalPressureFvPatchScalarField.

Definition at line 191 of file rotatingTotalPressureFvPatchScalarField.H.

References rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField(), rotatingTotalPressureFvPatchScalarField::updateCoeffs(), and rotatingTotalPressureFvPatchScalarField::write().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Reimplemented from totalPressureFvPatchScalarField.

Definition at line 98 of file rotatingTotalPressureFvPatchScalarField.C.

References Foam::mag(), dynamicPressureFvPatchScalarField::p0_, totalPressureFvPatchScalarField::UName_, totalPressureFvPatchScalarField::updateCoeffs(), and Function1< Type >::value().

Referenced by rotatingTotalPressureFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from totalPressureFvPatchScalarField.

Definition at line 119 of file rotatingTotalPressureFvPatchScalarField.C.

References Foam::makePatchTypeField(), totalPressureFvPatchScalarField::write(), and Foam::writeEntry().

Referenced by rotatingTotalPressureFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

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