CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Preprocessing of Turbulent Pipe Flow

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2014, 20:46
Default
  #21
New Member
 
Winson Chen
Join Date: Mar 2014
Posts: 5
Rep Power: 12
wchen is on a distinguished road
Quote:
Originally Posted by byrong View Post
Hello Winson,

I assume you already got a proper mesh. However, to obtain a proper perturbation, I kind of cheated because I tried thousands of times using the perturbCylinder, and it did not work. In fact, the sine waves always became laminar. Therefore, what I did was the following:
1. Create a square channel with only two plates at the top and at the bottom which fits within the pipe you have.
2. Generate an initial perturbation using the boxTurb utility. Check a tutorial to use boxTurb first since the mesh must be divided in powers of two in each direction.
3. Run the case with the same velocity and viscosity parameters as the ones you will use in your pipe maybe for 5 to 10 cycles within the flow domain, or until you reach constant turbulence.
4. Once you got the turbulence map the velocity field of the squared channel to the pipe geometry with developed flow as an initial condition (both geometries should have the same length). To do this you require to use the mapFields utility, and create a mapFieldsDict within the system directory (there are plenty of tutorials of this online).
5. Run your pipe case. At the begining, the initial condition will look weird, but as long as the flow develops, you will get some nice turbulence. Run the case through the pipe domain for at least 10 complete cycles. Then use your last time step as a new initial condition, and run your case again for another 5 cycles. By doing this I got really nice statistics. Indeed, my statistics were very close to some DNS statistics that my supervisor gave me.

I hope it helps.

If you still need to use perturbCyl, you might have to write to Eugene de Villers, since he coded that utility, but in my case it did not work. And if you make it work properly, please let me know.


Cheers,

Byron
HI Byron,

Thank you for your quick and detailed reply. I will try your way and let you know the outcome later.

Have a nice weekend.

Winson
wchen is offline   Reply With Quote

Old   June 23, 2014, 01:47
Default
  #22
New Member
 
Winson Chen
Join Date: Mar 2014
Posts: 5
Rep Power: 12
wchen is on a distinguished road
Quote:
Originally Posted by byrong View Post
Hello Winson,

I assume you already got a proper mesh. However, to obtain a proper perturbation, I kind of cheated because I tried thousands of times using the perturbCylinder, and it did not work. In fact, the sine waves always became laminar. Therefore, what I did was the following:
1. Create a square channel with only two plates at the top and at the bottom which fits within the pipe you have.
2. Generate an initial perturbation using the boxTurb utility. Check a tutorial to use boxTurb first since the mesh must be divided in powers of two in each direction.
3. Run the case with the same velocity and viscosity parameters as the ones you will use in your pipe maybe for 5 to 10 cycles within the flow domain, or until you reach constant turbulence.
4. Once you got the turbulence map the velocity field of the squared channel to the pipe geometry with developed flow as an initial condition (both geometries should have the same length). To do this you require to use the mapFields utility, and create a mapFieldsDict within the system directory (there are plenty of tutorials of this online).
5. Run your pipe case. At the begining, the initial condition will look weird, but as long as the flow develops, you will get some nice turbulence. Run the case through the pipe domain for at least 10 complete cycles. Then use your last time step as a new initial condition, and run your case again for another 5 cycles. By doing this I got really nice statistics. Indeed, my statistics were very close to some DNS statistics that my supervisor gave me.

I hope it helps.

If you still need to use perturbCyl, you might have to write to Eugene de Villers, since he coded that utility, but in my case it did not work. And if you make it work properly, please let me know.


Cheers,

Byron

Hi again Byron,

I am using you method to generate some turbulence firstly in a channel. However, I have a couple of questions regarding the channel I need to generate:

1. Is the channel going to have top and bottom planes as walls and inlet and outlet as cyclic? In the boxTurb tutorial 6 planes are all cyclic.
2. In order to run the flow at the same Re in the channel (for my case it is Re_tau = 180), I have to mesh the channel very fine ( even finner than my original pipe to meet the CFL condition). Is it like this in your case too?
3. Do you by any chance know whether grading is allowed for the channel mesh?

Thanks in advance!

Winson
wchen is offline   Reply With Quote

Old   November 26, 2016, 23:12
Default Synthetic turbulence decays quickly
  #23
Senior Member
 
Join Date: Sep 2015
Location: Singapore
Posts: 102
Rep Power: 10
usv001 is on a distinguished road
Dear Foamers,

I am trying to run a compressible turbulent pipe flow using rhoCentralFoam. I have already implemented two synthetic turbulence generator boundary conditions:
  • Synthetic eddy method (SEM) - superimposing turbulent structures
  • Harmonic turbulence generation (HTG) - using an energy spectrum (similar to src/randomProcesses/turbulence/Ek.H)

Both methods are producing 'turbulence' (see image) with the correct mean and covariance, but the turbulence decays quickly without developing into eddies as it should. I am at a loss as to why. Has anyone faced similar problems or have any idea as to how I can prevent the decay?

Many thanks,
USV

P.S. I am not using a cyclic inlet/outlet arrangement since I would later need to apply these methods for more complicated geometries.
Attached Images
File Type: jpg SEM_vs_HTG_ns.jpg (90.2 KB, 56 views)
usv001 is offline   Reply With Quote

Old   August 14, 2018, 15:21
Default
  #24
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 225
Rep Power: 10
gu1 is on a distinguished road
Quote:
Originally Posted by usv001 View Post
Dear Foamers,

I am trying to run a compressible turbulent pipe flow using rhoCentralFoam. I have already implemented two synthetic turbulence generator boundary conditions:
  • Synthetic eddy method (SEM) - superimposing turbulent structures
  • Harmonic turbulence generation (HTG) - using an energy spectrum (similar to src/randomProcesses/turbulence/Ek.H)

Both methods are producing 'turbulence' (see image) with the correct mean and covariance, but the turbulence decays quickly without developing into eddies as it should. I am at a loss as to why. Has anyone faced similar problems or have any idea as to how I can prevent the decay?

Many thanks,
USV

P.S. I am not using a cyclic inlet/outlet arrangement since I would later need to apply these methods for more complicated geometries.
Did you find the solution to your problem?

I would like to know of the others present in the topic if, the model used to describe the velocity in the fvSchenes (div U) can influence the laminarization of the fluid when related to the spacing of the mesh in streamwise direction?

I'm having a problem with laminarization (LES - pipe), and my question is justified for this reason, because only the 'Gauss cubic' model manages to maintain the perturbations imposed by the perturbU. I do not know if it is related to the spacing in the streamwise direction.

Thanks
gu1 is offline   Reply With Quote

Old   August 17, 2018, 05:27
Default
  #25
Senior Member
 
Join Date: Sep 2015
Location: Singapore
Posts: 102
Rep Power: 10
usv001 is on a distinguished road
Hello Guilherme,

I did manage to find the reason behind it. In my case, the shock capturing schemes TVD scheme in rhoCentralFoam were simply too dissipative to preserve the eddies. However, when I attempted to use rhoPimpleFoam (which does not use any shock capturing scheme), the eddies made it all the way to the end with little dissipation. Check out this post for further details:

Link: Question about rhoCentralFoam and rhoPimpleFoam?
usv001 is offline   Reply With Quote

Old   August 12, 2019, 08:36
Default
  #26
Member
 
niewiemnic
Join Date: Jan 2018
Location: Niemcy
Posts: 80
Rep Power: 8
spalartallmaras is on a distinguished road
Quote:
Originally Posted by alexeym View Post

So I guess, you've tried channel395 mesh and it does have grading. If you'd like to have grading in your mesh and initialize it with boxTurb, you can initialize flow on the uniform mesh and then use mapFields utility to interpolate between meshes (uniform and graded).
Hi, I have a similar problem. With uniform grid the simulation works well. My time step is 0,0025 s. So I started my simulation with uniform grid only one time step.

Now I have the result of time 0,0025 s. So, with this result I did mapFields

mapFields <source> -consistent

and I changed the folder of the uniform gird to another folder "polyMesh" which has grading. But it doesnt work... What will be the reason?
spalartallmaras 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
turbulent pipe flow result validation preetam69 FLUENT 1 February 22, 2018 21:53
sonicFoam - pressure driven pipe: flow continuity violation and waveTransmissive BC Endel OpenFOAM Running, Solving & CFD 3 September 11, 2014 16:29
Simulating turbulent flow in rectangle pipe with rhoPimpleFoam zqlhzx OpenFOAM Running, Solving & CFD 1 January 6, 2014 05:24
Turbulent flow through a pipe with variable inlet velocity lobstar OpenFOAM Running, Solving & CFD 8 March 28, 2012 11:15
Appropriate model for turbulent, steady state pipe elbow flow milos OpenFOAM Running, Solving & CFD 4 July 9, 2009 02:24


All times are GMT -4. The time now is 10:18.