41 inletOutletFvPatchScalarField(p, iF),
47 this->refValue() =
Zero;
48 this->refGrad() =
Zero;
49 this->valueFraction() = 0.0;
61 inletOutletFvPatchScalarField(p, iF),
64 gamma_(dict.
lookup<scalar>(
"gamma")),
65 T0_(
"T0", dict, p.
size())
69 this->refValue() =
Zero;
70 if (dict.
found(
"value"))
82 this->refGrad() =
Zero;
83 this->valueFraction() = 0.0;
96 inletOutletFvPatchScalarField(ptf, p, iF, mapper),
98 psiName_(ptf.psiName_),
111 inletOutletFvPatchScalarField(tppsf, iF),
112 UName_(tppsf.UName_),
113 psiName_(tppsf.psiName_),
114 gamma_(tppsf.gamma_),
126 inletOutletFvPatchScalarField::autoMap(m);
137 inletOutletFvPatchScalarField::rmap(ptf, addr);
140 refCast<const inletOutletTotalTemperatureFvPatchScalarField>(ptf);
142 T0_.
rmap(tiptf.T0_, addr);
162 scalar gM1ByG = (gamma_ - 1.0)/gamma_;
165 T0_/(1.0 + 0.5*psip*gM1ByG*(1.0 -
pos0(phip))*
magSqr(Up));
166 this->valueFraction() = 1.0 -
pos0(phip);
168 inletOutletFvPatchScalarField::updateCoeffs();
176 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
177 writeEntryIfDifferent<word>(os,
"phi",
"phi", this->phiName_);
178 writeEntryIfDifferent<word>(os,
"psi",
"psi", psiName_);
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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.
This boundary condition provides an outflow condition for total temperature for use with supersonic c...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
virtual void write(Ostream &) const
Write.
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)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
inletOutletTotalTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.