# Conceptual problem: how to define pressure boundary conditions for stratified fluid in units of pressure/density?

This may be a trivial problem, but I'm having a tough time with conceptualization.

I'm using a code for modeling flow out of a tank. I'm not experienced in fluid dynamics; I'm more experienced with chemical aspects of the problem. I want to use pressure boundary conditions (a constant pressure at the bottom of the tank and atmospheric pressure at the tank outlet). The code is for incompressible flow and I must input the pressure values in terms of pressure/density (units of m2 s-2).

The problem is I don't understand which densities to use for each boundary condition. At the bottom of the tank, I'm guessing that I should use the tank fluid density (or some weighted average if there is more than one kind of fluid layer in the tank). But what should I use at the top (where the boundary condition is the pressure of the atmosphere)? When I divide atmospheric pressure by the density of air, I get a value that is higher than the bottom boundary of the tank and flow goes the wrong way (down, not up to the outlet). When I divide atmospheric pressure by the same density that I use for the bottom boundary (the density of the fluid in the tank), my output shows pressure values that are lower than atmospheric. It seems like I should get this, but I don't. Any help would be appreciated, but unfortunately, I'm not allowed to post the code.

• Welcome to Engineering.SE. With this question it's hard to tell if your problem is with the maths you are using, or the transposing of those maths into your code. I think you need to validate the maths first, here with the Engineering people, without any reference to the code. Could you edit the question to show the maths, then perhaps once that's verified, if it still doesn't work, a separate question could be asked regarding converting that to code. Commented May 10, 2015 at 22:50
• You say you can't post the actual code, but can you give us some basic pseudo-code? I have some theories, but it's hard to know if I'm on the right track without seeing at least some of what you're doing. Mostly, what inputs are you using in your calculation to determine the pressure drop? Commented May 11, 2015 at 17:58
• Thank you both for your interest and sorry for the late reply; I didn't see my notifications. The method is the "volume of fluid" method, which is explained here (although Fluent is not the code I'm using). Please see the links at the bottom of the page. I'm not varying temperature. Please let me know if you need more information: jullio.pe.kr/fluent6.1/help/html/ug/node734.htm
– Ant
Commented May 12, 2015 at 6:18