This boundary condition provides static pressure condition for p_rgh, calculated as: More...
Public Member Functions | |
TypeName ("prghTotalPressure") | |
Runtime type information. More... | |
prghTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
prghTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
const scalarField & | p0 () const |
Return the total pressure. More... | |
scalarField & | p0 () |
Return reference to the total pressure to allow adjustment. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchScalarField &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Protected Attributes | |
word | UName_ |
Name of the velocity field. More... | |
word | phiName_ |
Name of the flux transporting the field. More... | |
word | rhoName_ |
Name of phase-fraction field. More... | |
scalarField | p0_ |
Total pressure. More... | |
This boundary condition provides static pressure condition for p_rgh, calculated as:
where
![]() | = | Pseudo hydrostatic pressure [Pa] |
![]() | = | Static pressure [Pa] |
![]() | = | Total pressure [Pa] |
![]() | = | 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 |
p0 | Total pressure | yes |
Example of the boundary condition specification:
<patchName> { type prghTotalPressure; p0 uniform 0; }
Definition at line 145 of file prghTotalPressureFvPatchScalarField.H.
prghTotalPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 37 of file prghTotalPressureFvPatchScalarField.C.
Referenced by prghTotalPressureFvPatchScalarField::clone(), and prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField().
prghTotalPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 52 of file prghTotalPressureFvPatchScalarField.C.
References dictionary::found(), prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField(), scalarField(), and fvPatch::size().
prghTotalPressureFvPatchScalarField | ( | const prghTotalPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
prghTotalPressureFvPatchScalarField onto a new patch
Definition at line 80 of file prghTotalPressureFvPatchScalarField.C.
References prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField().
Construct as copy.
Definition at line 97 of file prghTotalPressureFvPatchScalarField.C.
References prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField().
prghTotalPressureFvPatchScalarField | ( | const prghTotalPressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 111 of file prghTotalPressureFvPatchScalarField.C.
References prghTotalPressureFvPatchScalarField::autoMap().
TypeName | ( | "prghTotalPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 207 of file prghTotalPressureFvPatchScalarField.H.
References prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 224 of file prghTotalPressureFvPatchScalarField.H.
References prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField().
|
inline |
Return the total pressure.
Definition at line 240 of file prghTotalPressureFvPatchScalarField.H.
References prghTotalPressureFvPatchScalarField::p0_.
|
inline |
Return reference to the total pressure to allow adjustment.
Definition at line 246 of file prghTotalPressureFvPatchScalarField.H.
References prghTotalPressureFvPatchScalarField::autoMap(), prghTotalPressureFvPatchScalarField::p0_, prghTotalPressureFvPatchScalarField::rmap(), prghTotalPressureFvPatchScalarField::updateCoeffs(), and prghTotalPressureFvPatchScalarField::write().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 127 of file prghTotalPressureFvPatchScalarField.C.
References prghTotalPressureFvPatchScalarField::rmap().
Referenced by prghTotalPressureFvPatchScalarField::p0(), and prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 137 of file prghTotalPressureFvPatchScalarField.C.
References prghTotalPressureFvPatchScalarField::p0_, and prghTotalPressureFvPatchScalarField::rmap().
Referenced by prghTotalPressureFvPatchScalarField::autoMap(), prghTotalPressureFvPatchScalarField::p0(), and prghTotalPressureFvPatchScalarField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 151 of file prghTotalPressureFvPatchScalarField.C.
References Foam::cmptMag(), Foam::dimLength, g, Foam::mag(), Foam::magSqr(), prghTotalPressureFvPatchScalarField::p0_, prghTotalPressureFvPatchScalarField::phiName_, Foam::pos0(), prghTotalPressureFvPatchScalarField::rhoName_, and prghTotalPressureFvPatchScalarField::UName_.
Referenced by prghTotalPressureFvPatchScalarField::p0().
|
virtual |
Write.
Definition at line 191 of file prghTotalPressureFvPatchScalarField.C.
References Foam::makePatchTypeField(), prghTotalPressureFvPatchScalarField::p0_, prghTotalPressureFvPatchScalarField::phiName_, prghTotalPressureFvPatchScalarField::rhoName_, prghTotalPressureFvPatchScalarField::UName_, fvPatchField< Type >::write(), and Field< Type >::writeEntry().
Referenced by prghTotalPressureFvPatchScalarField::p0().
|
protected |
Name of the velocity field.
Definition at line 155 of file prghTotalPressureFvPatchScalarField.H.
Referenced by prghTotalPressureFvPatchScalarField::updateCoeffs(), and prghTotalPressureFvPatchScalarField::write().
|
protected |
Name of the flux transporting the field.
Definition at line 158 of file prghTotalPressureFvPatchScalarField.H.
Referenced by prghTotalPressureFvPatchScalarField::updateCoeffs(), and prghTotalPressureFvPatchScalarField::write().
|
protected |
Name of phase-fraction field.
Definition at line 161 of file prghTotalPressureFvPatchScalarField.H.
Referenced by prghTotalPressureFvPatchScalarField::updateCoeffs(), and prghTotalPressureFvPatchScalarField::write().
|
protected |
Total pressure.
Definition at line 164 of file prghTotalPressureFvPatchScalarField.H.
Referenced by prghTotalPressureFvPatchScalarField::p0(), prghTotalPressureFvPatchScalarField::rmap(), prghTotalPressureFvPatchScalarField::updateCoeffs(), and prghTotalPressureFvPatchScalarField::write().