This boundary condition provides static pressure condition for p_rgh, calculated as: More...
Public Member Functions | |
TypeName ("prghTotalHydrostaticPressure") | |
prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &) | |
virtual tmp< fvPatchScalarField > | clone () const |
prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
virtual void | updateCoeffs () |
virtual void | write (Ostream &) const |
Protected Attributes | |
word | UName_ |
word | phiName_ |
word | rhoName_ |
word | ph_rghName_ |
This boundary condition provides static pressure condition for p_rgh, calculated as:
where
![]() | = | Pressure: ![]() |
![]() | = | Hydrostatic pressure: ![]() |
![]() | = | Height in the opposite direction to gravity |
![]() | = | Reference height in the opposite direction to gravity |
![]() | = | Density |
![]() | = | Acceleration due to gravity [m/s^2] |
Property | Description | Required | Default value |
---|---|---|---|
U | Velocity field name | no | U |
phi | Flux field name | no | phi |
rho | Density field name | no | rho |
ph_rgh | ph_rgh field name | no | ph_rgh |
value | Patch face values | yes |
Example of the boundary condition specification:
<patchName> { type prghTotalHydrostaticPressure; value uniform 0; }
Definition at line 141 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
prghTotalHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 33 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::clone().
prghTotalHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 48 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
prghTotalHydrostaticPressureFvPatchScalarField | ( | const prghTotalHydrostaticPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 64 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
prghTotalHydrostaticPressureFvPatchScalarField | ( | const prghTotalHydrostaticPressureFvPatchScalarField & | ptf | ) |
Definition at line 81 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
prghTotalHydrostaticPressureFvPatchScalarField | ( | const prghTotalHydrostaticPressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 95 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
TypeName | ( | "prghTotalHydrostaticPressure" | ) |
|
inlinevirtual |
Definition at line 203 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
References prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField().
|
inlinevirtual |
Definition at line 220 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
References prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField().
|
virtual |
Definition at line 110 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References Foam::magSqr(), Foam::foamVersion::patch, prghTotalHydrostaticPressureFvPatchScalarField::ph_rghName_, prghTotalHydrostaticPressureFvPatchScalarField::phiName_, Foam::pos0(), prghTotalHydrostaticPressureFvPatchScalarField::rhoName_, and prghTotalHydrostaticPressureFvPatchScalarField::UName_.
|
virtual |
Definition at line 140 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References os(), fvPatchField::write(), and Ostream::writeEntryIfDifferent().
|
protected |
Definition at line 151 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs().
|
protected |
Definition at line 154 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs().
|
protected |
Definition at line 157 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs().
|
protected |
Definition at line 160 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.