42 fixedValueFvPatchScalarField(
p, iF,
dict, false),
43 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
44 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
45 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
46 psiName_(
dict.lookupOrDefault<
word>(
"psi",
"none")),
47 gamma_(psiName_ !=
"none" ?
dict.lookup<scalar>(
"gamma",
dimless) : 1),
53 db().time().userUnits(),
59 if (
dict.found(
"value"))
82 fixedValueFvPatchScalarField(ptf,
p, iF, mapper, false),
84 phiName_(ptf.phiName_),
85 rhoName_(ptf.rhoName_),
86 psiName_(ptf.psiName_),
103 fixedValueFvPatchScalarField(ptf, iF),
105 phiName_(ptf.phiName_),
106 rhoName_(ptf.rhoName_),
107 psiName_(ptf.psiName_),
125 scalar p0 = p0_->value(this->db().time().value());
132 if (psiName_ ==
"none")
150 scalar gM1ByG = (gamma_ - 1)/gamma_;
157 (1.0 + 0.5*psip*gM1ByG*
neg(phip)*
magSqr(Up)),
177 <<
" Incorrect pressure dimensions " << internalField().dimensions()
180 <<
" for compressible/variable density flow" <<
nl
182 <<
" for incompressible flow," <<
nl
183 <<
" on patch " << this->patch().name()
184 <<
" of field " << this->internalField().name()
185 <<
" in file " << this->internalField().objectPath()
189 fixedValueFvPatchScalarField::updateCoeffs();
195 updateCoeffs(patch().lookupPatchField<volVectorField, vector>(UName_));
202 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
203 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
210 db().time().userUnits(),
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.
Run-time selectable general function of one variable.
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.
virtual void operator==(const fvPatchField< Type > &)
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...
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimPressure
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const dimensionSet dimDensity
VolField< scalar > volScalarField
dimensionedScalar neg(const dimensionedScalar &ds)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
dimensioned< scalar > magSqr(const dimensioned< Type > &)