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") : 1),
50 if (
dict.found(
"value"))
59 const scalar t = this->db().time().userTimeValue();
74 fixedValueFvPatchScalarField(ptf,
p, iF, mapper, false),
76 phiName_(ptf.phiName_),
77 rhoName_(ptf.rhoName_),
78 psiName_(ptf.psiName_),
84 const scalar t = this->db().time().userTimeValue();
96 fixedValueFvPatchScalarField(ptf, iF),
98 phiName_(ptf.phiName_),
99 rhoName_(ptf.rhoName_),
100 psiName_(ptf.psiName_),
118 scalar p0 = p0_->value(this->db().time().userTimeValue());
125 if (psiName_ ==
"none")
143 scalar gM1ByG = (gamma_ - 1)/gamma_;
150 (1.0 + 0.5*psip*gM1ByG*
neg(phip)*
magSqr(Up)),
170 <<
" Incorrect pressure dimensions " << internalField().dimensions()
173 <<
" for compressible/variable density flow" <<
nl
175 <<
" for incompressible flow," <<
nl
176 <<
" on patch " << this->patch().name()
177 <<
" of field " << this->internalField().name()
178 <<
" in file " << this->internalField().objectPath()
182 fixedValueFvPatchScalarField::updateCoeffs();
188 updateCoeffs(patch().lookupPatchField<volVectorField, vector>(UName_));
195 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
196 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...
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....
Foam::fvPatchFieldMapper.
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 > &)
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 > &)