CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

interfoam boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Andrea_85
  • 1 Post By Shakiro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2015, 19:45
Question interfoam boundary conditions
  #1
Member
 
fede32's Avatar
 
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 10
fede32 is on a distinguished road
Hi, i'm dealing with a trank drainage problem. I'm using the solver interfoam, and i don't know how to set the boundary conditions in the outlet for p_rgh. Any suggestions?
fede32 is offline   Reply With Quote

Old   June 29, 2015, 09:17
Default
  #2
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi;

May be you could just elaborate your condition even better.

But in general the boundary conditions for pressure are at inlet it is a zeroGradient Pressure and at outlet it would be a uniform value fixed to 0.

But this is the most general case. Based on your model setup you can try to vary the B.C's.

Saideep
Saideep is offline   Reply With Quote

Old   June 29, 2015, 14:33
Question tank drainage
  #3
Member
 
fede32's Avatar
 
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 10
fede32 is on a distinguished road
I am using totalPressure for the boundary conditions for p_rgh at inlet.At inlet Ii have

type totalPressure
p0 uniform 0

where uniform 0 is the atmosphere pressure. Should i set

type fixedValue
value uniform 0

for p_rgh at outlet, if i wanna simulate that it's open to atmosphere? Or should i set

type fixedValue
value uniform 0 - delta

where delta = r*g*(h_inlet-h_outlet)
fede32 is offline   Reply With Quote

Old   June 30, 2015, 05:52
Default
  #4
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi;

I guess maybe it is good to try with the first option only that is pressure with fixed value of 0.

May be it would be easy is you could give an overview of your case like the figure. I guess your case is somehow similar to that of the damBreak case.

Like i use interfoam to deal with porous media, micro channel flows and i deal with the range of e-6meters. So, I usually remove the gravitational effect for my simulations and therefore i no longer compute total pressure with the static pressure term.

Saideep
Saideep is offline   Reply With Quote

Old   June 30, 2015, 09:19
Default
  #5
Member
 
fede32's Avatar
 
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 10
fede32 is on a distinguished road
Hi, here i let you an image of the case. The tank is open to atmosphere where p = 0.
https://www.dropbox.com/s/5bi9hb7pze..._prhg.png?dl=0
The top of the tank is at z=1, and the bottom is at z = 0. The endo of the network is at z = -2.7. The level of the fluid is at z=0.8.
So i was thinking that if i set totalPressure = 0 at the top, i must set fixedValue p_rgh= -27000 at the end of the network for the pressure. (So p = 0) Is that ok?
fede32 is offline   Reply With Quote

Old   June 30, 2015, 09:48
Default
  #6
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi,

p_rgh in interFoam is the pressure minus the hydrostatic contribution. I am not using gravity in my simulation but my understanding of the difference between p and p_rgh is that when you set BC for pressure you don't have to take care about the hydrostatic pressure. This is automatically handled by the code.

If you set p_rgh=-27000 Pa at the outlet i am pretty sure you will get p=-27000*2, which is not what you want. Btw this you can easily check.

If you take for example the capillaryRise test case, there you have p_rgh=0 both at the inlet and outlet and there is gravity.

So if inlet and outlet are open to the atmosphere i would use fixedValue equal to zero for both.

Best,
Andrea
utkunun likes this.
Andrea_85 is offline   Reply With Quote

Old   June 30, 2015, 09:56
Default
  #7
Member
 
fede32's Avatar
 
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 10
fede32 is on a distinguished road
Hi,
i check this and when i set fixedValue p_rgh = 0 Pa at the outlet, then p = 27 000 Pa.
If i set p_rgh = -27 000 Pa, then p = 0 Pa,
thanks for the suggestion!
fede32 is offline   Reply With Quote

Old   March 13, 2019, 03:22
Default
  #8
New Member
 
Join Date: Jun 2017
Posts: 2
Rep Power: 0
Shakiro is on a distinguished road
Hi,
I'm facing a similar problem. I try to simulate the non-swirl case of a tank drainage with a geometry according to the paper of Park & C.H Sohn "Experimental and numerical study on air cores for cylindrical tank draining":

A cylindrical tank with a Diameter of 90 mm und a height of 450 mm is drained through a concentric outlet pipe with a diameter of 6 mm and a length of 15 mm. The fluid level in the tank is 350 mm at t = 0. At the inlet (top of the tank) and at the outlet (bottom face of the outlet pipe) I want to set the pressure condition as open to atmosphere.

Therefore, I chose (also based on several papers) for p_rgh:

Inlet
type totalPressure
p0 uniform 0

Outlet
type fixedValue
value uniform 0

However, when evaluating the pressure after a certain time I get:

Inlet
p_rgh = 0,0002 Pa
p = - 16,34 Pa

Outlet
p_rgh = 0 Pa
p = -9588 Pa

As a result also the draining velocity is much higher than expected from the paper.

Do you think this error might result from my pressure boundary condition in p_rgh? But why do I get such a negative p at the outlet? How should I adapt it to obtain an open to atmosphere condition?
Shakiro is offline   Reply With Quote

Old   March 15, 2019, 02:51
Default
  #9
Member
 
Geir Karlsen
Join Date: Nov 2013
Location: Norway
Posts: 59
Rep Power: 13
gkarlsen is on a distinguished road
Quote:
Originally Posted by Shakiro View Post
Hi,


However, when evaluating the pressure after a certain time I get:

Inlet
p_rgh = 0,0002 Pa
p = - 16,34 Pa

Outlet
p_rgh = 0 Pa
p = -9588 Pa
It has to do with the static head being negative in the positive z quadrant, so: p_rgh=p-rgh could give you a negative pressure. I find it much less confusing to work with prghPressure and prghTotalPressure boundary conditions instead. Maybe try that? As to the difference in draining rate that you observe it could be related to mesh inaccuracies or turbulence modelling perhaps?
gkarlsen is offline   Reply With Quote

Old   May 2, 2019, 03:47
Default
  #10
New Member
 
Join Date: Jun 2017
Posts: 2
Rep Power: 0
Shakiro is on a distinguished road
Quote:
Originally Posted by gkarlsen View Post
It has to do with the static head being negative in the positive z quadrant, so: p_rgh=p-rgh could give you a negative pressure. I find it much less confusing to work with prghPressure and prghTotalPressure boundary conditions instead. Maybe try that? As to the difference in draining rate that you observe it could be related to mesh inaccuracies or turbulence modelling perhaps?
Using the prghTotalPressure boundary condition for both inlet and outlet, the simulation finally reproduces the results of the measurement and the paper, respectively. Thank you very much!
hectorgabriel85 likes this.
Shakiro is offline   Reply With Quote

Reply

Tags
boundaries condition, interfoam, pressure, p_rgh, tank


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 17:15
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 18:29


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