CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Bug in 1.5-dev buoyantFoam - static pressure (https://www.cfd-online.com/Forums/openfoam-solving/73781-bug-1-5-dev-buoyantfoam-static-pressure.html)

marupio March 16, 2010 17:39

Bug in 1.5-dev buoyantFoam - static pressure
 
Correct me if I'm wrong, but:

Should be:
p_static = rho_ref * g * h

The code uses:
p_static = rho_local * g * h

This assumes that rho_local is the same all the way up the fluid column, which it is not. A fluid element with low density (locally) will have an erroneously low p_static.

A reference density really is needed.

marupio March 17, 2010 09:13

Strike my last.

The hydrostatic pressure definition is different in buoyantFoam.

I didn't realize how the buoyancy momentum source related to the way hydrostatic pressure is defined. In general:

Sm = grad( p_hyd ) + rho g


All times are GMT -4. The time now is 00:11.