48 fixedValueFvPatchScalarField(p, iF),
63 fixedValueFvPatchScalarField(p, iF, dict,
false),
66 gamma_(psiName_ !=
"none" ? dict.
lookup<scalar>(
"gamma") : 1),
67 p0_(
"p0", dict, p.
size())
69 if (dict.
found(
"value"))
91 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
105 fixedValueFvPatchScalarField(tppsf, iF),
120 fixedValueFvPatchScalarField::autoMap(m);
131 fixedValueFvPatchScalarField::rmap(ptf, addr);
134 refCast<const dynamicPressureFvPatchScalarField>(ptf);
153 if (psiName_ ==
"none")
171 scalar gM1ByG = (gamma_ - 1)/gamma_;
191 <<
" Incorrect pressure dimensions " << internalField().dimensions()
194 <<
" for compressible/variable density flow" <<
nl 196 <<
" for incompressible flow," <<
nl 197 <<
" on patch " << this->patch().name()
198 <<
" of field " << this->internalField().name()
199 <<
" in file " << this->internalField().objectPath()
203 fixedValueFvPatchScalarField::updateCoeffs();
const word psiName_
Name of the compressibility field used to calculate the wave speed.
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...
This boundary condition provides a dynamic pressure condition. It subtracts a kinetic energy term fro...
virtual void write(Ostream &) const
Write.
void updateCoeffs(const scalarField &p0p, const scalarField &Kp)
Update the coefficients associated with the patch field.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Foam::fvPatchFieldMapper.
const scalar gamma_
Heat capacity ratio.
const dimensionSet dimDensity
scalarField p0_
Reference pressure.
virtual void write(Ostream &) const
Write.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
defineTypeNameAndDebug(combustionModel, 0)
const word rhoName_
Name of the density field used to normalise the mass flux.
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,.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dynamicPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.