Go to the documentation of this file.
44 inletOutletFvPatchScalarField(
p, iF),
50 this->refValue() =
Zero;
52 this->valueFraction() = 0.0;
65 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
67 psiName_(ptf.psiName_),
81 inletOutletFvPatchScalarField(
p, iF),
82 UName_(
dict.getOrDefault<
word>(
"U",
"U")),
83 psiName_(
dict.getOrDefault<
word>(
"psi",
"thermo:psi")),
84 gamma_(
dict.
get<scalar>(
"gamma")),
85 T0_(
"T0",
dict,
p.size())
89 this->phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
91 this->refValue() =
Zero;
92 if (
dict.found(
"value"))
105 this->valueFraction() = 0.0;
115 inletOutletFvPatchScalarField(tppsf),
116 UName_(tppsf.UName_),
117 psiName_(tppsf.psiName_),
118 gamma_(tppsf.gamma_),
130 inletOutletFvPatchScalarField(tppsf, iF),
131 UName_(tppsf.UName_),
132 psiName_(tppsf.psiName_),
133 gamma_(tppsf.gamma_),
145 inletOutletFvPatchScalarField::autoMap(m);
156 inletOutletFvPatchScalarField::rmap(ptf, addr);
159 refCast<const inletOutletTotalTemperatureFvPatchScalarField>(ptf);
161 T0_.rmap(tiptf.T0_, addr);
175 const fvsPatchField<scalar>& phip =
178 const fvPatchField<scalar>& psip =
181 scalar gM1ByG = (gamma_ - 1.0)/gamma_;
185 this->valueFraction() = 1.0 -
pos0(phip);
187 inletOutletFvPatchScalarField::updateCoeffs();
200 writeEntry(
"value",
os);
211 inletOutletTotalTemperatureFvPatchScalarField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
virtual void operator=(const UList< Type > &)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
This boundary condition provides an outflow condition for total temperature for use with supersonic c...
static constexpr const zero Zero
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual void autoMap(const fvPatchFieldMapper &)
dimensionedScalar pos0(const dimensionedScalar &ds)
virtual void rmap(const fvPatchScalarField &, const labelList &)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
virtual void write(Ostream &) const
virtual void updateCoeffs()
inletOutletTotalTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
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 a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Vector< scalar > vector
A scalar version of the templated Vector.
GeometricField< vector, fvPatchField, volMesh > volVectorField
fvPatchField< vector > fvPatchVectorField
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...
Ostream & writeEntry(const keyType &key, const T &value)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...