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...
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< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
inletOutletTotalTemperatureFvPatchScalarField (const inletOutletTotalTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
const scalarField & | T0 () const |
Return the total pressure. More... | |
scalarField & | T0 () |
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 | psiName_ |
Name of the compressibility field used to calculate the wave speed. More... | |
scalar | gamma_ |
Heat capacity ratio. More... | |
scalarField | T0_ |
Total pressure. More... | |
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.
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:
myPatch { type inletOutletTotalTemperature; U U; phi phi; psi psi; gamma gamma; inletValue uniform 0; T0 uniform 0; value uniform 0; }
Definition at line 118 of file inletOutletTotalTemperatureFvPatchScalarField.H.
inletOutletTotalTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 of file inletOutletTotalTemperatureFvPatchScalarField.C.
Referenced by inletOutletTotalTemperatureFvPatchScalarField::clone().
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 dict, p, and scalarField().
inletOutletTotalTemperatureFvPatchScalarField | ( | const inletOutletTotalTemperatureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
inletOutletTotalTemperatureFvPatchScalarField onto a new patch
Definition at line 55 of file inletOutletTotalTemperatureFvPatchScalarField.C.
inletOutletTotalTemperatureFvPatchScalarField | ( | const inletOutletTotalTemperatureFvPatchScalarField & | tppsf | ) |
Construct as copy.
Definition at line 106 of file inletOutletTotalTemperatureFvPatchScalarField.C.
inletOutletTotalTemperatureFvPatchScalarField | ( | const inletOutletTotalTemperatureFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 120 of file inletOutletTotalTemperatureFvPatchScalarField.C.
TypeName | ( | "inletOutletTotalTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 177 of file inletOutletTotalTemperatureFvPatchScalarField.H.
References inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 194 of file inletOutletTotalTemperatureFvPatchScalarField.H.
References inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField().
|
inline |
Return the total pressure.
Definition at line 210 of file inletOutletTotalTemperatureFvPatchScalarField.H.
References inletOutletTotalTemperatureFvPatchScalarField::T0_.
|
inline |
Return reference to the total pressure to allow adjustment.
Definition at line 216 of file inletOutletTotalTemperatureFvPatchScalarField.H.
References inletOutletTotalTemperatureFvPatchScalarField::T0_.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 136 of file inletOutletTotalTemperatureFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 146 of file inletOutletTotalTemperatureFvPatchScalarField.C.
References inletOutletTotalTemperatureFvPatchScalarField::T0_.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 160 of file inletOutletTotalTemperatureFvPatchScalarField.C.
References inletOutletTotalTemperatureFvPatchScalarField::gamma_, Foam::magSqr(), Foam::pos(), inletOutletTotalTemperatureFvPatchScalarField::psiName_, inletOutletTotalTemperatureFvPatchScalarField::T0_, and inletOutletTotalTemperatureFvPatchScalarField::UName_.
|
virtual |
Write.
Definition at line 186 of file inletOutletTotalTemperatureFvPatchScalarField.C.
References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().
|
private |
Name of the velocity field.
Definition at line 125 of file inletOutletTotalTemperatureFvPatchScalarField.H.
Referenced by inletOutletTotalTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Name of the compressibility field used to calculate the wave speed.
Definition at line 128 of file inletOutletTotalTemperatureFvPatchScalarField.H.
Referenced by inletOutletTotalTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Heat capacity ratio.
Definition at line 131 of file inletOutletTotalTemperatureFvPatchScalarField.H.
Referenced by inletOutletTotalTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Total pressure.
Definition at line 134 of file inletOutletTotalTemperatureFvPatchScalarField.H.
Referenced by inletOutletTotalTemperatureFvPatchScalarField::rmap(), inletOutletTotalTemperatureFvPatchScalarField::T0(), and inletOutletTotalTemperatureFvPatchScalarField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.