41 fixedValueFvPatchScalarField(p, iF),
59 fixedValueFvPatchScalarField(p, iF, dict,
false),
67 if (dict.
found(
"value"))
76 const scalar t = this->db().time().timeOutputValue();
91 fixedValueFvPatchScalarField(ptf, p, iF, mapper,
false),
93 phiName_(ptf.phiName_),
94 rhoName_(ptf.rhoName_),
95 psiName_(ptf.psiName_),
99 patchType() = ptf.patchType();
103 const scalar t = this->db().time().timeOutputValue();
114 fixedValueFvPatchScalarField(ptf),
116 phiName_(ptf.phiName_),
117 rhoName_(ptf.rhoName_),
118 psiName_(ptf.psiName_),
131 fixedValueFvPatchScalarField(ptf, iF),
133 phiName_(ptf.phiName_),
134 rhoName_(ptf.rhoName_),
135 psiName_(ptf.psiName_),
153 scalar p0 = p0_->value(this->db().time().timeOutputValue());
160 if (psiName_ ==
"none")
178 scalar gM1ByG = (gamma_ - 1)/gamma_;
185 (1.0 + 0.5*psip*gM1ByG*(1.0 -
pos0(phip))*
magSqr(Up)),
205 <<
" Incorrect pressure dimensions " << internalField().dimensions()
208 <<
" for compressible/variable density flow" <<
nl 210 <<
" for incompressible flow," <<
nl 211 <<
" on patch " << this->patch().name()
212 <<
" of field " << this->internalField().name()
213 <<
" in file " << this->internalField().objectPath()
217 fixedValueFvPatchScalarField::updateCoeffs();
223 updateCoeffs(patch().lookupPatchField<volVectorField, vector>(UName_));
230 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
231 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
const dimensionSet dimPressure
virtual label size() const
Return size.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
dimensionedScalar pos0(const dimensionedScalar &ds)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const dimensionSet dimDensity
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.