buoyancy Class Reference

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...

Collaboration diagram for buoyancy:

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< buoyancyNew (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...
 

Detailed Description

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.

Source files

Definition at line 69 of file buoyancy.H.

Constructor & Destructor Documentation

◆ buoyancy() [1/2]

buoyancy ( const fvMesh mesh)

Construct from the region mesh.

Definition at line 30 of file buoyancy.C.

References IOobject::name(), buoyancy::p_rgh, fvMesh::schemes(), and fvSchemes::setFluxRequired().

Here is the call graph for this function:

◆ buoyancy() [2/2]

buoyancy ( const buoyancy )
delete

Disallow default bitwise copy construction.

◆ ~buoyancy()

~buoyancy ( )
virtual

Destructor.

Definition at line 118 of file buoyancy.C.

Member Function Documentation

◆ New()

Foam::autoPtr< Foam::solvers::buoyancy > New ( const fvMesh mesh)
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().

Here is the call graph for this function:

◆ moveMesh()

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().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const buoyancy )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ g

◆ hRef

Reference height.

Definition at line 86 of file buoyancy.H.

◆ pRef

Reference pressure.

Definition at line 89 of file buoyancy.H.

Referenced by isothermalFluid::isothermalFluid().

◆ ghRef

-mag(g)*hRef

Definition at line 92 of file buoyancy.H.

◆ gh

◆ ghf

◆ p_rgh

Buoyant pressure p - rho*gh - pRef.

Definition at line 101 of file buoyancy.H.

Referenced by buoyancy::buoyancy().


The documentation for this class was generated from the following files: