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 &)=delete | |
Disallow copy without setting internal field reference. More... | |
uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor 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... | |
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 | pRef () const |
Return the reference pressure. More... | |
scalar & | pRef () |
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
= | Hydrostatic pressure [Pa] | |
= | Reference pressure [Pa] | |
= | Reference point in Cartesian co-ordinates | |
= | Density (assumed uniform) | |
= | Acceleration due to gravity [m/s^2] |
Property | Description | Required | Default value |
---|---|---|---|
rhoRef | Uniform density [kg/m^3] | yes | |
pRef | Reference pressure [Pa] | yes | |
pRefPoint | Reference pressure location | no | hRef |
value | Initial value | no | pRef |
Example of the boundary condition specification:
<patchName> { type uniformDensityHydrostaticPressure; rhoRef 1000; pRef 1e5; pRefPoint (0 0 0); }
Definition at line 127 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 37 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
Referenced by uniformDensityHydrostaticPressureFvPatchScalarField::clone(), and uniformDensityHydrostaticPressureFvPatchScalarField::uniformDensityHydrostaticPressureFvPatchScalarField().
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 52 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References dictionary::found(), scalarField(), fvPatch::size(), and uniformDensityHydrostaticPressureFvPatchScalarField::uniformDensityHydrostaticPressureFvPatchScalarField().
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 80 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References uniformDensityHydrostaticPressureFvPatchScalarField::uniformDensityHydrostaticPressureFvPatchScalarField().
|
delete |
Disallow copy without setting internal field reference.
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const uniformDensityHydrostaticPressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 97 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
TypeName | ( | "uniformDensityHydrostaticPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 194 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
References uniformDensityHydrostaticPressureFvPatchScalarField::uniformDensityHydrostaticPressureFvPatchScalarField().
|
inline |
Return the constant density in the far-field.
Definition at line 214 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return reference to the constant density in the far-field.
to allow adjustment
Definition at line 221 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return the reference pressure.
Definition at line 227 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return reference to the reference pressure to allow adjustment.
Definition at line 233 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Return the pressure reference location.
Definition at line 239 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
References uniformDensityHydrostaticPressureFvPatchScalarField::updateCoeffs(), and uniformDensityHydrostaticPressureFvPatchScalarField::write().
|
inline |
Return reference to the pressure reference location.
to allow adjustment
Definition at line 246 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 112 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References g, Foam::mag(), dimensioned< Type >::value(), and uniformDensityHydrostaticPressureFvPatchScalarField::write().
Referenced by uniformDensityHydrostaticPressureFvPatchScalarField::pRefPoint().
|
virtual |
Write.
Definition at line 143 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by uniformDensityHydrostaticPressureFvPatchScalarField::pRefPoint(), and uniformDensityHydrostaticPressureFvPatchScalarField::updateCoeffs().