This boundary condition provides static pressure condition for p_rgh, calculated as: More...
#include <prghTotalHydrostaticPressureFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("prghTotalHydrostaticPressure") | |
| Runtime type information. | |
| prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| prghTotalHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &) | |
| Construct as copy. | |
| prghTotalHydrostaticPressureFvPatchScalarField (const prghTotalHydrostaticPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< scalar > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
Protected Attributes | |
| word | UName_ |
| Name of the velocity field. | |
| word | phiName_ |
| Name of the flux transporting the field. | |
| word | rhoName_ |
| Name of density field. | |
| word | ph_rghName_ |
| Name of hydrostatic pressure field. | |
This boundary condition provides static pressure condition for p_rgh, calculated as:
![\[ p_rgh = ph_rgh - 0.5 \rho |U|^2
\]](form_167.png)
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 ) |
Construct from patch and internal field.
Definition at line 31 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References p, ph_rghName_, phiName_, rhoName_, and UName_.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), and TypeName().

| prghTotalHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 46 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References dict, p, ph_rghName_, phiName_, rhoName_, and UName_.
| 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 62 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References p, ph_rghName_, phiName_, prghTotalHydrostaticPressureFvPatchScalarField(), rhoName_, and UName_.

| prghTotalHydrostaticPressureFvPatchScalarField | ( | const prghTotalHydrostaticPressureFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 79 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References ph_rghName_, phiName_, prghTotalHydrostaticPressureFvPatchScalarField(), rhoName_, and UName_.

| prghTotalHydrostaticPressureFvPatchScalarField | ( | const prghTotalHydrostaticPressureFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 93 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References ph_rghName_, phiName_, prghTotalHydrostaticPressureFvPatchScalarField(), rhoName_, and UName_.

| TypeName | ( | "prghTotalHydrostaticPressure" | ) |
Runtime type information.
References prghTotalHydrostaticPressureFvPatchScalarField().

|
inlinevirtual |
Return a clone.
Definition at line 233 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Definition at line 241 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 110 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References Foam::magSqr(), Foam::neg(), ph_rghName_, phiName_, rhoName_, and UName_.

|
virtual |
Write.
Definition at line 139 of file prghTotalHydrostaticPressureFvPatchScalarField.C.
References os(), ph_rghName_, phiName_, rhoName_, UName_, fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

|
protected |
Name of the velocity field.
Definition at line 153 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), updateCoeffs(), and write().
|
protected |
Name of the flux transporting the field.
Definition at line 158 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), updateCoeffs(), and write().
|
protected |
Name of density field.
Definition at line 163 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), updateCoeffs(), and write().
|
protected |
Name of hydrostatic pressure field.
Definition at line 168 of file prghTotalHydrostaticPressureFvPatchScalarField.H.
Referenced by prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), prghTotalHydrostaticPressureFvPatchScalarField(), updateCoeffs(), and write().