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

Setup of files for turbulent flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2013, 12:50
Thumbs up Setup of files for turbulent flow
  #1
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Hi everyone,

I am triying to make the simulations of a complicated channel using simpleFoam, adding temperature equation as stated in somewhere in this forum and in turbulence regime.

The geometry consists in two inlets, an outlet and a wall.

I only have info about pressure values on inlets (0 Pa) and outlet (negative, for example -50 Pa), no velocity values are known and I want to simulate a turbulent flow, so some new files (from my previous laminar case) have to be added to "0" file.

I have been reading about how to compute the values for k, epsilon, nut and Nutilda, and I donīt know how to set up these values because for example for computing turbulence intensity I need to know the value of velocity ( for computing Reynolds) and itīs not known, so I cannot compute k.

Anybody knows a good setup of these files for my case?

Any suggestion will be really appreciated (beginner with turbulence)
Tensian is offline   Reply With Quote

Old   September 16, 2013, 13:42
Default
  #2
Member
 
Frank Ubber
Join Date: Aug 2013
Posts: 32
Rep Power: 12
kornickel is on a distinguished road
Why don't you calculate the inlet- and outlet velocities via Bernoulli's law and continuity equation? Since you know the inlet/outlet geometry and the pressure at inlet/outlet. With these velocities you should be able to calculate a good approximation of k and epsilon.

Edit: And about the folder structure: Take a look at the simpleFoam tutorial cases e.g. HERE
kornickel is offline   Reply With Quote

Old   September 17, 2013, 09:06
Arrow
  #3
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Hi Frank,
Thanks for the fast reply. Let me see if I am understanding it well.

Supose we have a pressure at inlet of 0 Pa and a pressure at outlet of -40 Pa. The fluid is air with density rho=1.225 kg/m^3

So,

P_TOT=P_STATIC+P_DYNAMIC P_DYNAMIC=0.5*RHO*V^2

V=sqrt(2 (P_TOTAL-P_STATIC)/RHO)

Then in this case I obtain for inlet:

V=sqrt(2(101325-0)/1.225)

With these calculations I obtain a velocity V=406 m/s, and I guess I am doing something wrong...because I expect velocitites very much lower.

So my questions are:

1-Is this the V value that I should take to compute all turbulence quantities? 2-What am I doing wrong?
3. For a pipe (or similar) what is characteristic lenght: hydraulic dyameter or length of the pipe?

Sorry for that stupid questions, I have never worked with a pressure driven flow.
Tensian is offline   Reply With Quote

Old   September 17, 2013, 18:07
Default
  #4
Member
 
Frank Ubber
Join Date: Aug 2013
Posts: 32
Rep Power: 12
kornickel is on a distinguished road
Hi Tensian,

what I meant was use Bernoulli's principle AND the continuity equation. So with Bernoulli you are going to have:

P_in/rho + (v_in^2)/2 = P_out/rho + (v_out^2)/2

(I assume we can ignore the floor level difference)
So since you have incompressible case use the cont.-equ. next:

v_in * A_in = v_out * A_out

So you have two unknown variables (v_in and v_out) and two equations. Ta-da!

Depending on your inlet/outlet area you should get reasonable values.


I don't exactly know your case but I also assume you just can use the inlet velocity to calculate inlet k- and epsilon. Use a pressureVelocityInlet (in) and inletOutlet (out) for U field and totalPressure (inlet, calculate it with calculated v_in) and fixedValue (out) for the p field.

edit: characteristic length of a pipe is always hydraulic diameter. Look HERE.
kornickel is offline   Reply With Quote

Old   September 17, 2013, 18:40
Default
  #5
Member
 
Frank Ubber
Join Date: Aug 2013
Posts: 32
Rep Power: 12
kornickel is on a distinguished road
Almost forgot about your second inlet. You can just combine the two inlet areas to one big dummy inlet surface and calculate the inlet velocity this way. If the geometry is not that complicated both inlet velocities are the same due to same static pressure. Don't forget to add pressure loss in your tube if necessary.
So much for theory!
kornickel is offline   Reply With Quote

Old   September 18, 2013, 10:01
Arrow
  #6
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Thank you so much Frank. I will make the calculations for my problem and Iīll let you know if I get a converged solution with the turbulence model!!

Cheers,

James.
Tensian is offline   Reply With Quote

Old   October 1, 2013, 12:33
Thumbs up
  #7
Member
 
Liam
Join Date: Aug 2013
Posts: 40
Rep Power: 12
Many is on a distinguished road
And what happens if the two inlet have different areas and perimeters? Are this computations still valid? I am a little confused
Many is offline   Reply With Quote

Old   October 1, 2013, 12:36
Thumbs up
  #8
Member
 
Liam
Join Date: Aug 2013
Posts: 40
Rep Power: 12
Many is on a distinguished road
I wonder if this inlet velocity can be used for computing Reynolds number. I am working with a similar geometry and I am not sure how to compute characteristic velocity and lenght (hydraulic dyameter of one inlet or both two?)

Thanks,

Many
Many 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
Flow around ship hull, multiphase setup!! alibul FLUENT 15 February 21, 2019 02:50
Different flow patterns in CFX and Fluent avi@lpsc FLUENT 4 April 8, 2012 06:12
Unsteady flow with profile files DK FLUENT 1 July 25, 2007 16:20
Flow Split Setup Question ed FLUENT 1 February 16, 2007 16:55
potential flow vs. Euler flow curious ... Main CFD Forum 23 July 21, 2006 07:40


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