
Is there a better way to do the following? The purpose is to provide a
conversion from a pressure to a head given the density of the fluid the
head should be in. Head is "hydrostatic pressure" and is a measure of
the length a fluid can be pushed up a column at pressure X. The value
is a function of the fluid and of the pressure acted upon that fluid.
Object is to do this in any system. Part of the equation is the
constant "g", which is acceleration due to gravity. We're modeling
objects on earth so the value of g is 9.80665 m/s^2. The conversion
equation is very basic:
h = p / (d * g)
where h is the headloss in length, p is pressure, d is mass density, and
g is the gravitational constant.
#include