42 inletOutletFvPatchScalarField(
p, iF),
43 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
44 psiName_(
dict.lookupOrDefault<
word>(
"psi",
"psi")),
48 this->phiName_ =
dict.lookupOrDefault<
word>(
"phi",
"phi");
50 this->refValue() =
Zero;
51 if (
dict.found(
"value"))
63 this->refGrad() =
Zero;
64 this->valueFraction() = 0.0;
77 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
79 psiName_(ptf.psiName_),
92 inletOutletFvPatchScalarField(tppsf, iF),
94 psiName_(tppsf.psiName_),
108 inletOutletFvPatchScalarField::map(ptf, mapper);
111 refCast<const inletOutletTotalTemperatureFvPatchScalarField>(ptf);
113 mapper(T0_, tiptf.T0_);
122 inletOutletFvPatchScalarField::reset(ptf);
125 refCast<const inletOutletTotalTemperatureFvPatchScalarField>(ptf);
127 T0_.reset(tiptf.T0_);
147 scalar gM1ByG = (gamma_ - 1.0)/gamma_;
150 T0_/(1.0 + 0.5*psip*gM1ByG*
neg(phip)*
magSqr(Up));
151 this->valueFraction() =
neg(phip);
153 inletOutletFvPatchScalarField::updateCoeffs();
161 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
162 writeEntryIfDifferent<word>(os,
"phi",
"phi", this->phiName_);
163 writeEntryIfDifferent<word>(os,
"psi",
"psi", psiName_);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
This boundary condition provides an outflow condition for total temperature for use with supersonic c...
virtual void write(Ostream &) const
Write.
inletOutletTotalTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const fvPatchScalarField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
A class for handling words, derived from string.
VolField< vector > volVectorField
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimTemperature
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
VolField< scalar > volScalarField
dimensionedScalar neg(const dimensionedScalar &ds)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
dimensioned< scalar > magSqr(const dimensioned< Type > &)