Gravity
Definition
The gravity force is defined from the acceleration of gravity vector, g, and the density, ρ. Under usual conditions and in Cartesian coordinates with the z-axis in the vertical direction,
.
When gravity is considered, a volume force equal to ρg is included in the momentum equation. For example, for laminar weakly compressible flow, it reads:
(13-10)
Introducing a constant reference density ρref, and assuming that g is homogeneous, this equation is equivalently written:
(13-11)
where r is the position vector and rref is an arbitrary reference position vector.
From this equation, it is convenient to define the reduced pressure which accounts for the hydrostatic pressure,
(13-12)
In Equation 13-12, the gravity force is written .
Pressure Formulation
When the relative pressure is used (default option) the interface dependent variable represents the relative pressure and the absolute pressure is defined as . When the pressure is used to define a boundary condition (for example when p0 defines the pressure condition at an outlet), it represents the relative pressure. Hence defining the outlet pressure as compensates for the gravity force for an ambient reference pressure of 0 Pa when the density is constant, there is no external force, and provided pref, g and r0 are defined consistently.
When the reduced pressure is used, the interface dependent variable (named p by default) represents the reduced pressure. The absolute pressure is then defined as . In this case when the pressure is used to define a boundary condition (for example to define a pressure condition at an outlet), its value corresponds to the reduced pressure. Hence, the prescribed pressure compensates for an approximate hydrostatic pressure, which is exact only when the density is constant and there is no external force.
Pressure Boundary Condition
For an immobile fluid the momentum equation simplifies to or
depending on the pressure formulation.
For incompressible flow, assuming there are no external forces, this leads respectively to or .