|
[Sponsors] |
July 12, 2016, 21:12 |
Checking if Turbulence modeling is on/off
|
#1 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
Hi all,
Sometimes seeing is believing. In my constant/turbulenceProperties one can choose to set "turbulence" on or off. I would expect this to have the same effect as if the other keyword in the same file- "simulationType" is set to laminar. But I want to be sure of this. So for example, in simpleFoam, in the UEqn.H, the term turbulence->divDevReff(U) seems to be where the turbulence model comes into play (right!?) But there is no logic telling the solver whether to use the turbulence model or not, depending on what we specified in constant/turbulenceProperties! How does the solver know if we turned turbulence on or off? I was hoping maybe I could put in some print statements at the very least to see if the turbulence model is on or off! Maybe I am missing something regarding what the (class!?) "turbulence" is. But I could really use someone to point me in the right direction on this. |
|
July 13, 2016, 06:40 |
|
#2 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hi
As you say, when you turn off the turbulence, it just do not execute correct, so the different variables (k, epsilon, nut ...) remain as they were in the previous iteration. The solver knows , it seems it looks for it each time step. It makes sense when, for instance, you want first a simulation without resolving turbulence, and then you switch it on to start to solve your turbulence variables. I hope I was clear! |
|
July 13, 2016, 07:32 |
|
#3 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
Hi agustinvo,
Thanks for your reply. I believe you but I wanted to understand exactly what happens in the code! So I did the following: In rhoPimpleFoam.C I edited to include a print statement Code:
if (pimple.turbCorr()) { Info << "Turbulence correction is on!" << endl; turbulence->correct(); } |
|
July 13, 2016, 08:10 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
The distinction is not made in the solver but in the turbulence library. If you use a RAS model and set turbulence to off, you in fact use the laminar "turbulence" model.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
July 13, 2016, 08:25 |
|
#5 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
Ok great! Could you point me in the direction to which file I should look at to see where this happens? I am using the LES smagorinsky model, so I am looking in
Code:
$WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/LES/Smagorinsky/Smagorinsky.C |
|
July 13, 2016, 08:34 |
|
#6 | |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hi
inside the correct function, you have Quote:
|
||
July 17, 2016, 16:39 |
|
#7 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
OK thanks thats what I was looking for!
|
|
Tags |
openfoam, turbulence modelling |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Which Turbulence modeling???? | Yapoo | FLUENT | 2 | October 2, 2016 03:29 |
[GAMBIT] Problem with interior faces | miro2000 | ANSYS Meshing & Geometry | 11 | August 24, 2013 15:00 |
Problems with Turbulence Modeling | ezsoal | OpenFOAM Running, Solving & CFD | 4 | November 26, 2009 16:12 |
Gerris software installation | mer | Main CFD Forum | 2 | November 12, 2005 09:50 |
turbulence modeling questions | llowen | Main CFD Forum | 3 | September 11, 1998 05:24 |