Public Member Functions | Private Attributes
totalTemperatureFvPatchScalarField Class Reference

This boundary condition provides a total temperature condition. More...

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

Public Member Functions

 TypeName ("totalTemperature")
 Runtime type information. More...
 
 totalTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 totalTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 totalTemperatureFvPatchScalarField (const totalTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given totalTemperatureFvPatchScalarField. More...
 
 totalTemperatureFvPatchScalarField (const totalTemperatureFvPatchScalarField &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 totalTemperatureFvPatchScalarField (const totalTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
const scalarFieldT0 () const
 Return the total pressure. More...
 
scalarFieldT0 ()
 Return reference to the total pressure to allow adjustment. 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...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Private Attributes

word UName_
 Name of the velocity field. More...
 
word phiName_
 Name of the flux transporting the field. More...
 
word psiName_
 Name of the compressibility field used to calculate the wave speed. More...
 
scalar gamma_
 Heat capacity ratio. More...
 
scalarField T0_
 Total pressure. More...
 

Detailed Description

This boundary condition provides a total temperature condition.


Patch usage

Property Description Required Default value
U Velocity field name no U
phi Flux field name no phi
psi Compressibility field name no thermo:psi
gamma ratio of specific heats (Cp/Cv) yes
T0 reference temperature yes

Example of the boundary condition specification:

    myPatch
    {
        type            totalTemperature;
        T0              uniform 300;
    }
Source files
See also
Foam::fixedValueFvPatchField

Definition at line 104 of file totalTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ totalTemperatureFvPatchScalarField() [1/5]

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

Construct from patch and internal field.

Definition at line 35 of file totalTemperatureFvPatchScalarField.C.

Referenced by totalTemperatureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ totalTemperatureFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 67 of file totalTemperatureFvPatchScalarField.C.

References dict, p, and scalarField().

Here is the call graph for this function:

◆ totalTemperatureFvPatchScalarField() [3/5]

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

Construct by mapping given totalTemperatureFvPatchScalarField.

onto a new patch

Definition at line 50 of file totalTemperatureFvPatchScalarField.C.

◆ totalTemperatureFvPatchScalarField() [4/5]

Construct as copy.

Definition at line 95 of file totalTemperatureFvPatchScalarField.C.

◆ totalTemperatureFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 109 of file totalTemperatureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "totalTemperature"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 166 of file totalTemperatureFvPatchScalarField.H.

References totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField().

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.

Definition at line 183 of file totalTemperatureFvPatchScalarField.H.

References totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField().

Here is the call graph for this function:

◆ T0() [1/2]

const scalarField& T0 ( ) const
inline

Return the total pressure.

Definition at line 199 of file totalTemperatureFvPatchScalarField.H.

References totalTemperatureFvPatchScalarField::T0_.

◆ T0() [2/2]

scalarField& T0 ( )
inline

Return reference to the total pressure to allow adjustment.

Definition at line 205 of file totalTemperatureFvPatchScalarField.H.

References totalTemperatureFvPatchScalarField::T0_.

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

Map (and resize as needed) from self given a mapping object.

Definition at line 126 of file totalTemperatureFvPatchScalarField.C.

◆ rmap()

void rmap ( const fvPatchScalarField ptf,
const labelList addr 
)
virtual

Reverse map the given fvPatchField onto this fvPatchField.

Definition at line 136 of file totalTemperatureFvPatchScalarField.C.

References totalTemperatureFvPatchScalarField::T0_.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 177 of file totalTemperatureFvPatchScalarField.C.

References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().

Here is the call graph for this function:

Field Documentation

◆ UName_

word UName_
private

Name of the velocity field.

Definition at line 111 of file totalTemperatureFvPatchScalarField.H.

Referenced by totalTemperatureFvPatchScalarField::updateCoeffs().

◆ phiName_

word phiName_
private

Name of the flux transporting the field.

Definition at line 114 of file totalTemperatureFvPatchScalarField.H.

Referenced by totalTemperatureFvPatchScalarField::updateCoeffs().

◆ psiName_

word psiName_
private

Name of the compressibility field used to calculate the wave speed.

Definition at line 117 of file totalTemperatureFvPatchScalarField.H.

Referenced by totalTemperatureFvPatchScalarField::updateCoeffs().

◆ gamma_

scalar gamma_
private

Heat capacity ratio.

Definition at line 120 of file totalTemperatureFvPatchScalarField.H.

Referenced by totalTemperatureFvPatchScalarField::updateCoeffs().

◆ T0_

scalarField T0_
private

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