Hydrostatic pressure effects
For cases that the hydrostatic pressure contribution
ρ(g∙h)
is important, e.g. for buoyant and multiphase cases, it is numerically
convenient to solve for an alternative pressure defined by
p′=p−ρ(g∙h).
In OpenFOAM solver applications the p′ pressure term is named p_rgh.
The momentum equation
∂t∂(ρu)+∇∙(ρu⊗u)−∇∙(μeff∇u)=−∇p+ρg
is transformed to use p′:
p′=p−ρ(g∙h).
After the following substitutions:
−p−∇p=−p′−ρ(g∙h)=−∇(p′)−∇(ρ(g∙h))=−∇(p′)−ρg∙∇h−h∙∇(ρg)=−∇(p′)−ρg∙I−g∙h∇(ρ)−\cancelto0ρh∙∇(g)=−∇(p′)−ρg−g∙h∇ρ
where, for CFD meshes the term ∇h is given by the gradient of
the cell centres, which equates to the tensor I, the momentum
equation becomes:
∂t∂(ρu)+∇∙(ρu⊗u)−∇∙(μeff∇u)=−∇p′−g∙h∇ρ
For constant density applications this can be further simplified to
∂t∂(ρu)+∇∙(ρu⊗u)−∇∙(μeff∇u)=−∇p′
For examples of the use of this variable transformation, see: