44 fixedValueFvPatchScalarField(
p, iF),
63 UName_(
dict.getOrDefault<
word>(
"U",
"U")),
64 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
65 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
66 psiName_(
dict.getOrDefault<
word>(
"psi",
"none")),
67 gamma_(psiName_ !=
"none" ?
dict.
get<scalar>(
"gamma") : 1),
70 if (!this->readValueEntry(
dict))
72 const scalar t = this->db().time().timeOutputValue();
81 const uniformTotalPressureFvPatchScalarField& ptf,
83 const DimensionedField<scalar, volMesh>& iF,
84 const fvPatchFieldMapper& mapper
87 fixedValueFvPatchScalarField(
p, iF),
89 phiName_(ptf.phiName_),
90 rhoName_(ptf.rhoName_),
91 psiName_(ptf.psiName_),
95 patchType() = ptf.patchType();
99 const scalar t = this->db().time().timeOutputValue();
110 fixedValueFvPatchScalarField(ptf),
112 phiName_(ptf.phiName_),
113 rhoName_(ptf.rhoName_),
114 psiName_(ptf.psiName_),
127 fixedValueFvPatchScalarField(ptf, iF),
129 phiName_(ptf.phiName_),
130 rhoName_(ptf.rhoName_),
131 psiName_(ptf.psiName_),
149 scalar
p0 = p0_->value(this->db().time().timeOutputValue());
155 if (psiName_ ==
"none")
173 scalar gM1ByG = (gamma_ - 1)/gamma_;
180 (1.0 + 0.5*psip*gM1ByG*(
neg(phip))*
magSqr(Up)),
200 <<
" Incorrect pressure dimensions " << internalField().dimensions()
203 <<
" for compressible/variable density flow" <<
nl 205 <<
" for incompressible flow," <<
nl 206 <<
" on patch " << this->
patch().name()
207 <<
" of field " << this->internalField().name()
208 <<
" in file " << this->internalField().objectPath()
212 fixedValueFvPatchScalarField::updateCoeffs();
218 updateCoeffs(
patch().lookupPatchField<volVectorField>(UName_));
242 uniformTotalPressureFvPatchScalarField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
virtual void operator==(const fvPatchField< scalar > &)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
const dimensionSet dimPressure
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const dimensionSet dimDensity
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const volScalarField & p0
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)