Go to the documentation of this file.
42 fixedValueFvPatchScalarField(
p, iF),
45 psiName_(
"thermo:psi"),
59 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
61 phiName_(ptf.phiName_),
62 psiName_(ptf.psiName_),
75 fixedValueFvPatchScalarField(
p, iF,
dict,
false),
76 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
77 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
78 psiName_(
dict.lookupOrDefault<
word>(
"psi",
"thermo:psi")),
79 gamma_(
dict.get<scalar>(
"gamma")),
80 T0_(
"T0",
dict,
p.size())
82 if (
dict.found(
"value"))
101 fixedValueFvPatchScalarField(tppsf),
102 UName_(tppsf.UName_),
103 phiName_(tppsf.phiName_),
104 psiName_(tppsf.psiName_),
105 gamma_(tppsf.gamma_),
116 fixedValueFvPatchScalarField(tppsf, iF),
117 UName_(tppsf.UName_),
118 phiName_(tppsf.phiName_),
119 psiName_(tppsf.psiName_),
120 gamma_(tppsf.gamma_),
132 fixedValueFvPatchScalarField::autoMap(m);
143 fixedValueFvPatchScalarField::rmap(ptf, addr);
146 refCast<const totalTemperatureFvPatchScalarField>(ptf);
148 T0_.rmap(tiptf.T0_, addr);
168 scalar gM1ByG = (gamma_ - 1.0)/gamma_;
172 T0_/(1.0 + 0.5*psip*gM1ByG*(1.0 -
pos0(phip))*
magSqr(Up))
175 fixedValueFvPatchScalarField::updateCoeffs();
187 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
totalTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const std::string patch
OpenFOAM patch number as a std::string.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
This boundary condition provides a total temperature condition.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...