# Pressure BC using interFoam

 Register Blogs Members List Search Today's Posts Mark Forums Read

September 23, 2014, 13:36
Pressure BC using interFoam
#1
New Member

Anonymous
Join Date: Sep 2014
Posts: 6
Rep Power: 10
Hi Everyone,

I am very new to OpenFOAM and am trying to simulate water entering a tank (very similar to this bottle filling tutorial: http://www.tfd.chalmers.se/~hani/kur...Hemida_VOF.pdf).

My mesh works fine, and is attached for reference. The problem I am having is with the Pressure boundary conditions. I've attached the pressure boundary conditions and velocity boundary conditions for reference.

The tank is originally filled with air and at time 0 water starts entering the tank through an inlet at the top. This is all based on the force of gravity which I have set up in the constant subfolder. I want to change the pressure at the inlet and see how this affects the water entering the tank. Right now the pressure at the inlet is set to fixedFluxPressure uniform 0. When I change the zero to different values I see no difference in the water falling from the inlet. Am I using the proper boundary condition here?
Attached Files
 blockMeshDict- Tank.pdf (19.1 KB, 17 views) p_rgh-Tank.pdf (17.8 KB, 39 views) U-Tank.pdf (17.9 KB, 24 views)

 October 5, 2014, 21:10 #2 Senior Member     Fatema Zandi Goharrizi Join Date: Mar 2009 Posts: 158 Rep Power: 15 Hi fixedFluxPressure is a derived BC from zeroGradient type which can changed to a value in agreement with calculated U domain. it helps in better convergence. test totalPressure for P inlet and pressureInletVelocity for U inlet if you have the value of pressure at inlet, and see what happen then.

 October 6, 2014, 14:11 #3 New Member   Anonymous Join Date: Sep 2014 Posts: 6 Rep Power: 10 Hi, Thanks for answering! It won't let me change P inlet to totalPressure with the atmosphere set to totalPressure. Do I just have to change the variables for P inlet? Thanks

 October 10, 2014, 17:05 #4 Senior Member     Fatema Zandi Goharrizi Join Date: Mar 2009 Posts: 158 Rep Power: 15 Hi tilt, you're right. I had a wrong image in my mind from your geometry. i'm interested in your question, in my especial case about BC affects. I do free surface and interaction of air and water in flow. so if I find something helpful I would let you know. could you attach an image from geometry? and aaa please let us have your useful experience in thread. kind of you foamer!

October 14, 2014, 09:04
#5
New Member

Anonymous
Join Date: Sep 2014
Posts: 6
Rep Power: 10
I've attached an image of the geometry and a new BlockMeshDict.
Still trying to solve my problem. If I solve the problem I will let you know.
Attached Images
 Screenshot from 2014-10-14 08_59_41.jpg (31.4 KB, 22 views)
Attached Files
 blockMeshDict..pdf (22.9 KB, 5 views)

 Tags boundary condition, inlet pressure, interfoam