55 if (psiName_ ==
"none")
73 const scalar gM1ByG = (gamma_ - 1)/gamma_;
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();
119 fixedValueFvPatchScalarField(p, iF),
134 fixedValueFvPatchScalarField(p, iF, dict,
false),
138 p0_(
"p0", dict, p.
size())
140 if (dict.
found(
"value"))
162 fixedValueFvPatchScalarField(psf, p, iF, mapper),
176 fixedValueFvPatchScalarField(tppsf, iF),
191 fixedValueFvPatchScalarField::autoMap(m);
202 fixedValueFvPatchScalarField::rmap(psf, addr);
205 refCast<const dynamicPressureFvPatchScalarField>(psf);
216 fixedValueFvPatchScalarField::reset(psf);
219 refCast<const dynamicPressureFvPatchScalarField>(psf);
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.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
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.
void updateCoeffs(const scalarField &p0p, const scalarField &K0mKp)
Update the coefficients associated with the patch field.
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.