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

zero gradient pressure B/C

Register Blogs Community New Posts Updated Threads Search

Like Tree22Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2010, 16:47
Default 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: 21
msrinath80 is on a distinguished road
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?
DJ4, mushtime and granzer like this.
msrinath80 is offline   Reply With Quote

Old   June 30, 2010, 14:49
Default
  #2
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
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???
msrinath80 is offline   Reply With Quote

Old   August 6, 2010, 00:52
Thumbs up
  #3
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
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
msrinath80 is offline   Reply With Quote

Old   August 7, 2010, 01:16
Default
  #4
New Member
 
Robert
Join Date: Apr 2010
Posts: 16
Rep Power: 16
rob3rt is on a distinguished road
Thank you for sharing Srniath.
rob3rt is offline   Reply With Quote

Old   August 7, 2010, 01:26
Default
  #5
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Glad you found it useful Have a good weekend!
msrinath80 is offline   Reply With Quote

Old   August 7, 2010, 15:22
Default
  #6
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 18
idrama is on a distinguished road
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!
idrama is offline   Reply With Quote

Old   August 7, 2010, 16:16
Default
  #7
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
No problem. I for one welcome any criticisms. After all we are all here to share and learn
JasmineFeng likes this.
msrinath80 is offline   Reply With Quote

Old   September 28, 2010, 16:31
Default
  #8
Member
 
Join Date: Jul 2010
Posts: 37
Rep Power: 16
steph79 is on a distinguished road
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 2-D laminar boundary layers.

Any suggestions would be greatly appreciated. Thanks!
steph79 is offline   Reply With Quote

Old   November 11, 2010, 10:58
Default
  #9
New Member
 
Join Date: Oct 2010
Posts: 9
Rep Power: 16
AsafPa is on a distinguished road
I'm also interested in this topic. If you have a look on the cavity tutorial, the pressure-gradient normal to the movingWall is certainly not zero.

Did you already come to a result, steph79?
AsafPa is offline   Reply With Quote

Old   November 15, 2010, 06:45
Default
  #10
Member
 
Join Date: Jul 2010
Posts: 37
Rep Power: 16
steph79 is on a distinguished road
Quote:
Originally Posted by AsafPa View Post
I'm also interested in this topic. If you have a look on the cavity tutorial, the pressure-gradient normal to the movingWall is certainly not zero.

Did you already come to a result, steph79?
Yes, PRESTO! pressure discretisation is what you're looking for but whether that can easily be implemented in OpenFOAM I'm not sure. Could someone with more experience please comment on that?

Thank you.
steph79 is offline   Reply With Quote

Old   December 13, 2010, 20:43
Question question
  #11
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17
sahm is on a distinguished road
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
sahm is offline   Reply With Quote

Old   December 14, 2010, 10:50
Default
  #12
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
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.
sharonyue and pvergnol like this.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   July 28, 2015, 12:02
Default
  #13
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 15
murx is on a distinguished road
Quote:
Originally Posted by sahm View Post
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.
Sorry to open this thread again. But this is exactly what I was asking myself: dv/dy = 0 => d2v/dy2 = 0 ...why?

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.
murx is offline   Reply With Quote

Old   January 20, 2016, 12:42
Default
  #14
New Member
 
Lukáš Hurda
Join Date: Oct 2015
Posts: 5
Rep Power: 11
Luke.12 is on a distinguished road
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.
Luke.12 is offline   Reply With Quote

Old   January 20, 2016, 13:05
Default
  #15
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 15
murx is on a distinguished road
Quote:
Originally Posted by Luke.12 View Post
The second derivatives of velocity are zero because of the linear velocity increase in the viscous sublayer... correct me if I'm wrong.
You are now bringing turbulence into the problem, which will not make this more easy to solve However, the linear velocity profile in the viscous sublayer of turbulent flows refers to the parallel velocity component u --> du/dy = const. You can't simply apply this to v.

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.
utkunun likes this.
murx is offline   Reply With Quote

Old   January 20, 2016, 13:15
Default
  #16
New Member
 
Lukáš Hurda
Join Date: Oct 2015
Posts: 5
Rep Power: 11
Luke.12 is on a distinguished road
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!
Luke.12 is offline   Reply With Quote

Old   January 20, 2016, 14:23
Default
  #17
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 15
murx is on a distinguished road
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.
murx is offline   Reply With Quote

Old   January 20, 2016, 14:49
Default
  #18
New Member
 
Lukáš Hurda
Join Date: Oct 2015
Posts: 5
Rep Power: 11
Luke.12 is on a distinguished road
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 low-Re SST k-w 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!
Luke.12 is offline   Reply With Quote

Old   January 20, 2016, 17:48
Default
  #19
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 15
murx is on a distinguished road
Quote:
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.
Actually, if you look at the boundary layer equations by Prandtl (which I guess should be valid for laminar flow), you can see that they even explicitly state that dp/dy = 0 in the whole boundary layer. But still, there are certain assumptions necessary to get from the NSE to the boundary layer equations (i.e. concerning the magnitude of Re). And I am pretty sure, that the dp/dy = condition is not generally valid for low Re-numbers flows. I already experienced convergence issues that are most likely caused by this.

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!
murx is offline   Reply With Quote

Old   June 1, 2016, 03:58
Default Physical significance and Maths behind boundary conditions
  #20
Member
 
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 10
viraj20feb is on a distinguished road
Hello,

Does anyone have any material specifying the physical significance and maths behind different boundary conditions(fixedValue, zeroGradient) in OpenFOAM?

Thanks
granzer likes this.
viraj20feb is offline   Reply With Quote

Reply


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
steam flow in a pipe driven by a pressure gradient between inlet and outlet SalvoCalvo COMSOL 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 14:58


All times are GMT -4. The time now is 21:33.