This Demonstration shows the effects of fluid height and density on hydrostatic pressure. You can vary both the absolute fluid height and density of the bottom fluid (blue). The middle fluid (orange) and top fluid (purple) are adjusted with respect to the bottom fluid. This results in a total hydrostatic pressure profile that indicates the gage pressure at different depths in the container.
This Demonstration lets you vary the fluid heights and densities of each of the fluids and shows the resulting pressure profile of the three fluids in a container. Hydrostatic pressure is calculated by
where is the hydrostatic gage pressure (kPa), is the fluid density (), is the gravitational constant (), and is the height of the fluid ().
In order to calculate the total pressure inside the container, the individual fluid pressure is added to the pressure acting on the fluid from above.
Graphing hydrostatic pressures versus depth for each fluid generates a pressure profile for the container.