Go to the documentation of this file.
41 inletOutletFvPatchScalarField(
p, iF),
49 this->valueFraction() = 0.0;
62 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
78 inletOutletFvPatchScalarField(
p, iF),
79 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
80 psiName_(
dict.lookupOrDefault<
word>(
"psi",
"thermo:psi")),
82 T0_(
"T0",
dict,
p.size())
84 this->phiName_ =
dict.lookupOrDefault<
word>(
"phi",
"phi");
87 if (
dict.found(
"value"))
100 this->valueFraction() = 0.0;
110 inletOutletFvPatchScalarField(tppsf),
125 inletOutletFvPatchScalarField(tppsf, iF),
140 inletOutletFvPatchScalarField::autoMap(m);
151 inletOutletFvPatchScalarField::rmap(ptf, addr);
154 refCast<const inletOutletTotalTemperatureFvPatchScalarField>(ptf);
156 T0_.rmap(tiptf.
T0_, addr);
179 T0_/(1.0 + 0.5*psip*gM1ByG*(1.0 -
pos(phip))*
magSqr(Up));
180 this->valueFraction() = 1.0 -
pos(phip);
182 inletOutletFvPatchScalarField::updateCoeffs();
190 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
191 writeEntryIfDifferent<word>(os,
"phi",
"phi", this->phiName_);
192 writeEntryIfDifferent<word>(os,
"psi",
"psi", psiName_);
194 T0_.writeEntry(
"T0", os);
195 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
A class for handling words, derived from string.
This boundary condition provides an outflow condition for total temperature for use with supersonic c...
scalarField T0_
Total pressure.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
word psiName_
Name of the compressibility field used to calculate the wave speed.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
inletOutletTotalTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
scalar gamma_
Heat capacity ratio.
Traits class for primitives.
volScalarField scalarField(fieldObject, mesh)
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
word UName_
Name of the velocity field.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar pos(const dimensionedScalar &ds)