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


Public Member Functions | |
| TypeName ("prghTotalPressure") | |
| Runtime type information. | |
| prghTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| prghTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &) | |
| Construct as copy. | |
| prghTotalPressureFvPatchScalarField (const prghTotalPressureFvPatchScalarField &, 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. | |
| const scalarField & | p0 () const |
| Return the total pressure. | |
| scalarField & | p0 () |
| Return reference to the total pressure to allow adjustment. | |
| virtual void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. | |
| virtual void | rmap (const fvPatchScalarField &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. | |
| 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 phase-fraction field. | |
| scalarField | p0_ |
| Total pressure. | |
This boundary condition provides static pressure condition for p_rgh, calculated as:
![\[ p_rgh = p - \rho g.(h - hRef)
\]](form_170.png)
![\[ p = p0 - 0.5 \rho |U|^2
\]](form_171.png)
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 143 of file prghTotalPressureFvPatchScalarField.H.
| prghTotalPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 31 of file prghTotalPressureFvPatchScalarField.C.
References p, p0_, phiName_, rhoName_, UName_, and Foam::Zero.
Referenced by prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), rmap(), and TypeName().

| prghTotalPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 45 of file prghTotalPressureFvPatchScalarField.C.
References dict, fvPatchField< Type >::operator=(), p, p0_, phiName_, rhoName_, and UName_.

| 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 65 of file prghTotalPressureFvPatchScalarField.C.
References p, p0_, phiName_, prghTotalPressureFvPatchScalarField(), rhoName_, and UName_.

| prghTotalPressureFvPatchScalarField | ( | const prghTotalPressureFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 81 of file prghTotalPressureFvPatchScalarField.C.
References p0_, phiName_, prghTotalPressureFvPatchScalarField(), rhoName_, and UName_.

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

| TypeName | ( | "prghTotalPressure" | ) |
Runtime type information.
References prghTotalPressureFvPatchScalarField().

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

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

|
inline |
Return the total pressure.
Definition at line 259 of file prghTotalPressureFvPatchScalarField.H.
References p0_.
|
inline |
Return reference to the total pressure to allow adjustment.
Definition at line 267 of file prghTotalPressureFvPatchScalarField.H.
References p0_.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 110 of file prghTotalPressureFvPatchScalarField.C.
References p0_.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 120 of file prghTotalPressureFvPatchScalarField.C.
References p0_, prghTotalPressureFvPatchScalarField(), and Foam::refCast().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 135 of file prghTotalPressureFvPatchScalarField.C.
References Foam::cmptMag(), Foam::dimLength, g, Foam::mag(), Foam::magSqr(), Foam::neg(), gravity::New(), p0_, phiName_, rhoName_, and UName_.

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

|
protected |
Name of the velocity field.
Definition at line 155 of file prghTotalPressureFvPatchScalarField.H.
Referenced by prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), updateCoeffs(), and write().
|
protected |
Name of the flux transporting the field.
Definition at line 160 of file prghTotalPressureFvPatchScalarField.H.
Referenced by prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), updateCoeffs(), and write().
|
protected |
Name of phase-fraction field.
Definition at line 165 of file prghTotalPressureFvPatchScalarField.H.
Referenced by prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), updateCoeffs(), and write().
|
protected |
Total pressure.
Definition at line 170 of file prghTotalPressureFvPatchScalarField.H.
Referenced by autoMap(), p0(), p0(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField(), rmap(), updateCoeffs(), and write().