77 p0p/
pow(scalar(1) - psip*gM1ByG*K0mKp, 1/gM1ByG)
95 <<
" Incorrect pressure dimensions " << internalField().dimensions()
98 <<
" for compressible/variable density flow" <<
nl
100 <<
" for incompressible flow," <<
nl
101 <<
" on patch " << this->patch().name()
102 <<
" of field " << this->internalField().name()
103 <<
" in file " << this->internalField().objectPath()
107 fixedValueFvPatchScalarField::updateCoeffs();
120 fixedValueFvPatchScalarField(
p, iF,
dict, false),
121 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
122 psiName_(
dict.lookupOrDefault<
word>(
"psi",
"none")),
123 gamma_(
dict.lookupOrDefault<scalar>(
"gamma", 1)),
124 p0_(
"p0",
dict,
p.size())
126 if (
dict.found(
"value"))
148 fixedValueFvPatchScalarField(psf,
p, iF, mapper),
149 rhoName_(psf.rhoName_),
150 psiName_(psf.psiName_),
162 fixedValueFvPatchScalarField(tppsf, iF),
163 rhoName_(tppsf.rhoName_),
164 psiName_(tppsf.psiName_),
165 gamma_(tppsf.gamma_),
178 fixedValueFvPatchScalarField::map(psf, mapper);
181 refCast<const dynamicPressureFvPatchScalarField>(psf);
183 mapper(p0_, dpsf.
p0_);
192 fixedValueFvPatchScalarField::reset(psf);
195 refCast<const dynamicPressureFvPatchScalarField>(psf);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
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....
This boundary condition provides a dynamic pressure condition. It subtracts a kinetic energy term fro...
scalarField p0_
Reference pressure.
virtual void write(Ostream &) const
Write.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
const scalar gamma_
Heat capacity ratio.
virtual void map(const fvPatchScalarField &, const fvPatchFieldMapper &)
Map the given fvPatchField onto this fvPatchField.
void updateCoeffs(const scalarField &p0p, const scalarField &K0mKp)
Update the coefficients associated with the patch field.
dynamicPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
const word rhoName_
Name of the density field used to normalise the mass flux.
const word psiName_
Name of the compressibility field used to calculate the wave speed.
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 UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimPressure
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
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
defineTypeNameAndDebug(combustionModel, 0)