
[Sponsors] 
June 29, 2010, 15:47 
zero gradient pressure B/C

#1 
Senior Member
Srinath Madhavan (a.k.a pUl)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 13 
Can someone kindly help in explaining why setting the component of "pressure gradient" normal to the wall zero is an appropriate Boundary condition for walls?
Put simply, why should the pressure gradient (i.e. grad (p)) be orthogonal to the outward normal to the wall? 

June 30, 2010, 13:49 

#2 
Senior Member
Srinath Madhavan (a.k.a pUl)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 13 
Anybody?? Does setting "grad(p) dot nhat = 0" mean that from the wall onward up till beyond the wall boundary (i.e. the region occupied by ghost CVs), there is no component of the "pressure gradient" in the direction of the outward wall normal?
In other words, physically speaking, we are enforcing the condition that there is no fluid flow through the wall?? Am I even close??? 

August 5, 2010, 23:52 

#3 
Senior Member
Srinath Madhavan (a.k.a pUl)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 13 
Found some free time. Thought I could use this to close my query. A little too embarrassing actually, but after a sharp reprimand from one of my profs. for not knowing something so trivial I have the answer:
http://www.ualberta.ca/~madhavan/zer...nt_at_wall.pdf 

August 7, 2010, 00:16 

#4 
New Member
Robert
Join Date: Mar 2010
Posts: 16
Rep Power: 8 
Thank you for sharing Srniath.


August 7, 2010, 00:26 

#5 
Senior Member
Srinath Madhavan (a.k.a pUl)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 13 
Glad you found it useful Have a good weekend!


August 7, 2010, 14:22 

#6 
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 10 
Okay, I have mixed up x and n! I'm gonna to study this again, because it seems very interesting. Sorry for the rigor, but as a mathematician, one is compelled to investigate things more critically.
Cheers and have a nice one! 

August 7, 2010, 15:16 

#7 
Senior Member
Srinath Madhavan (a.k.a pUl)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 13 
No problem. I for one welcome any criticisms. After all we are all here to share and learn


September 28, 2010, 15:31 

#8 
Member
Join Date: Jul 2010
Posts: 37
Rep Power: 8 
Is there a patch/method, in OpenFOAM, which extrapolates the pressure to the wall from the adjacent normal cells rather than forcing the approximation of dp/dy = 0 ?
That's my first question, my second being is it easily achievable to prescribe dp/dy = nu*d2v/dy2 as a custom patch? I ask in the context of using the icoFoam solver on 2D laminar boundary layers. Any suggestions would be greatly appreciated. Thanks! 

November 11, 2010, 10:58 

#9 
New Member
Join Date: Oct 2010
Posts: 9
Rep Power: 8 
I'm also interested in this topic. If you have a look on the cavity tutorial, the pressuregradient normal to the movingWall is certainly not zero.
Did you already come to a result, steph79? 

November 15, 2010, 06:45 

#10  
Member
Join Date: Jul 2010
Posts: 37
Rep Power: 8 
Quote:
Thank you. 

December 13, 2010, 20:43 
question

#11 
Member
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 84
Rep Power: 9 
Hi, I have a question.
In page 2, line 6 where you say dv/dy=0. then d2v/dy2=0, I cannot see why is that? for other points, you have that because you can compare 2 points on the wall ( which is x direction) but for y direction, I don't know how to say that. Any way, thank you for this calculation, really helps understand what is going on in OpenFOAM. Yours.
__________________
SAHM 

December 14, 2010, 10:50 

#12 
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 430
Rep Power: 16 
I think there is another reason for zeroGradient pressure BC at walls. It comes from numerics. When you implement PISO or SIMPLE methods finally a Poisson equation is assembled for pressure. This equation requires at least a one point with prescribed pressure which is searched from BC. If there is not a prescribed pressure BC then the pRefValue is taking into account. Since pressure is not known at walls, the BC is set to take the value from the nearest point within the fluid, or in other words taking the zeroGradient perpendicularly to the wall.
Just my 2 cents. Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D. Research Scientist Research Center for Computational Methods (CIMEC)  CONICET/UNL Tel: 543424511594 Int. 7032 Colectora Ruta Nac. 168 / Paraje El Pozo (3000) Santa Fe  Argentina. http://www.cimec.org.ar 

July 28, 2015, 11:02 

#13  
Member
Max
Join Date: May 2011
Location: old europe
Posts: 87
Rep Power: 7 
Quote:
I was really happy to find a such a simple answer to this question but I actually doubt it's as simple as your prof pretended. 

January 20, 2016, 12:42 

#14 
New Member
Lukáš Hurda
Join Date: Oct 2015
Posts: 5
Rep Power: 3 
The second derivative of velocity along the wall is zero because the value is constant. The second derivative normal to the wall is zero because of the linear velocity increase in the viscous sublayer... correct me if I'm wrong.


January 20, 2016, 13:05 

#15  
Member
Max
Join Date: May 2011
Location: old europe
Posts: 87
Rep Power: 7 
Quote:
I still think that dv^2/dy^2 is not generelly zero. However, for high Reynolds numbers the influence can be neglected since it is part of the visous terms in the NSE. For low Reynolds numbers, the zero gradient condition is wrong and can therefore lead to unphysical simulation results. 

January 20, 2016, 13:15 

#16 
New Member
Lukáš Hurda
Join Date: Oct 2015
Posts: 5
Rep Power: 3 
Ok, thank you, I have edited my initial reply quite fast, but still it does not explain what you are pointing out.
But if the turbulent flow and the viscous sublayer is really present, the wall normal velocity should be zero in that layer. And if that layer has a finite thickness, the first and second derivatives are zero as well at the wall, right? Again sorry for confusion and thank you for quick reply! 

January 20, 2016, 14:23 

#17 
Member
Max
Join Date: May 2011
Location: old europe
Posts: 87
Rep Power: 7 
I am not an expert in turbulence, but I think you are right about the vertical velocity component. It should be zero in the sublayer. And because of this, the second derivative should also be zero. But this line of argumentation only makes sense to me if the first layer of cells is thinner than the viscous sublayer.
But all this things we know about the viscous sublayer were derived based on certain assumptions and maybe even empirical findings. So I wouldnt use the conclusion from this ( > du^2/dy^2) and insert this into the derivation of this purely mathematical attempt to derive the pressure boundary condition. At least not without thoroughly thinking it through. 

January 20, 2016, 14:49 

#18 
New Member
Lukáš Hurda
Join Date: Oct 2015
Posts: 5
Rep Power: 3 
I agree, but it is better than nothing. I will keep an eye on this thread and keep the problem in mind to ask someone more experienced too if solution does not appear until I do so.
I have hands on lowRe SST kw and wall resolved LES right now, so my mesh is far below (y+ = 1) the viscous sublayer thickness (y+ = 5), so it won't get me toss, turn and sweat in the night. It is also not clear to me, why it would not be similar to laminar flow problem... The danger of getting thin boundary layer and wall normal velocity components is even smaller there. At least as far as I understand. Thanks for discussion and the initial post of this thread especially! 

January 20, 2016, 17:48 

#19  
Member
Max
Join Date: May 2011
Location: old europe
Posts: 87
Rep Power: 7 
Quote:
Also as I just had a look at the boundary layer equations... If you apply them at the wall (y=0). Then you get du2/dy2 = 1/mu * dp/dx. So if we can really use du2/dy2 = 0, as described in the derivation linked in the third post in this thread, we would get dp/dx = 0 (basically the Euler equation without convection terms due to u=v=0 at the wall). And this really doesn't make sense. But if you ever find the answer to this question, let me know! 

June 1, 2016, 02:58 
Physical significance and Maths behind boundary conditions

#20 
Member
Viraj Belekar
Join Date: Jun 2016
Posts: 43
Rep Power: 2 
Hello,
Does anyone have any material specifying the physical significance and maths behind different boundary conditions(fixedValue, zeroGradient) in OpenFOAM? Thanks 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
steam flow in a pipe driven by a pressure gradient between inlet and outlet  SalvoCalvo  Main CFD Forum  0  March 11, 2010 07:52 
Inputting pressure gradient in Fluent  Josyula  FLUENT  2  December 23, 2009 08:26 
Atmospheric pressure gradient  Luc3er  FLUENT  1  October 30, 2009 07:46 
Hydrostatic pressure gradient  Craig Finch (Finch)  OpenFOAM Running, Solving & CFD  10  March 1, 2007 00:02 
Flat plate with pressure gradient  Sheila  Main CFD Forum  3  September 24, 2005 13:58 