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


Public Member Functions | |
| TypeName ("prghPressure") | |
| Runtime type information. | |
| prghPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| prghPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &) | |
| Construct as copy. | |
| prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &, 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 & | p () const |
| Return the static pressure. | |
| scalarField & | p () |
| Return reference to the static 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 | rhoName_ |
| Name of phase-fraction field. | |
| scalarField | p_ |
| Static pressure. | |
This boundary condition provides static pressure condition for p_rgh, calculated as:
![\[ p_rgh = p - \rho g (h - hRef)
\]](form_163.png)
where
![]() | = | Pseudo hydrostatic pressure [Pa] |
![]() | = | Static 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 |
|---|---|---|---|
rho | rho field name | no | rho |
p | static pressure | yes |
Example of the boundary condition specification:
<patchName>
{
type prghPressure;
rho rho;
p uniform 0;
value uniform 0; // optional initial value
}
Definition at line 124 of file prghPressureFvPatchScalarField.H.
| prghPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 30 of file prghPressureFvPatchScalarField.C.
References p(), p_, rhoName_, and Foam::Zero.
Referenced by prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), rmap(), and TypeName().


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

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

| prghPressureFvPatchScalarField | ( | const prghPressureFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 77 of file prghPressureFvPatchScalarField.C.
References p_, prghPressureFvPatchScalarField(), and rhoName_.

| prghPressureFvPatchScalarField | ( | const prghPressureFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 89 of file prghPressureFvPatchScalarField.C.
References p_, prghPressureFvPatchScalarField(), and rhoName_.

| TypeName | ( | "prghPressure" | ) |
Runtime type information.
References prghPressureFvPatchScalarField().

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

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

|
inline |
Return the static pressure.
Definition at line 230 of file prghPressureFvPatchScalarField.H.
References p_.
Referenced by prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), and prghPressureFvPatchScalarField().

|
inline |
Return reference to the static pressure to allow adjustment.
Definition at line 238 of file prghPressureFvPatchScalarField.H.
References p_.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 104 of file prghPressureFvPatchScalarField.C.
References p_.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 114 of file prghPressureFvPatchScalarField.C.
References p_, prghPressureFvPatchScalarField(), and Foam::refCast().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 129 of file prghPressureFvPatchScalarField.C.
References Foam::cmptMag(), Foam::dimLength, g, Foam::mag(), gravity::New(), Foam::operator==(), p_, and rhoName_.

|
virtual |
Write.
Definition at line 158 of file prghPressureFvPatchScalarField.C.
References os(), p_, rhoName_, fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

|
protected |
Name of phase-fraction field.
Definition at line 136 of file prghPressureFvPatchScalarField.H.
Referenced by prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), updateCoeffs(), and write().
|
protected |
Static pressure.
Definition at line 141 of file prghPressureFvPatchScalarField.H.
Referenced by autoMap(), p(), p(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), rmap(), updateCoeffs(), and write().