This boundary condition provides a hydrostatic pressure condition, calculated as: More...
Public Member Functions | |
TypeName ("uniformDensityHydrostaticPressure") | |
Runtime type information. More... | |
uniformDensityHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
uniformDensityHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &) | |
Construct as copy. More... | |
uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< scalar > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Clone with an internal field reference. More... | |
scalar | rho () const |
Return the constant density in the far-field. More... | |
scalar & | rho () |
Return reference to the constant density in the far-field. More... | |
scalar | pRefValue () const |
Return the reference pressure. More... | |
scalar & | pRefValue () |
Return reference to the reference pressure to allow adjustment. More... | |
const vector & | pRefPoint () const |
Return the pressure reference location. More... | |
vector & | pRefPoint () |
Return reference to the pressure reference location. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
This boundary condition provides a hydrostatic pressure condition, calculated as:
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 32 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 46 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References dict, and Foam::stringOps::evaluate().
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 66 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const uniformDensityHydrostaticPressureFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 82 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const uniformDensityHydrostaticPressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 95 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
TypeName | ( | "uniformDensityHydrostaticPressure" | ) |
Runtime type information.
|
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 216 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, gravity::New(), and Foam::foamVersion::patch.
|
virtual |
Write.
Definition at line 130 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References os(), fvPatchField< Type >::write(), Ostream::writeEntry(), and fvPatchField< Type >::writeValueEntry().