CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Boundary Conditions of Turbulent Channel Flow (DNS)

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2023, 07:56
Default Boundary Conditions of Turbulent Channel Flow (DNS)
  #1
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
Hello together,

I am trying to simulate a turbulent channel flow without an inlet velocity. Therefore, I read some references and where it states that the simulations use forcing by a constant pressure gradient, represented by the forcing term f=(1,0,0) in the Navier-Stokes equation ([1], p. 3->screenshot is attached). What does this mean for the boundary conditions?

Thanks in advance

[1]: A. W. Vreman, J. G. M. Kuerten: 'Comparison of direct numerical simulation databases of turbulent channel flow at Reτ = 180'
Attached Images
File Type: png Screenshot 2023-05-19 at 13.55.29.png (75.6 KB, 29 views)
Bottikowski96 is offline   Reply With Quote

Old   May 19, 2023, 08:15
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,782
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
It means you have periodic BCs in streamwise and spanwise directions.
Bottikowski96 likes this.
FMDenaro is offline   Reply With Quote

Old   May 19, 2023, 08:37
Default
  #3
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
Thanks for you answer. But does it mean that I have to define a pressure value at the inlet and outlet to get a pressure gradient?
Bottikowski96 is offline   Reply With Quote

Old   May 19, 2023, 13:07
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,782
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Bottikowski96 View Post
Thanks for you answer. But does it mean that I have to define a pressure value at the inlet and outlet to get a pressure gradient?



No, you have a constant pressure gradient term in the momentum equation plus a periodic fluctuation field you solve by means of the pressure equation with periodic BCs.
Bottikowski96 likes this.
FMDenaro is offline   Reply With Quote

Old   May 19, 2023, 18:00
Default
  #5
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
Okay, I got it. Thanks for your help!
Bottikowski96 is offline   Reply With Quote

Old   May 20, 2023, 08:55
Default
  #6
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,159
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Said otherwise, you need periodic boundary conditions and an x-momentum source term = 1, everything else is as usual
Bottikowski96 likes this.
sbaffini is offline   Reply With Quote

Old   May 22, 2023, 02:49
Default
  #7
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
And what is the outcome of the periodic BCs in streamwise and spanwise directions? Are they used to saying the flow repeats in those directions?
Bottikowski96 is offline   Reply With Quote

Old   May 22, 2023, 03:07
Default
  #8
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,680
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You have a plane channel, i.e. 2D, so you repeat the flow in spanwise direction.

You have a fully developed flow in the streamwise direction and that's why you use the periodic there. If this was instead a developing flow problem then you would specify the flow at the inlet (i.e. a velocity inlet) and likely you would not use the body force either.

You cannot force symmetry boundary conditions in spatially and temporally resolved simulations mirror-ing leads to very unnatural results. Instead you use natural conditions.
Bottikowski96 likes this.
LuckyTran is offline   Reply With Quote

Old   May 23, 2023, 04:42
Default
  #9
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
@sbaffini: So, I need periodic BC in streamwise and spanwise directions and no-slip conditions at the wall, right? What about the pressure, do I need a BC for it e.g. p=0 at the outlet? Moreover, I need to solve the incompressible NS-equations WITH a forcing term only in x-direction f=(1,0,0), right? And through the forcing term, the wall shear stress results in 1 which leads to a friction velocity of 1 (because the density is also 1)?
Bottikowski96 is offline   Reply With Quote

Old   May 23, 2023, 07:09
Default
  #10
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,680
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The forcing term allows you to use periodic BCs on the remaining resulting pressure field. That's why you're doing it.
Bottikowski96 likes this.
LuckyTran is offline   Reply With Quote

Old   May 23, 2023, 08:50
Default
  #11
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,159
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by Bottikowski96 View Post
@sbaffini: So, I need periodic BC in streamwise and spanwise directions and no-slip conditions at the wall, right? What about the pressure, do I need a BC for it e.g. p=0 at the outlet? Moreover, I need to solve the incompressible NS-equations WITH a forcing term only in x-direction f=(1,0,0), right? And through the forcing term, the wall shear stress results in 1 which leads to a friction velocity of 1 (because the density is also 1)?
As mentioned by LuckyTran, you need periodic bc's on pressure as well. All the other answers are YES
Bottikowski96 likes this.
sbaffini is offline   Reply With Quote

Old   May 23, 2023, 09:14
Default
  #12
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
Thanks again for your answers, I really appreciate that! I really want to be sure that I have understood everything, so I have a further question regarding the BC. I would use the following BC for a 2D channel flow with height 'h' and length 'l':

no-slip BC : u=v=0 at y=0 and at y=h
periodic pressure BC: p(x=0) = p(x=l)

Would that be correct?
Bottikowski96 is offline   Reply With Quote

Old   May 23, 2023, 09:32
Default
  #13
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,159
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by Bottikowski96 View Post
Thanks again for your answers, I really appreciate that! I really want to be sure that I have understood everything, so I have a further question regarding the BC. I would use the following BC for a 2D channel flow with height 'h' and length 'l':

no-slip BC : u=v=0 at y=0 and at y=h
periodic pressure BC: p(x=0) = p(x=l)

Would that be correct?
Yes but, practically, it also depends from the specific scheme. The basic idea is to extend your scheme stencil at the boundaries using values from the other side
Bottikowski96 likes this.
sbaffini is offline   Reply With Quote

Old   May 23, 2023, 10:12
Default
  #14
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
All right. Then, it would be possible to perform a simulation of a channel flow only with the no-slip conditions, because the forcing term causes the fluid to move?
Bottikowski96 is offline   Reply With Quote

Old   May 23, 2023, 10:18
Default
  #15
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,159
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by Bottikowski96 View Post
All right. Then, it would be possible to perform a simulation of a channel flow only with the no-slip conditions, because the forcing term causes the fluid to move?
Exactly. Once you look at the equations, your forcing term will be equivalent to an average pressure gradient, which will need an average wall shear stress to be balanced in the periodic setting. So, you'll get the average velocity profile that, according to your scheme, provides the average wall shear stress that balances the forcing term.
Bottikowski96 likes this.
sbaffini is offline   Reply With Quote

Old   May 23, 2023, 10:30
Default
  #16
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
But why will be the forcing term equivalent to the pressure gradient term in the NS equations? In the case of a laminar, steady, incompressible channel flow, u (velocity in x direction) is unequal to zero and v (velocity in y direction) is equal to zero. Hence, the mass balance equation results in ∂u/∂x=0. Therefore, the y-momentum equation results in -(1/rho)*∂p/∂y=0 and the x-momentum equation in 0=-(1/rho) ∂p/∂x + nue*∂u∂u/∂y∂y + f_x, because all terms connected to v vanish as well as the gradients of u in x-direction.
Bottikowski96 is offline   Reply With Quote

Old   May 23, 2023, 10:42
Default
  #17
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,782
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Bottikowski96 View Post
But why will be the forcing term equivalent to the pressure gradient term in the NS equations? In the case of a laminar, steady, incompressible channel flow, u (velocity in x direction) is unequal to zero and v (velocity in y direction) is equal to zero. Hence, the mass balance equation results in ∂u/∂x=0. Therefore, the y-momentum equation results in -(1/rho)*∂p/∂y=0 and the x-momentum equation in 0=-(1/rho) ∂p/∂x + nue*∂u∂u/∂y∂y + f_x, because all terms connected to v vanish as well as the gradients of u in x-direction.



To understand the question, you should consider the non-dimensional form of the momentum equation using the u_tau velocity as reference. The pressure gradient requires a splitting to highlight the forcing term

You can read the details in Sec. 5.1 here (you can disregard the time-dependent forcing part):
https://www.researchgate.net/publica...ection_methods
Bottikowski96 likes this.
FMDenaro is offline   Reply With Quote

Old   May 23, 2023, 11:36
Default
  #18
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,159
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by Bottikowski96 View Post
But why will be the forcing term equivalent to the pressure gradient term in the NS equations? In the case of a laminar, steady, incompressible channel flow, u (velocity in x direction) is unequal to zero and v (velocity in y direction) is equal to zero. Hence, the mass balance equation results in ∂u/∂x=0. Therefore, the y-momentum equation results in -(1/rho)*∂p/∂y=0 and the x-momentum equation in 0=-(1/rho) ∂p/∂x + nue*∂u∂u/∂y∂y + f_x, because all terms connected to v vanish as well as the gradients of u in x-direction.
Because:

f_x = 1 = - \left(-1\right) = - \left(\frac{dp_0}{dx}\right) = - \left[\frac{d\left(-x\right)}{dx}\right]

so it implies the existence of a p_0=-x pressure that is linearly decreasing along x. Which is exactly what we know exists in such case.

In a sense, it's not different from when you solve for a gauge pressure, where the reference pressure disappears from momentum because it only is under gradient. Here, that linear part under gradient becomes a constant source and, by explicitly adding that source (and using periodicity for pressure) you are implicitly solving only for the pressure part on top of that linear variation.
Bottikowski96 likes this.
sbaffini is offline   Reply With Quote

Old   May 23, 2023, 13:06
Default
  #19
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,680
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Note that you can definitely run a case with a specified pressure at the inlet and outlet. Your question was specifically about how the source term works.

Consider a pressure field such that p1(x)=-\beta x+p2(x)

If p2 is periodic then p2(x)=p2(x+L)

The pressure at any two stations separated by L is
p1(x)=-\beta x+p2(x)
p1(x+L)=-\beta (x+L)+p2(x+L)
subtract one from the other and you get

-\frac{p1(x+L)-p1(x)}{L}=\beta

Beta is your forcing term and it is exactly equal to the pressure drop per period which is what you would have if you did a pressure inlet and outlet. Alternatively, if you take a normal navier-stokes solver, add a forcing term to it, it allows you to use periodic BCs on p2 (not the original p1 which is not periodic). Both approaches are equivalent. It's up to you which flavor you like.
Bottikowski96 likes this.
LuckyTran is offline   Reply With Quote

Old   May 24, 2023, 04:49
Default
  #20
New Member
 
Join Date: Jan 2021
Posts: 16
Rep Power: 5
Bottikowski96 is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
Exactly. Once you look at the equations, your forcing term will be equivalent to an average pressure gradient, which will need an average wall shear stress to be balanced in the periodic setting. So, you'll get the average velocity profile that, according to your scheme, provides the average wall shear stress that balances the forcing term.
Quote:
Originally Posted by LuckyTran View Post
Beta is your forcing term and it is exactly equal to the pressure drop per period which is what you would have if you did a pressure inlet and outlet. Alternatively, if you take a normal navier-stokes solver, add a forcing term to it, it allows you to use periodic BCs on p2 (not the original p1 which is not periodic). Both approaches are equivalent. It's up to you which flavor you like.
I have simulated a 2D laminar channel flow without a forcing term, with no-slip BC and ∂p/∂x=1 (in form of the BC: p(x=0)=length of channel | p(x=l)=0). This delivers the correct results. Then, I tried to run the same benchmark with no-slip BC again, but instead of the above pressure BC, I used a forcing term of f=(1,0). But then I get a velocity of zero in both directions in the entire domain. Why is that the case?
Bottikowski96 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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Boundary conditions in channel flow with wall model GCMS_A OpenFOAM Pre-Processing 0 April 21, 2015 08:47
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19


All times are GMT -4. The time now is 05:48.