40 mixedFvPatchScalarField(
p, iF,
dict, false),
41 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
42 psiName_(
dict.lookupOrDefault<
word>(
"psi",
"psi")),
43 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
45 Mb_(
dict.lookupOrDefault<scalar>(
"Mb",
dimless, 0.5)),
48 if (
dict.found(
"value"))
75 mixedFvPatchScalarField(psf,
p, iF, mapper),
76 rhoName_(psf.rhoName_),
77 psiName_(psf.psiName_),
78 phiName_(psf.phiName_),
92 mixedFvPatchScalarField(psf, iF),
93 rhoName_(psf.rhoName_),
94 psiName_(psf.psiName_),
95 phiName_(psf.phiName_),
110 mixedFvPatchScalarField::map(psf, mapper);
113 refCast<const transonicEntrainmentPressureFvPatchScalarField>(psf);
115 mapper(p0_, toppsf.p0_);
124 mixedFvPatchScalarField::reset(psf);
127 refCast<const transonicEntrainmentPressureFvPatchScalarField>(psf);
129 p0_.reset(toppsf.p0_);
163 const scalar gM1ByG = (gamma_ - 1)/gamma_;
173 valueFraction() = 1 -
min(
max(Ma - Mb_, scalar(0))/(1 - Mb_), scalar(1));
185 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
186 writeEntryIfDifferent<word>(os,
"psi",
"psi", psiName_);
187 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
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.
Generic GeometricField class.
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.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual void operator=(const UList< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
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 entrainment condition for pressure including support for superson...
virtual void write(Ostream &) const
Write.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
transonicEntrainmentPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
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.
const dimensionedScalar c
Speed of light in a vacuum.
const dimensionSet dimPressure
const dimensionSet dimMassFlux
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar negPart(const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)