This boundary condition provides a dynamic pressure condition. It subtracts a kinetic energy term from a reference pressure to get a value which is fixed on the boundary. It forms the base class for the total and entrainment pressure conditions. More...
Public Member Functions | |
TypeName ("dynamicPressure") | |
Runtime type information. More... | |
dynamicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given dynamicPressureFvPatchScalarField. More... | |
dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
virtual void | map (const fvPatchScalarField &, const fieldMapper &) |
Map the given fvPatchField onto this fvPatchField. More... | |
virtual void | reset (const fvPatchScalarField &) |
Reset the fvPatchField to the given fvPatchField. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Protected Member Functions | |
void | updateCoeffs (const scalarField &p0p, const scalarField &K0mKp) |
Update the coefficients associated with the patch field. More... | |
Protected Attributes | |
const word | rhoName_ |
Name of the density field used to normalise the mass flux. More... | |
const word | psiName_ |
Name of the compressibility field used to calculate the wave speed. More... | |
const scalar | gamma_ |
Heat capacity ratio. More... | |
scalarField | p0_ |
Reference pressure. More... | |
This boundary condition provides a dynamic pressure condition. It subtracts a kinetic energy term from a reference pressure to get a value which is fixed on the boundary. It forms the base class for the total and entrainment pressure conditions.
Definition at line 54 of file dynamicPressureFvPatchScalarField.H.
dynamicPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 113 of file dynamicPressureFvPatchScalarField.C.
References dict, DimensionedField< Type, GeoMesh >::dimensions(), fvPatchField< Type >::operator=(), p, and dynamicPressureFvPatchScalarField::p0_.
dynamicPressureFvPatchScalarField | ( | const dynamicPressureFvPatchScalarField & | psf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given dynamicPressureFvPatchScalarField.
onto a new patch
Definition at line 140 of file dynamicPressureFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
dynamicPressureFvPatchScalarField | ( | const dynamicPressureFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 156 of file dynamicPressureFvPatchScalarField.C.
|
protected |
Update the coefficients associated with the patch field.
using the given external static pressure, and difference between the external kinetic energy and patch kinetic energy fields
Definition at line 42 of file dynamicPressureFvPatchScalarField.C.
References Foam::dimDensity, Foam::dimensions(), Foam::dimPressure, Foam::exit(), Foam::FatalError, FatalErrorInFunction, dynamicPressureFvPatchScalarField::gamma_, Foam::nl, Foam::operator==(), Foam::pow(), dynamicPressureFvPatchScalarField::psiName_, rho, and dynamicPressureFvPatchScalarField::rhoName_.
Referenced by entrainmentPressureFvPatchScalarField::updateCoeffs(), fanPressureFvPatchScalarField::updateCoeffs(), rotatingTotalPressureFvPatchScalarField::updateCoeffs(), and totalPressureFvPatchScalarField::updateCoeffs().
TypeName | ( | "dynamicPressure" | ) |
Runtime type information.
|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 172 of file dynamicPressureFvPatchScalarField.C.
References dynamicPressureFvPatchScalarField::p0_.
|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 187 of file dynamicPressureFvPatchScalarField.C.
References dynamicPressureFvPatchScalarField::p0_.
|
virtual |
Write.
Reimplemented in totalPressureFvPatchScalarField, rotatingTotalPressureFvPatchScalarField, fanPressureFvPatchScalarField, and entrainmentPressureFvPatchScalarField.
Definition at line 201 of file dynamicPressureFvPatchScalarField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by entrainmentPressureFvPatchScalarField::write(), and totalPressureFvPatchScalarField::write().
|
protected |
Name of the density field used to normalise the mass flux.
Definition at line 64 of file dynamicPressureFvPatchScalarField.H.
Referenced by dynamicPressureFvPatchScalarField::updateCoeffs().
|
protected |
Name of the compressibility field used to calculate the wave speed.
Definition at line 67 of file dynamicPressureFvPatchScalarField.H.
Referenced by dynamicPressureFvPatchScalarField::updateCoeffs().
|
protected |
Heat capacity ratio.
Definition at line 70 of file dynamicPressureFvPatchScalarField.H.
Referenced by dynamicPressureFvPatchScalarField::updateCoeffs().
|
protected |
Reference pressure.
Definition at line 73 of file dynamicPressureFvPatchScalarField.H.
Referenced by dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField(), dynamicPressureFvPatchScalarField::map(), and dynamicPressureFvPatchScalarField::reset().