This boundary condition provides a hydrostatic pressure condition, calculated as: More...
#include <uniformDensityHydrostaticPressureFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("uniformDensityHydrostaticPressure") | |
| Runtime type information. | |
| uniformDensityHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| uniformDensityHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &) | |
| Construct as copy. | |
| uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &, 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. | |
| scalar | rho () const |
| Return the constant density in the far-field. | |
| scalar & | rho () |
| Return reference to the constant density in the far-field. | |
| scalar | pRefValue () const |
| Return the reference pressure. | |
| scalar & | pRefValue () |
| Return reference to the reference pressure to allow adjustment. | |
| const vector & | pRefPoint () const |
| Return the pressure reference location. | |
| vector & | pRefPoint () |
| Return reference to the pressure reference location. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
This boundary condition provides a hydrostatic pressure condition, calculated as:
![\[ p_{hyd} = p_{ref} + \rho g (x - x_{ref})
\]](form_158.png)
where
![]() | = | hyrostatic pressure [Pa] |
![]() | = | reference pressure [Pa] |
![]() | = | reference point in Cartesian coordinates |
![]() | = | density (assumed uniform) |
![]() | = | acceleration due to gravity [m/s2] |
| Property | Description | Required | Default value |
|---|---|---|---|
rho | uniform density [kg/m3] | yes | |
pRefValue | reference pressure [Pa] | yes | |
pRefPoint | reference pressure location | yes |
Example of the boundary condition specification:
<patchName>
{
type uniformDensityHydrostaticPressure;
rho rho;
pRefValue 1e5;
pRefPoint (0 0 0);
value uniform 0; // optional initial value
}
Definition at line 123 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
| uniformDensityHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 30 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References p, and Foam::Zero.
Referenced by TypeName(), uniformDensityHydrostaticPressureFvPatchScalarField(), uniformDensityHydrostaticPressureFvPatchScalarField(), and uniformDensityHydrostaticPressureFvPatchScalarField().

| uniformDensityHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 44 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
| uniformDensityHydrostaticPressureFvPatchScalarField | ( | const uniformDensityHydrostaticPressureFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper ) |
Construct by mapping given.
uniformDensityHydrostaticPressureFvPatchScalarField onto a new patch
Definition at line 64 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References p, and uniformDensityHydrostaticPressureFvPatchScalarField().

| uniformDensityHydrostaticPressureFvPatchScalarField | ( | const uniformDensityHydrostaticPressureFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 80 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References uniformDensityHydrostaticPressureFvPatchScalarField().

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

| TypeName | ( | "uniformDensityHydrostaticPressure" | ) |
Runtime type information.
References uniformDensityHydrostaticPressureFvPatchScalarField().

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

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

|
inline |
Return the constant density in the far-field.
Definition at line 231 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return reference to the constant density in the far-field.
to allow adjustment
Definition at line 241 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return the reference pressure.
Definition at line 249 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return reference to the reference pressure to allow adjustment.
Definition at line 257 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return the pressure reference location.
Definition at line 265 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return reference to the pressure reference location.
to allow adjustment
Definition at line 275 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 109 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References g, and gravity::New().

|
virtual |
Write.
Definition at line 129 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().
