Public Member Functions | List of all members
uniformTotalPressureFvPatchScalarField Class Reference

This boundary condition provides a time-varying form of the uniform total pressure boundary condition Foam::totalPressureFvPatchField. More...

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

Public Member Functions

 TypeName ("uniformTotalPressure")
 
 uniformTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 uniformTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 uniformTotalPressureFvPatchScalarField (const uniformTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 uniformTotalPressureFvPatchScalarField (const uniformTotalPressureFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 uniformTotalPressureFvPatchScalarField (const uniformTotalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
const wordUName () const
 
wordUName ()
 
scalar gamma () const
 
scalar & gamma ()
 
virtual void updateCoeffs (const vectorField &Up)
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

Detailed Description

This boundary condition provides a time-varying form of the uniform total pressure boundary condition Foam::totalPressureFvPatchField.

Usage
Property Description Required Default value
U Velocity field name no U
phi Flux field name no phi
rho Density field name no rho
psi Compressibility field name no none
gamma (Cp/Cv) no 1
p0 Total pressure as a function of time yes

Example of the boundary condition specification:

    <patchName>
    {
        type            uniformTotalPressure;
        p0              uniform 1e5;
    }

The p0 entry is specified as a Function1 type, able to describe time varying functions.

See also
Foam::Function1Types Foam::uniformFixedValueFvPatchField Foam::totalPressureFvPatchField
Source files

Definition at line 114 of file uniformTotalPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ uniformTotalPressureFvPatchScalarField() [1/5]

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

Definition at line 32 of file uniformTotalPressureFvPatchScalarField.C.

Referenced by uniformTotalPressureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ uniformTotalPressureFvPatchScalarField() [2/5]

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

Definition at line 49 of file uniformTotalPressureFvPatchScalarField.C.

References dict, Foam::operator==(), and p.

Here is the call graph for this function:

◆ uniformTotalPressureFvPatchScalarField() [3/5]

uniformTotalPressureFvPatchScalarField ( const uniformTotalPressureFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Definition at line 80 of file uniformTotalPressureFvPatchScalarField.C.

References Foam::operator==().

Here is the call graph for this function:

◆ uniformTotalPressureFvPatchScalarField() [4/5]

Definition at line 106 of file uniformTotalPressureFvPatchScalarField.C.

◆ uniformTotalPressureFvPatchScalarField() [5/5]

Definition at line 122 of file uniformTotalPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "uniformTotalPressure"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Definition at line 179 of file uniformTotalPressureFvPatchScalarField.H.

References uniformTotalPressureFvPatchScalarField::uniformTotalPressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Definition at line 196 of file uniformTotalPressureFvPatchScalarField.H.

References uniformTotalPressureFvPatchScalarField::uniformTotalPressureFvPatchScalarField().

Here is the call graph for this function:

◆ UName() [1/2]

const word& UName ( ) const
inline

Definition at line 212 of file uniformTotalPressureFvPatchScalarField.H.

◆ UName() [2/2]

word& UName ( )
inline

Definition at line 219 of file uniformTotalPressureFvPatchScalarField.H.

◆ gamma() [1/2]

scalar gamma ( ) const
inline

Definition at line 225 of file uniformTotalPressureFvPatchScalarField.H.

◆ gamma() [2/2]

scalar& gamma ( )
inline

Definition at line 231 of file uniformTotalPressureFvPatchScalarField.H.

◆ updateCoeffs() [1/2]

void updateCoeffs ( const vectorField Up)
virtual

◆ updateCoeffs() [2/2]

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Definition at line 223 of file uniformTotalPressureFvPatchScalarField.C.

References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

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