# pressure boundary condition in openFoam

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

 April 13, 2013, 11:04 pressure boundary condition in openFoam #1 Senior Member   saeideh mohamadi Join Date: Aug 2012 Posts: 229 Rep Power: 8 Sponsored Links hi foamers, i am working on 2D multi elemet airfoil. i use simpleFoam,and k-epsilon turbulence model. i have a question about the boundary condition and fvsolution: 1- can any one tell me, the pressure that we set for pressure boundary condition at inlet is absolute for gauge pressure? 2- what is difference between pReffValue and pRefCell in fvSolution in openFoam? thanks for any one who can help me Regards Last edited by s.m; April 14, 2013 at 04:05.

 April 13, 2013, 20:06 #2 Senior Member   Lieven Join Date: Dec 2011 Location: Leuven, Belgium Posts: 297 Rep Power: 15 Dear s.m, 1. I'm not familiar with the term gave pressure but what I can tell you that might help you is that the absolute pressure in an incompressible fluid simulation is not important. The fluid properties do not depend on it (as opposed to compressible flow). So whether you set the inlet to 0 Pa, 10 Pa, or 1e5 Pa will not influence your velocity field, nor will it influence your pressure gradients. It will not even influence the colors you see in paraFoam, just the value related to them. 2. pReffValue (e.g. 0 Pa) is the value of the pressure you set in pRefCell (e.g. cell 1000). These values are used when you only set Neumann boundary conditions for the pressure field. If you set a pressure at the inlet or outlet however, you just need to provide a value for these parameters but they will not be used. Hope this helps... Cheers, L

April 14, 2013, 04:10
#3
Senior Member

Join Date: Aug 2012
Posts: 229
Rep Power: 8
Quote:
 Originally Posted by Lieven Dear s.m, 1. I'm not familiar with the term gave pressure but what I can tell you that might help you is that the absolute pressure in an incompressible fluid simulation is not important. The fluid properties do not depend on it (as opposed to compressible flow). So whether you set the inlet to 0 Pa, 10 Pa, or 1e5 Pa will not influence your velocity field, nor will it influence your pressure gradients. It will not even influence the colors you see in paraFoam, just the value related to them. 2. pReffValue (e.g. 0 Pa) is the value of the pressure you set in pRefCell (e.g. cell 1000). These values are used when you only set Neumann boundary conditions for the pressure field. If you set a pressure at the inlet or outlet however, you just need to provide a value for these parameters but they will not be used. Hope this helps... Cheers, L

hi Lieven
thanks a lot, i mean gauge pressure, sorry for bad English

 April 15, 2013, 02:54 the value for pressure and rhoInf #4 Senior Member   saeideh mohamadi Join Date: Aug 2012 Posts: 229 Rep Power: 8 Dear Lieven when i want solve incompressible turbulent flow around airfoil using simpleFoam solver in openFoam, i need to initialize pressure at 0 folder, my question is that the value that i should set for pressure at outlet is absolute(10e5 pa) or gauge(0 pa)? what about initializing pressure for solving compressible turbulent flow around airfoil? another question i have is about the value for "rhoInf" in "forceCoeffs" function at controlDict folder, we should set it to 1 or 1000 ? i am confused, please help me understand them,thanks a lot

 April 15, 2013, 03:17 #5 Senior Member   Lieven Join Date: Dec 2011 Location: Leuven, Belgium Posts: 297 Rep Power: 15 Dear s.m. For initializing the pressure, you have a few options but the easiest is a uniform value equal to the fixedValue at the inlet or outlet. I usually take an outlet pressure of 0 Pa. Depending on the flow, this could be a bad initial estimate and the solver will crash shortly after starting the simulation. If this is the case, you might want to try to run potentialFoam first. Related to the compressible flow, I haven't worked with it so I can't help you from experience. However, my guess is that the pressure and the density should be the absolute values that you expect. Setting the initial conditions should be similar to the incompressible case (but in terms of absolute values). Cheers, L immortality likes this.

 April 15, 2013, 03:28 #6 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,210 Rep Power: 19 hi rhoInf is about 1.25 if you have air

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post C-H Kuo Main CFD Forum 18 September 16, 2016 03:19 Attesz CFX 7 January 5, 2013 04:32 fragzilla CFX 5 September 14, 2012 02:40 sepidehkavousi Main CFD Forum 9 May 20, 2012 12:11 zoeburton1987 FLUENT 0 May 15, 2012 09:20