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


Public Member Functions | |
| TypeName ("prghPressure") | |
| Runtime type information. More... | |
| prghPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| prghPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &) | |
| Construct as copy. More... | |
| virtual tmp< fvPatchScalarField > | clone () const |
| Construct and return a clone. More... | |
| prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &, 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 & | p () const |
| Return the static pressure. More... | |
| scalarField & | p () |
| Return reference to the static 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 | rhoName_ |
| Name of phase-fraction field. More... | |
| scalarField | p_ |
| Static pressure. More... | |
This boundary condition provides static pressure condition for p_rgh, calculated as:
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 126 of file prghPressureFvPatchScalarField.H.
| prghPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 36 of file prghPressureFvPatchScalarField.C.
Referenced by prghPressureFvPatchScalarField::clone(), and prghPressureFvPatchScalarField::prghPressureFvPatchScalarField().

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

| 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 75 of file prghPressureFvPatchScalarField.C.
References prghPressureFvPatchScalarField::prghPressureFvPatchScalarField().

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

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

| TypeName | ( | "prghPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 182 of file prghPressureFvPatchScalarField.H.
References prghPressureFvPatchScalarField::prghPressureFvPatchScalarField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 199 of file prghPressureFvPatchScalarField.H.
References prghPressureFvPatchScalarField::prghPressureFvPatchScalarField().

|
inline |
Return the static pressure.
Definition at line 215 of file prghPressureFvPatchScalarField.H.
References prghPressureFvPatchScalarField::p_.
|
inline |
Return reference to the static pressure to allow adjustment.
Definition at line 221 of file prghPressureFvPatchScalarField.H.
References prghPressureFvPatchScalarField::autoMap(), prghPressureFvPatchScalarField::p_, prghPressureFvPatchScalarField::rmap(), prghPressureFvPatchScalarField::updateCoeffs(), and prghPressureFvPatchScalarField::write().

|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 116 of file prghPressureFvPatchScalarField.C.
References prghPressureFvPatchScalarField::rmap().
Referenced by prghPressureFvPatchScalarField::p(), and prghPressureFvPatchScalarField::prghPressureFvPatchScalarField().


|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 126 of file prghPressureFvPatchScalarField.C.
References prghPressureFvPatchScalarField::p_, and prghPressureFvPatchScalarField::rmap().
Referenced by prghPressureFvPatchScalarField::autoMap(), prghPressureFvPatchScalarField::p(), and prghPressureFvPatchScalarField::rmap().


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


|
virtual |
Write.
Definition at line 171 of file prghPressureFvPatchScalarField.C.
References Foam::makePatchTypeField(), prghPressureFvPatchScalarField::p_, prghPressureFvPatchScalarField::rhoName_, fvPatchField< Type >::write(), and Field< Type >::writeEntry().
Referenced by prghPressureFvPatchScalarField::p().


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