40 fixedValueFvPatchScalarField(p, iF),
43 psiName_(
"thermo:psi"),
56 fixedValueFvPatchScalarField(p, iF, dict,
false),
60 gamma_(dict.
lookup<scalar>(
"gamma")),
61 T0_(
"T0", dict, p.
size())
63 if (dict.
found(
"value"))
85 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
87 phiName_(ptf.phiName_),
88 psiName_(ptf.psiName_),
100 fixedValueFvPatchScalarField(tppsf, iF),
101 UName_(tppsf.UName_),
102 phiName_(tppsf.phiName_),
103 psiName_(tppsf.psiName_),
104 gamma_(tppsf.gamma_),
116 fixedValueFvPatchScalarField::autoMap(m);
127 fixedValueFvPatchScalarField::rmap(ptf, addr);
130 refCast<const totalTemperatureFvPatchScalarField>(ptf);
132 T0_.
rmap(tiptf.T0_, addr);
152 scalar gM1ByG = (gamma_ - 1.0)/gamma_;
156 T0_/(1.0 + 0.5*psip*gM1ByG*(1.0 -
pos0(phip))*
magSqr(Up))
159 fixedValueFvPatchScalarField::updateCoeffs();
166 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
167 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
168 writeEntryIfDifferent<word>(os,
"psi",
"thermo:psi", psiName_);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
This boundary condition provides a total temperature condition.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Macros for easy insertion into run-time selection tables.
virtual void write(Ostream &) const
Write.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A class for handling words, derived from string.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
dimensionedScalar pos0(const dimensionedScalar &ds)
totalTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.