Skip to main content

Hydrostatic pressure effects

For cases that the hydrostatic pressure contribution

ρ(gh) \rho ( \vec{g} \dprod \vec{h} )

is important, e.g. for buoyant and multiphase cases, it is numerically convenient to solve for an alternative pressure defined by

p=pρ(gh). p' = p - \rho ( \vec{g} \dprod \vec{h} ).

In OpenFOAM solver applications the pp' pressure term is named p_rgh. The momentum equation

t(ρu)+(ρuu)(μeffu)=p+ρg \ddt{\rho \u} + \div ( \rho \u \otimes \u ) - \div ( \mu_{\eff} \grad \u ) = - \grad p + \rho \vec{g}

is transformed to use pp':

p=pρ(gh). p' = p - \rho ( \vec{g} \dprod \vec{h} ).

After the following substitutions:

p=pρ(gh)p=(p)(ρ(gh))=(p)ρghh(ρg)=(p)ρgIgh(ρ)\cancelto0ρh(g)=(p)ρgghρ\begin{aligned} - p & = - p' - \rho ( \vec{g} \dprod \vec{h} ) \\ - \grad p & = - \grad( p') - \grad ( \rho ( \vec{g} \dprod \vec{h} ) ) \\ & = - \grad( p') - \rho \vec{g} \dprod \grad \vec{h} - \vec{h} \dprod \grad(\rho \vec{g}) \\ & = - \grad( p') - \rho \vec{g} \dprod \tensor{I} - \vec{g} \dprod \vec{h} \grad (\rho) - \cancelto{0}{\rho \vec{h} \dprod \grad (\vec{g})} \\ & = - \grad( p') - \rho \vec{g} - \vec{g} \dprod \vec{h} \grad \rho \end{aligned}

where, for CFD meshes the term h\grad \vec{h} is given by the gradient of the cell centres, which equates to the tensor I\tensor{I}, the momentum equation becomes:

t(ρu)+(ρuu)(μeffu)=pghρ \ddt{\rho \u} + \div ( \rho \u \otimes \u ) - \div ( \mu_{\eff} \grad \u ) = - \grad p' - \vec{g} \dprod \vec{h} \grad \rho

For constant density applications this can be further simplified to

t(ρu)+(ρuu)(μeffu)=p \ddt{\rho \u} + \div ( \rho \u \otimes \u ) - \div ( \mu_{\eff} \grad \u ) = - \grad p'

For examples of the use of this variable transformation, see: