This boundary condition provides a hydrostatic pressure condition, calculated as: 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 | ||
) |
Definition at line 32 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
Referenced by uniformDensityHydrostaticPressureFvPatchScalarField::clone().
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 46 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References dict, Foam::stringOps::evaluate(), and p.
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const uniformDensityHydrostaticPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 73 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const uniformDensityHydrostaticPressureFvPatchScalarField & | ptf | ) |
Definition at line 89 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
uniformDensityHydrostaticPressureFvPatchScalarField | ( | const uniformDensityHydrostaticPressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 102 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
TypeName | ( | "uniformDensityHydrostaticPressure" | ) |
|
inlinevirtual |
Definition at line 179 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
References uniformDensityHydrostaticPressureFvPatchScalarField::uniformDensityHydrostaticPressureFvPatchScalarField().
|
inlinevirtual |
Definition at line 196 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Definition at line 216 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Definition at line 223 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Definition at line 229 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Definition at line 235 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Definition at line 241 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
inline |
Definition at line 248 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.
|
virtual |
Definition at line 116 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References g, gravity::New(), and Foam::foamVersion::patch.
|
virtual |
Definition at line 137 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.
References os(), fvPatchField::write(), and Ostream::writeEntry().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.