This boundary condition provides static pressure condition for p_rgh, calculated as: More...


Public Member Functions | |
| TypeName ("prghTotalHydrostaticPressure") | |
| Runtime type information. More... | |
| prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &) | |
| Construct as copy. More... | |
| virtual tmp< fvPatchScalarField > | clone () const |
| Construct and return a clone. More... | |
| prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, 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... | |
| 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 density field. More... | |
| word | ph_rghName_ |
| Name of hydrostatic pressure field. More... | |
This boundary condition provides static pressure condition for p_rgh, calculated as:
where
| = | Pressure - g.(h - hRef) [Pa] |
| = | Hydrostatic pressure - g.(h - hRef) [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 |
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 143 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
| prghTotalHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 37 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::clone(), and prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField().

| prghTotalHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 52 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField().

| prghTotalHydrostaticPressureFvPatchScalarField | ( | const prghTotalHydrostaticPressureFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
prghTotalHydrostaticPressureFvPatchScalarField onto a new patch
Definition at line 68 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField().

| prghTotalHydrostaticPressureFvPatchScalarField | ( | const prghTotalHydrostaticPressureFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 85 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField().

| prghTotalHydrostaticPressureFvPatchScalarField | ( | const prghTotalHydrostaticPressureFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 99 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
| TypeName | ( | "prghTotalHydrostaticPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 205 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
References prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 222 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
References prghTotalHydrostaticPressureFvPatchScalarField::prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs(), and prghTotalHydrostaticPressureFvPatchScalarField::write().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 114 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References Foam::magSqr(), prghTotalHydrostaticPressureFvPatchScalarField::ph_rghName_, prghTotalHydrostaticPressureFvPatchScalarField::phiName_, Foam::pos0(), prghTotalHydrostaticPressureFvPatchScalarField::rhoName_, prghTotalHydrostaticPressureFvPatchScalarField::UName_, and prghTotalHydrostaticPressureFvPatchScalarField::write().
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::clone().


|
virtual |
Write.
Definition at line 144 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References Foam::makePatchTypeField(), prghTotalHydrostaticPressureFvPatchScalarField::ph_rghName_, prghTotalHydrostaticPressureFvPatchScalarField::phiName_, prghTotalHydrostaticPressureFvPatchScalarField::rhoName_, prghTotalHydrostaticPressureFvPatchScalarField::UName_, and fvPatchField< Type >::write().
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::clone(), and prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs().


|
protected |
Name of the velocity field.
Definition at line 153 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs(), and prghTotalHydrostaticPressureFvPatchScalarField::write().
|
protected |
Name of the flux transporting the field.
Definition at line 156 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs(), and prghTotalHydrostaticPressureFvPatchScalarField::write().
|
protected |
Name of density field.
Definition at line 159 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs(), and prghTotalHydrostaticPressureFvPatchScalarField::write().
|
protected |
Name of hydrostatic pressure field.
Definition at line 162 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField::updateCoeffs(), and prghTotalHydrostaticPressureFvPatchScalarField::write().
1.8.13