This boundary condition provides a phase-based hydrostatic pressure condition, calculated as: More...
Protected Attributes | |
word | phaseFraction_ |
scalar | rho_ |
scalar | pRefValue_ |
vector | pRefPoint_ |
This boundary condition provides a phase-based 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] |
The values are assigned according to the phase-fraction field:
Property | Description | Required | Default value |
---|---|---|---|
phaseFraction | phase-fraction field name | no | alpha |
rho | density field name | no | rho |
pRefValue | reference pressure [Pa] | yes | |
pRefPoint | reference pressure location | yes |
Example of the boundary condition specification:
<patchName> { type phaseHydrostaticPressure; phaseFraction alpha1; rho rho; pRefValue 1e5; pRefPoint (0 0 0); value uniform 0; // optional initial value }
Definition at line 137 of file phaseHydrostaticPressureFvPatchScalarField.H.
phaseHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 33 of file phaseHydrostaticPressureFvPatchScalarField.C.
Referenced by phaseHydrostaticPressureFvPatchScalarField::clone().
phaseHydrostaticPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 52 of file phaseHydrostaticPressureFvPatchScalarField.C.
phaseHydrostaticPressureFvPatchScalarField | ( | const phaseHydrostaticPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 87 of file phaseHydrostaticPressureFvPatchScalarField.C.
phaseHydrostaticPressureFvPatchScalarField | ( | const phaseHydrostaticPressureFvPatchScalarField & | ptf | ) |
Definition at line 104 of file phaseHydrostaticPressureFvPatchScalarField.C.
phaseHydrostaticPressureFvPatchScalarField | ( | const phaseHydrostaticPressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 115 of file phaseHydrostaticPressureFvPatchScalarField.C.
TypeName | ( | "phaseHydrostaticPressure" | ) |
|
inlinevirtual |
Definition at line 199 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::phaseHydrostaticPressureFvPatchScalarField().
|
inlinevirtual |
Definition at line 216 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::phaseHydrostaticPressureFvPatchScalarField().
|
inlinevirtual |
Definition at line 232 of file phaseHydrostaticPressureFvPatchScalarField.H.
|
inline |
Definition at line 241 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::phaseFraction_.
|
inline |
Definition at line 247 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::phaseFraction_.
|
inline |
Definition at line 253 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::rho_.
|
inline |
Definition at line 260 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::rho_.
|
inline |
Definition at line 266 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::pRefValue_.
|
inline |
Definition at line 272 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::pRefValue_.
|
inline |
Definition at line 278 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::pRefPoint_.
|
inline |
Definition at line 285 of file phaseHydrostaticPressureFvPatchScalarField.H.
References phaseHydrostaticPressureFvPatchScalarField::pRefPoint_.
|
virtual |
Definition at line 130 of file phaseHydrostaticPressureFvPatchScalarField.C.
References g, Foam::max(), Foam::min(), gravity::New(), Foam::foamVersion::patch, phaseHydrostaticPressureFvPatchScalarField::phaseFraction_, phaseHydrostaticPressureFvPatchScalarField::pRefPoint_, phaseHydrostaticPressureFvPatchScalarField::pRefValue_, and phaseHydrostaticPressureFvPatchScalarField::rho_.
|
virtual |
Definition at line 159 of file phaseHydrostaticPressureFvPatchScalarField.C.
References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
|
virtual |
Definition at line 173 of file phaseHydrostaticPressureFvPatchScalarField.C.
References fvPatchField::operator.
|
protected |
Definition at line 147 of file phaseHydrostaticPressureFvPatchScalarField.H.
Referenced by phaseHydrostaticPressureFvPatchScalarField::phaseFraction(), and phaseHydrostaticPressureFvPatchScalarField::updateCoeffs().
|
protected |
Definition at line 150 of file phaseHydrostaticPressureFvPatchScalarField.H.
Referenced by phaseHydrostaticPressureFvPatchScalarField::rho(), and phaseHydrostaticPressureFvPatchScalarField::updateCoeffs().
|
protected |
Definition at line 153 of file phaseHydrostaticPressureFvPatchScalarField.H.
Referenced by phaseHydrostaticPressureFvPatchScalarField::pRefValue(), and phaseHydrostaticPressureFvPatchScalarField::updateCoeffs().
|
protected |
Definition at line 156 of file phaseHydrostaticPressureFvPatchScalarField.H.
Referenced by phaseHydrostaticPressureFvPatchScalarField::pRefPoint(), and phaseHydrostaticPressureFvPatchScalarField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.