Public Member Functions | List of all members
inletOutletTotalTemperatureFvPatchScalarField Class Reference

This boundary condition provides an outflow condition for total temperature for use with supersonic cases, where a user-specified value is applied in the case of reverse flow. More...

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

Public Member Functions

 TypeName ("inletOutletTotalTemperature")
 Runtime type information. More...
 
 inletOutletTotalTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 inletOutletTotalTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 inletOutletTotalTemperatureFvPatchScalarField (const inletOutletTotalTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 inletOutletTotalTemperatureFvPatchScalarField (const inletOutletTotalTemperatureFvPatchScalarField &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 inletOutletTotalTemperatureFvPatchScalarField (const inletOutletTotalTemperatureFvPatchScalarField &, 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...
 

Detailed Description

This boundary condition provides an outflow condition for total temperature for use with supersonic cases, where a user-specified value is applied in the case of reverse flow.

Usage
Property Description Required Default value
U velocity field name no U
phi flux field name no phi
psi compressibility field name no psi
gamma heat capacity ration (Cp/Cv) yes
inletValue reverse flow (inlet) value yes
T0 static temperature [K] yes

Example of the boundary condition specification:

    <patchName>
    {
        type            inletOutletTotalTemperature;
        U               U;
        phi             phi;
        psi             psi;
        gamma           gamma;
        inletValue      uniform 0;
        T0              uniform 0;
        value           uniform 0;
    }
See also
Foam::inletOutletFvPatchField
Source files

Definition at line 117 of file inletOutletTotalTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 36 of file inletOutletTotalTemperatureFvPatchScalarField.C.

References Foam::Zero.

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

Here is the caller graph for this function:

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

Construct from patch, internal field and dictionary.

Definition at line 72 of file inletOutletTotalTemperatureFvPatchScalarField.C.

References dictionary::found(), inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField(), dictionary::lookupOrDefault(), scalarField(), fvPatch::size(), and Foam::Zero.

Here is the call graph for this function:

Construct by mapping given.

inletOutletTotalTemperatureFvPatchScalarField onto a new patch

Definition at line 55 of file inletOutletTotalTemperatureFvPatchScalarField.C.

References inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField().

Here is the call graph for this function:

Construct as copy.

Definition at line 106 of file inletOutletTotalTemperatureFvPatchScalarField.C.

References inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField().

Here is the call graph for this function:

Construct as copy setting internal field reference.

Definition at line 120 of file inletOutletTotalTemperatureFvPatchScalarField.C.

References inletOutletTotalTemperatureFvPatchScalarField::autoMap().

Here is the call graph for this function:

Member Function Documentation

TypeName ( "inletOutletTotalTemperature"  )

Runtime type information.

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 176 of file inletOutletTotalTemperatureFvPatchScalarField.H.

References inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField().

Here is the call graph for this function:

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

Construct and return a clone setting internal field reference.

Definition at line 193 of file inletOutletTotalTemperatureFvPatchScalarField.H.

References inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField().

Here is the call graph for this function:

const scalarField& T0 ( ) const
inline

Return the total pressure.

Definition at line 209 of file inletOutletTotalTemperatureFvPatchScalarField.H.

scalarField& T0 ( )
inline
void autoMap ( const fvPatchFieldMapper m)
virtual

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

Definition at line 136 of file inletOutletTotalTemperatureFvPatchScalarField.C.

References inletOutletTotalTemperatureFvPatchScalarField::rmap().

Referenced by inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField(), and inletOutletTotalTemperatureFvPatchScalarField::T0().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Update the coefficients associated with the patch field.

Definition at line 160 of file inletOutletTotalTemperatureFvPatchScalarField.C.

References Foam::magSqr(), and Foam::pos().

Referenced by inletOutletTotalTemperatureFvPatchScalarField::T0().

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( Ostream os) const
virtual

Write.

Definition at line 186 of file inletOutletTotalTemperatureFvPatchScalarField.C.

References token::END_STATEMENT, Foam::makePatchTypeField(), Foam::nl, fvPatchField< Type >::write(), and Field< Type >::writeEntry().

Referenced by inletOutletTotalTemperatureFvPatchScalarField::T0().

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: