40 fixedValueFvPatchScalarField(p, iF),
43 psiName_(
"thermo:psi"),
57 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
59 phiName_(ptf.phiName_),
60 psiName_(ptf.psiName_),
73 fixedValueFvPatchScalarField(p, iF, dict,
false),
78 T0_(
"T0", dict, p.
size())
80 if (dict.
found(
"value"))
99 fixedValueFvPatchScalarField(tppsf),
100 UName_(tppsf.UName_),
101 phiName_(tppsf.phiName_),
102 psiName_(tppsf.psiName_),
103 gamma_(tppsf.gamma_),
114 fixedValueFvPatchScalarField(tppsf, iF),
115 UName_(tppsf.UName_),
116 phiName_(tppsf.phiName_),
117 psiName_(tppsf.psiName_),
118 gamma_(tppsf.gamma_),
130 fixedValueFvPatchScalarField::autoMap(m);
141 fixedValueFvPatchScalarField::rmap(ptf, addr);
144 refCast<const totalTemperatureFvPatchScalarField>(ptf);
146 T0_.
rmap(tiptf.T0_, addr);
166 scalar gM1ByG = (gamma_ - 1.0)/gamma_;
170 T0_/(1.0 + 0.5*psip*gM1ByG*(1.0 -
pos0(phip))*
magSqr(Up))
173 fixedValueFvPatchScalarField::updateCoeffs();
180 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
181 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
182 writeEntryIfDifferent<word>(os,
"psi",
"thermo:psi", psiName_);
185 writeEntry(
"value", os);
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...
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
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
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
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.
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
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.