Buoyancy related data for the Foam::solvers::isothermalFluid solver module when solving buoyant cases with p_rgh
and is selected based on the presence of the p_rgh
field file.
More...
Public Member Functions | |
buoyancy (const fvMesh &mesh) | |
Construct from the region mesh. More... | |
buoyancy (const buoyancy &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~buoyancy () |
Destructor. More... | |
void | moveMesh () |
Update gh and ghf following mesh-motion. More... | |
void | operator= (const buoyancy &)=delete |
Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
static autoPtr< buoyancy > | New (const fvMesh &mesh) |
Select, construct and return the buoyancy. More... | |
Public Attributes | |
uniformDimensionedVectorField | g |
Gravitational acceleration. More... | |
uniformDimensionedScalarField | hRef |
Reference height. More... | |
uniformDimensionedScalarField | pRef |
Reference pressure. More... | |
dimensionedScalar | ghRef |
-mag(g)*hRef More... | |
volScalarField | gh |
(g & h) - ghRef More... | |
surfaceScalarField | ghf |
(g & hf) - ghRef More... | |
volScalarField | p_rgh |
Buoyant pressure p - rho*gh - pRef. More... | |
Buoyancy related data for the Foam::solvers::isothermalFluid solver module when solving buoyant cases with p_rgh
and is selected based on the presence of the p_rgh
field file.
Provides: g : gravitational acceleration hRef : optional reference height pRef : optional reference pressure ghRef : -mag(g)*hRef gh : (g & h) - ghRef ghf : (g & hf) - ghRef p_rgh : p - rho*gh - pRef
The Foam::solvers::buoyancy::New
function returns an autoPtr<buoyancy>
pointer containing either a buoyancy
class pointer if the p_rgh
field file is available otherwise a nullptr
which can be checked using the autoPtr::valid()
member function.
Definition at line 69 of file buoyancy.H.
Construct from the region mesh.
Definition at line 30 of file buoyancy.C.
References IOobject::name(), buoyancy::p_rgh, fvMesh::schemes(), and fvSchemes::setFluxRequired().
|
virtual |
Destructor.
Definition at line 118 of file buoyancy.C.
|
static |
Select, construct and return the buoyancy.
Definition at line 99 of file buoyancy.C.
References typeIOobject< Type >::headerOk(), IOobject::MUST_READ, dimensioned< Type >::name(), and fvMesh::time().
void moveMesh | ( | ) |
Update gh and ghf following mesh-motion.
Definition at line 124 of file buoyancy.C.
Referenced by isothermalFluid::motionCorrector(), multiphaseEuler::motionCorrector(), and VoFSolver::motionCorrector().
|
delete |
Disallow default bitwise assignment.
Gravitational acceleration.
Definition at line 83 of file buoyancy.H.
Referenced by XiFluid::EaSolve(), fluid::thermophysicalPredictor(), and multicomponentFluid::thermophysicalPredictor().
Reference height.
Definition at line 86 of file buoyancy.H.
Reference pressure.
Definition at line 89 of file buoyancy.H.
Referenced by isothermalFluid::isothermalFluid().
dimensionedScalar ghRef |
-mag(g)*hRef
Definition at line 92 of file buoyancy.H.
(g & h) - ghRef
Definition at line 95 of file buoyancy.H.
Referenced by twoPhaseSolver::incompressiblePressureCorrector(), isothermalFluid::isothermalFluid(), compressibleMultiphaseVoF::pressureCorrector(), compressibleVoF::pressureCorrector(), and incompressibleMultiphaseVoF::pressureCorrector().
(g & hf) - ghRef
Definition at line 98 of file buoyancy.H.
Referenced by twoPhaseSolver::incompressiblePressureCorrector(), isothermalFluid::isothermalFluid(), VoFSolver::momentumPredictor(), compressibleMultiphaseVoF::pressureCorrector(), compressibleVoF::pressureCorrector(), and incompressibleMultiphaseVoF::pressureCorrector().
volScalarField p_rgh |
Buoyant pressure p - rho*gh - pRef.
Definition at line 101 of file buoyancy.H.
Referenced by buoyancy::buoyancy().