39 mixedFvPatchScalarField(p, iF),
41 psiName_(
"thermo:psi"),
57 mixedFvPatchScalarField(p, iF),
61 gamma_(dict.
lookup<scalar>(
"gamma")),
63 p0_(
"p0", dict, p.
size())
65 if (dict.
found(
"value"))
67 fvPatchScalarField::operator=
74 fvPatchScalarField::operator=(p0_);
92 mixedFvPatchScalarField(psf, p, iF, mapper),
93 rhoName_(psf.rhoName_),
94 psiName_(psf.psiName_),
95 phiName_(psf.phiName_),
109 mixedFvPatchScalarField(psf, iF),
110 rhoName_(psf.rhoName_),
111 psiName_(psf.psiName_),
112 phiName_(psf.phiName_),
126 mixedFvPatchScalarField::autoMap(m);
137 mixedFvPatchScalarField::rmap(psf, addr);
140 refCast<const transonicEntrainmentPressureFvPatchScalarField>(psf);
142 p0_.
rmap(toppsf.p0_, addr);
151 mixedFvPatchScalarField::reset(psf);
154 refCast<const transonicEntrainmentPressureFvPatchScalarField>(psf);
156 p0_.
reset(toppsf.p0_);
190 const scalar gM1ByG = (gamma_ - 1)/gamma_;
200 valueFraction() = 1 -
min(
max(Ma - Mb_, scalar(0))/(1 - Mb_), scalar(1));
212 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
213 writeEntryIfDifferent<word>(os,
"psi",
"thermo:psi", psiName_);
214 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
virtual void write(Ostream &) const
Write.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
dimensionedScalar sqrt(const dimensionedScalar &ds)
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.
const dimensionedScalar c
Speed of light in a vacuum.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
This boundary condition provides an entrainment condition for pressure including support for superson...
const dimensionSet & dimensions() const
Return dimensions.
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const dimensionSet dimMassFlux
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensioned< scalar > mag(const dimensioned< Type > &)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
transonicEntrainmentPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
dimensionedScalar negPart(const dimensionedScalar &ds)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.