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

a fully developed pipe flow in LES with mapped BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2020, 08:21
Default a fully developed pipe flow in LES with mapped BC
  #1
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7
bany is on a distinguished road
When i use the mapped BC to obtain a fully developed circular pipe flow in LES with pisoFoam, i get a false u profile along the radial direction which increases with time.
And in this case, my y+~5, and the offset is set to (0.025 0 0).The length of the pipe is 30mm and the initial velocity is (110 0 0). I set the setAverage to true to maintain the pipe flow. To ensure the Re being 10500, i set the nu=1.57e-5.
Can anyone tell me why i cannot obtain a fully developed circular pipe flow with those setup.
Any advice are appreciated!
Attached Images
File Type: png the_mesh.png (54.4 KB, 106 views)
File Type: png BCs.png (42.0 KB, 108 views)
File Type: png result.png (34.6 KB, 117 views)
bany is offline   Reply With Quote

Old   May 25, 2020, 09:17
Default
  #2
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by bany View Post
When i use the mapped BC to obtain a fully developed circular pipe flow in LES with pisoFoam, i get a false u profile along the radial direction which increases with time.
And in this case, my y+~5, and the offset is set to (0.025 0 0).The length of the pipe is 30mm and the initial velocity is (110 0 0). I set the setAverage to true to maintain the pipe flow. To ensure the Re being 10500, i set the nu=1.57e-5.
Can anyone tell me why i cannot obtain a fully developed circular pipe flow with those setup.
Any advice are appreciated!
Did you use fixedValue boundary condition for the initial vilocity?
guanjiang.chen is offline   Reply With Quote

Old   May 25, 2020, 18:45
Default the Additional file
  #3
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7
bany is on a distinguished road
Quote:
Originally Posted by guanjiang.chen View Post
Did you use fixedValue boundary condition for the initial vilocity?
Oh, thanks a lot! Surely, i had try a fixedValue BC, however, i cannot obtain a turbulent pipe flow(the U profiles looks like a laminar flow) expect for one situation i.e. y+<1. But the case for y+<1, the number of mesh is so many.
In addition, i try to use the wallfunctions. Unfortunately, i also cannot get a fully turbulent pipe flow.
For more details, you can look up the attachments! All cases can be run by blockMesh ——> pisoFoam
Attached Files
File Type: zip pipe-mapped BC.zip (6.9 KB, 67 views)
File Type: zip pipe-wallfunction.zip (12.8 KB, 36 views)
bany is offline   Reply With Quote

Old   May 26, 2020, 13:42
Default
  #4
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by bany View Post
Oh, thanks a lot! Surely, i had try a fixedValue BC, however, i cannot obtain a turbulent pipe flow(the U profiles looks like a laminar flow) expect for one situation i.e. y+<1. But the case for y+<1, the number of mesh is so many.
In addition, i try to use the wallfunctions. Unfortunately, i also cannot get a fully turbulent pipe flow.
For more details, you can look up the attachments! All cases can be run by blockMesh ——> pisoFoam
Hi bany,

If I set, I will also set boundary layer like you. I don't know whether calculating for longer time can show turbulent pipe flow.
Did do some Urans case and in Urans case is there turbulent flow?
What I think can try maybe using cyclic boundary for inlet and outlet.
Making nearwall mesh better is also a choice.

Sincerely,
Guanjiang
guanjiang.chen is offline   Reply With Quote

Old   May 26, 2020, 21:14
Default
  #5
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7
bany is on a distinguished road
Quote:
Originally Posted by guanjiang.chen View Post
Hi bany,

If I set, I will also set boundary layer like you. I don't know whether calculating for longer time can show turbulent pipe flow.
Did do some Urans case and in Urans case is there turbulent flow?
What I think can try maybe using cyclic boundary for inlet and outlet.
Making nearwall mesh better is also a choice.
Guanjiang, thanks for your applying. I think that the calculating time is not the main reason.Because, when i run these cases, about 20 flow times are guaranteed.
In addition, i have tried to use the cyclic BC with the gradp to force the flow. And by this method, we can get a fully turbulence.
However, i do not know why i cannot get a fully turbulence by mapped BC or wallfuncions in LES.
Whatever, thanks for your attention.
bany is offline   Reply With Quote

Old   May 27, 2020, 05:20
Default
  #6
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by bany View Post
Guanjiang, thanks for your applying. I think that the calculating time is not the main reason.Because, when i run these cases, about 20 flow times are guaranteed.
In addition, i have tried to use the cyclic BC with the gradp to force the flow. And by this method, we can get a fully turbulence.
However, i do not know why i cannot get a fully turbulence by mapped BC or wallfuncions in LES.
Whatever, thanks for your attention.
Did you compare pitzDailyMapped and pitzDaily? /newhome/va19337/OpenFOAM/OpenFOAM6/tutorials/incompressible/pisoFoam/LES/pitzDailyMapped

They shows different results. The mapped boundary condition is special I think.
guanjiang.chen is offline   Reply With Quote

Old   May 27, 2020, 06:10
Default
  #7
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7
bany is on a distinguished road
Quote:
Originally Posted by guanjiang.chen View Post
Did you compare pitzDailyMapped and pitzDaily? /newhome/va19337/OpenFOAM/OpenFOAM6/tutorials/incompressible/pisoFoam/LES/pitzDailyMapped

They shows different results. The mapped boundary condition is special I think.
OK, i noticed both cases. However, you can notice that in the extended square 2-D pipe, the turbulence seems to be non-existent. That is, the turbulence exists in the container rearwards and in my opinion, it is formed due to the shear between the slow flow in container rearwards and the fast flow from the square 2-D pipe.
Thanks for your continuous answer!
bany is offline   Reply With Quote

Old   May 27, 2020, 06:20
Default
  #8
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by bany View Post
OK, i noticed both cases. However, you can notice that in the extended square 2-D pipe, the turbulence seems to be non-existent. That is, the turbulence exists in the container rearwards and in my opinion, it is formed due to the shear between the slow flow in container rearwards and the fast flow from the square 2-D pipe.
Thanks for your continuous answer!
There is much small turbulence in pitzDailyMapped I think. Let's check more material about Mapped boundary before use it.
guanjiang.chen is offline   Reply With Quote

Old   May 27, 2020, 08:25
Default
  #9
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7
bany is on a distinguished road
Quote:
Originally Posted by guanjiang.chen View Post
There is much small turbulence in pitzDailyMapped I think. Let's check more material about Mapped boundary before use it.
Okay, thanks a lot!
bany is offline   Reply With Quote

Old   May 28, 2020, 08:02
Default
  #10
New Member
 
Hesam Tofighian
Join Date: Mar 2019
Posts: 11
Rep Power: 7
H.Tofighian is on a distinguished road
Quote:
Originally Posted by bany View Post
When i use the mapped BC to obtain a fully developed circular pipe flow in LES with pisoFoam, i get a false u profile along the radial direction which increases with time.
And in this case, my y+~5, and the offset is set to (0.025 0 0).The length of the pipe is 30mm and the initial velocity is (110 0 0). I set the setAverage to true to maintain the pipe flow. To ensure the Re being 10500, i set the nu=1.57e-5.
Can anyone tell me why i cannot obtain a fully developed circular pipe flow with those setup.
Any advice are appreciated!
Hi.
What is your divScheme for velocity? Maybe the numerical diffusion damps eddies?
Also, eddies formation stars from the boundary layer, so you need to resolve it.
H.Tofighian is offline   Reply With Quote

Old   May 28, 2020, 08:23
Default
  #11
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7
bany is on a distinguished road
Quote:
Originally Posted by H.Tofighian View Post
Hi.
What is your divScheme for velocity? Maybe the numerical diffusion damps eddies?
Also, eddies formation stars from the boundary layer, so you need to resolve it.
You can find more details on the #3 from the attachments.
You can see in the pipe-wallfunction where i set wall functions for nut and k in order to resolve the eddies near the wall. However, the wall functions seem to be invalid. By the way, the wall functions, i think, is fitted with the y+.

In short, thanks a lot.
bany is offline   Reply With Quote

Old   September 17, 2020, 08:28
Default
  #12
New Member
 
Ran Yi
Join Date: May 2019
Posts: 9
Rep Power: 7
lizzy is on a distinguished road
Hi bany,

I just encounter the same problem with you: the "laminar" mean velocity profile after using mapped BC at the inlet. Have you found out the solution?

BTW, besides mapping U, do you think it is necessary to map other parameters, such as nut and k...?

Appreciate anyone who can give some advice on this issue. Thanks!
Quote:
Originally Posted by bany View Post
When i use the mapped BC to obtain a fully developed circular pipe flow in LES with pisoFoam, i get a false u profile along the radial direction which increases with time.
Any advice are appreciated!
lizzy is offline   Reply With Quote

Old   April 18, 2023, 15:25
Default
  #13
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Quote:
Originally Posted by bany View Post
When i use the mapped BC to obtain a fully developed circular pipe flow in LES with pisoFoam, i get a false u profile along the radial direction which increases with time.
And in this case, my y+~5, and the offset is set to (0.025 0 0).The length of the pipe is 30mm and the initial velocity is (110 0 0). I set the setAverage to true to maintain the pipe flow. To ensure the Re being 10500, i set the nu=1.57e-5.
Can anyone tell me why i cannot obtain a fully developed circular pipe flow with those setup.
Any advice are appreciated!

Did you find out the reason? I am applying mapped B.C. on pipe flow for a LES simulation and the results inside the pipe does not look instantaneous to me.
sinatahmooresi is offline   Reply With Quote

Old   May 25, 2023, 11:15
Default
  #14
Member
 
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8
JM27 is on a distinguished road
Quote:
Originally Posted by sinatahmooresi View Post
Did you find out the reason? I am applying mapped B.C. on pipe flow for a LES simulation and the results inside the pipe does not look instantaneous to me.
Hi,

I am also working on a similar problem, maybe we can help each other. Do you apply the mapped BC to the U field only or also to nut and k?

Thanks,
J
JM27 is offline   Reply With Quote

Old   May 25, 2023, 11:25
Default
  #15
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by JM27 View Post
Hi,

I am also working on a similar problem, maybe we can help each other. Do you apply the mapped BC to the U field only or also to nut and k?

Thanks,
J
Hi J,

I have abandoned the mapped BC. What I do is conducting the RANS simulation first and then set the RANS results as the initial set for the LES.

Regards,
Guanjiang
guanjiang.chen is offline   Reply With Quote

Old   May 25, 2023, 11:37
Default
  #16
Member
 
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8
JM27 is on a distinguished road
Hi Guanjiang,

Thanks for the prompt response. What boundary conditions do you then use in your LES if not using the mapped BC?
JM27 is offline   Reply With Quote

Old   May 25, 2023, 11:41
Default
  #17
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by JM27 View Post
Hi Guanjiang,

Thanks for the prompt response. What boundary conditions do you then use in your LES if not using the mapped BC?
Hi,

What I do is a basic problem of incompressible flow past a cylinder. I fixed the velocity at the inlet and fixed the pressure at the outlet. For the nut, I just use zeroGradient at the inlet and outlet. There are many boundary matches tutorial online. You can try and get a best one.

Regards,
Guanjiang
guanjiang.chen is offline   Reply With Quote

Old   June 2, 2023, 21:31
Default
  #18
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 7
bany is on a distinguished road
Quote:
Originally Posted by JM27 View Post
Hi Guanjiang,

Thanks for the prompt response. What boundary conditions do you then use in your LES if not using the mapped BC?

The fully developed turbulence in LES can be obtained by refinemesh in the wall regions. It is the only way where i got a fully developed turbulence with LES. However, the refined mesh near the wall will lead to more time cost.

Any advice will be appreciated!
bany is offline   Reply With Quote

Old   June 9, 2023, 08:53
Default
  #19
New Member
 
Join Date: Jun 2023
Posts: 6
Rep Power: 3
Junrui is on a distinguished road
Quote:
Originally Posted by bany View Post
The fully developed turbulence in LES can be obtained by refinemesh in the wall regions. It is the only way where i got a fully developed turbulence with LES. However, the refined mesh near the wall will lead to more time cost.

Any advice will be appreciated!
Hi bany,
I am now also working on LES for fully developed turbulent channel flow. However, even my y+ is controlled below 2, the velocity profile indicates that the flow might not be fully developed turbulent flow. If convenient, could you please tell me about your boundary conditions, the difference scheme for the convective term, and how many circulations have you run to get the fully developed turbulent flow?
Thanks for your time,
Regards,
Junrui
Junrui is offline   Reply With Quote

Old   June 9, 2023, 11:29
Default
  #20
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Quote:
Originally Posted by Junrui View Post
Hi bany,
I am now also working on LES for fully developed turbulent channel flow. However, even my y+ is controlled below 2, the velocity profile indicates that the flow might not be fully developed turbulent flow. If convenient, could you please tell me about your boundary conditions, the difference scheme for the convective term, and how many circulations have you run to get the fully developed turbulent flow?
Thanks for your time,
Regards,
Junrui
Hello Junrui,

In addition to the mesh refinement adjacent to the wall, I suggest you to switch to cubic convective schemes in your fvSchemes dictionary. Using this, I could solve the problem of turbulence generation in my pipe flow case.



Sina
sinatahmooresi 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
3D pipe flow - Using UDF's to define fully developed turbulent flow on the inlet Taz-CFD CFD Freelancers 1 February 21, 2016 11:12
Couple outlet to inlet to achieve a fully developed flow. raghu.tejaswi Fluent UDF and Scheme Programming 8 July 18, 2013 09:04
Fully Developed Flow in Star-cd SMM STAR-CD 0 September 5, 2011 22:08
Simulating fully developed flow in a pipe Tim Donohue CFX 1 November 20, 2007 20:24
udf for 3D laminar fully developed flow salman FLUENT 0 November 9, 2006 21:45


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