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... | |
inletOutletTotalTemperatureFvPatchScalarField (const inletOutletTotalTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< scalar > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Clone with an 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... | |
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 | thermo: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; }
Definition at line 115 of file inletOutletTotalTemperatureFvPatchScalarField.H.
inletOutletTotalTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 32 of file inletOutletTotalTemperatureFvPatchScalarField.C.
References Foam::Zero.
inletOutletTotalTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 68 of file inletOutletTotalTemperatureFvPatchScalarField.C.
References dict, and Foam::Zero.
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 51 of file inletOutletTotalTemperatureFvPatchScalarField.C.
inletOutletTotalTemperatureFvPatchScalarField | ( | const inletOutletTotalTemperatureFvPatchScalarField & | tppsf | ) |
Construct as copy.
Definition at line 98 of file inletOutletTotalTemperatureFvPatchScalarField.C.
inletOutletTotalTemperatureFvPatchScalarField | ( | const inletOutletTotalTemperatureFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 112 of file inletOutletTotalTemperatureFvPatchScalarField.C.
TypeName | ( | "inletOutletTotalTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Definition at line 204 of file inletOutletTotalTemperatureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Definition at line 213 of file inletOutletTotalTemperatureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
|
inline |
Return the total pressure.
Definition at line 228 of file inletOutletTotalTemperatureFvPatchScalarField.H.
|
inline |
Return reference to the total pressure to allow adjustment.
Definition at line 236 of file inletOutletTotalTemperatureFvPatchScalarField.H.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 128 of file inletOutletTotalTemperatureFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 138 of file inletOutletTotalTemperatureFvPatchScalarField.C.
References inletOutletTotalTemperatureFvPatchScalarField::rmap().
Referenced by inletOutletTotalTemperatureFvPatchScalarField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 152 of file inletOutletTotalTemperatureFvPatchScalarField.C.
References Foam::magSqr(), Foam::neg(), and Foam::foamVersion::patch.
|
virtual |
Write.
Definition at line 178 of file inletOutletTotalTemperatureFvPatchScalarField.C.
References os(), fvPatchField< Type >::write(), Ostream::writeEntry(), Ostream::writeEntryIfDifferent(), and fvPatchField< Type >::writeValueEntry().