41 fixedValueFvPatchScalarField(p, iF),
59 fixedValueFvPatchScalarField(p, iF, dict,
false),
64 gamma_(psiName_ !=
"none" ? dict.
lookup<scalar>(
"gamma") : 1),
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_),
101 const scalar t = this->db().time().timeOutputValue();
113 fixedValueFvPatchScalarField(ptf, iF),
115 phiName_(ptf.phiName_),
116 rhoName_(ptf.rhoName_),
117 psiName_(ptf.psiName_),
135 scalar p0 = p0_->value(this->db().time().timeOutputValue());
142 if (psiName_ ==
"none")
160 scalar gM1ByG = (gamma_ - 1)/gamma_;
167 (1.0 + 0.5*psip*gM1ByG*(1.0 -
pos0(phip))*
magSqr(Up)),
187 <<
" Incorrect pressure dimensions " << internalField().dimensions()
190 <<
" for compressible/variable density flow" <<
nl 192 <<
" for incompressible flow," <<
nl 193 <<
" on patch " << this->patch().name()
194 <<
" of field " << this->internalField().name()
195 <<
" in file " << this->internalField().objectPath()
199 fixedValueFvPatchScalarField::updateCoeffs();
205 updateCoeffs(patch().lookupPatchField<volVectorField, vector>(UName_));
212 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
213 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
Run-time selectable general function of one variable.
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.
const dimensionSet dimPressure
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 dimDensity
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)
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.