|
[Sponsors] |
Reasonable Time Step for Turbulent Flow Simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 6, 2012, 08:29 |
Reasonable Time Step for Turbulent Flow Simulation
|
#1 |
Member
|
Dear Foamers
Hi What time step should we use for simulation of highly turbulent flows? I Tried a lot of ways to prevent blowing out the simulation but I didn't succeed. I'm not sure about the time step. I tried 1e-5, 1e-6 or 1e-7 sec as time step but they didn't help. What shoud I do now? Could you please help me thanks in advance |
|
March 6, 2012, 08:44 |
|
#2 |
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
First of all, you should give a brief description of the problem you want to solve.
Secondly, it would be nice for you to tell us what solver and what turbulence model you use. Generally, an option to avoid a simulation blowup is to initialise a "start" turbulence field of e.g. k and epsilon with setFields... Thirdly, you should give us a look into your fvSchemes/fvSolution as well as the boundary conditions files. There might be several reasons for a simulation blow up. So, in order to be of any help - I guess I can speak for others that might help as well - you should give us more information... By the way, your grid does not look too bad. |
|
March 6, 2012, 08:53 |
|
#3 |
Member
|
Thanks for your reply dear friend!
I'm simulating a free surface flow in the structure as seen in the first post. The flow passes the pipe it impacts on the front wall. I use Interfoam as solver and kepsilon for turbulence model. I attached the needed files. I checked my mesh and that was ok. I spent several monthes but I couldn't have a 3D complete simulation without blowing out! |
|
March 6, 2012, 09:25 |
|
#4 |
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
I would rather use realizableKE over the stand kEpsilon model.
By the way, why do you use CrankNicholson as the ddtScheme? I always used Euler when I used interFoam... The reference pressure you "try" to assign inside your fvSolution is only taken into account if you do not assign a value inside your p_rgh file... Since you assigned totalPressure at the outlet it will not be taken into account... Inside totalPressure, use p0 uniform 1e05 instead of uniform 0... The other fvSchemes/fvSolution entries look okay... You have to be aware that the PIMPLE algorithm is only used if you set nOuterCorrectors to a value higher than 1... Since you do not have that entry, PISO will be used. Under-relaxation therefore does not take place... I always rather use PISO by the way.. Maybe some of this information might help you. Of course, having the whole case would be nice as well... What error message do you get when your simulation crashes? Do you see any higher gradients or disturbances when you Post-Process your case? |
|
March 6, 2012, 10:03 |
|
#5 |
Member
|
Dear Rob
I implemented the changes you said. I will inform you from the results. But for your questions: When it crashes the following error comes: PHP Code:
And I also didn't see any disturbances. Could you please give me your email to send you the constant file in order to check it. Best Regard |
|
March 6, 2012, 10:07 |
|
#6 |
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
I sent you a private message with my e-mail address.
Although you already uploaded your 0 and system directories, it would be nice if you could sent your whole case folder, so I just have to unpack and run it... |
|
March 6, 2012, 10:14 |
|
#7 |
Member
|
Dear Rob
I sent the complete files into your email. By the way after implementing the changes it didn't worked I'm waiting for your reply Rob! Kind Regard |
|
March 6, 2012, 12:08 |
|
#8 |
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
I simulated your case until a time of 1 second.
But I only wrote out results every 0.5 seconds. The main thing that probably crashed your simulation (although I never had a stability problem with your case) was a wrong calculation and initialisation of k and epsilon... The formulaes and initialisation I used can be found in the k and epsilon files (along with some short notes)... I will send you the case in a second (I will leave out the log file because it is too big)... You can then just decompose the case and resume it until your prescribed time of 6 seconds. I therefore changed some of your controlDict entries as well... By the way, I rather used fvSchemes and fvSolution files of myself but the case should work appropriate with your entries as well... Keep me up-to-date on your progress. Best, Rob |
|
March 7, 2012, 03:08 |
Thanks Rob for Your help
|
#9 |
Member
|
Dear Robert
I don't know how to appreciate you.You really helped me improve immediately and leave confusing mood of the last several months. I could run another case by your help without any problem. Now my duty is to understand what changes you implemented and why, so that I will be able to solve my future problem. I have a question about epsilon. I calculated epsilon by the formula. it became 0.15 while you wrote 0.3. Did you increase 0.15 to 0.3 or not? ( I took L=0.2; k=0.0547 ) Why is epsilon is so sensitive? I'll inform you from all my progresses in the simulation process. Best Wishes |
|
March 7, 2012, 05:03 |
|
#10 | ||
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
Quote:
Quote:
I cannot really tell you why epsilon is so sensitive. I will leave that question out for people who have more experience and theoretical foundation than me. But I can tell you that turbulence modeling always is the main problem in my cases. So setting up these parameters for the boundary conditions is of utmost importance. Your set up of k might have been a bigger problem than epsilon... I assumed medium intensity with a value of 5% for the calculation of k and then just took your velocity of air and water for the calculation of both values... Since air is the main fluid inside your domain at the beginning I initialised k with the air value... To stabilise the simulation I rather took the epsilon value of water over the value of air... I hope this helps. Best, Rob |
|||
March 7, 2012, 12:34 |
|
#11 |
Member
|
Dear Robert
I got why you chose those values. I have a question about total pressure for outlet. I remembered you told me to set 1e5 for p0. But You didn't do that in your simulation. Could you please tell me about it and its effect on the simulation. Best Regard |
|
March 8, 2012, 06:22 |
|
#12 |
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
Well, someone correct me if I might be wrong...
By p0 you actually set a reference pressure and the totalPressure will be calculated in accordance with it... I guess I simply forgot to assign 1e05 when I did your simulation, I am sorry. I do not know what effect it might have, you should check it |
|
March 8, 2012, 08:56 |
Results
|
#13 |
Member
|
Thanks Rob,
I will do it and inform you from the results. Thanks to god, I didn't have any simulation abrupt. But In the result I think the outlet acts like wall that is the flow in the outlet is inward. the following pictures shows this event. What's your opinion? What should I do? |
|
March 8, 2012, 09:26 |
|
#14 |
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
Well, your results look weird.
What parameters did you change from the adjustments I sent you via e-mail? |
|
March 8, 2012, 09:56 |
|
#15 |
Member
|
I've just changed k, epsilon and velocity or the inflow height. If you see the simulated model by yourself you can see the inward flow at the outlet. (turning glyph on at 1 sec in Interfoam_mohammad file)
I think its problem lies on the boundary condition for the outlet. Whats your opinion? |
|
March 9, 2012, 02:24 |
Strange Results
|
#16 |
Member
|
I've changed some boundary conditions related to outlet and the following results were obtained. At the initail times the flow is inward in the outlet and over time it became outward. I don't know whether I can trust on the results? I attached the 0 file and two pics from 3.5 and 6.5 seconds of simulation.
|
|
March 9, 2012, 04:54 |
|
#17 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Additional suggestion: in multiphase calculations use hexhedral cells. They save you a whole lot of pain (and grid points) :-)
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
March 9, 2012, 05:11 |
|
#18 |
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
Well, the BC "buoyantPressure" "value uniform 0" is not the right choice for inlets... So I would rather stick to zeroGradient...
You got to have a look if more flows in than out at the outlet patch. Do you have some experimental data with which you could validate your case? What results are you expecting? I might look into your case once again but today I am not at work. So you have to be patient |
|
April 18, 2012, 08:31 |
Problem Solved
|
#19 |
Member
|
Dear Rob and Alberto
Hi I finally simulated my case without any problem. I just defined a section on outlet with atmosphere boundary condition( like dam break example in tut.) Here I wan to give you special thanks for your help. By the way I have a simple question about free surface. Which value of alpha1 should we choose for free surface?( in paraview it's 0.5 for default) |
|
April 18, 2012, 08:41 |
|
#20 |
Member
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 15 |
You're welcome.
It's good to know that you finally got the results you were looking for. The value of 0.5 sounds good to me. Did you make any more modifications besides the options/case I sent you? Would be nice to know. |
|
Tags |
blow out, interfoam, turbulent flows |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Full pipe 3D using icoFoam | cyberbrain | OpenFOAM | 4 | March 16, 2011 10:20 |
directMapped problem | panda60 | OpenFOAM Bugs | 4 | July 8, 2010 11:23 |
Time step in transient simulation | shib | FLUENT | 0 | June 17, 2010 14:07 |
Is there a way to write the time step size, time a | may | FLUENT | 6 | November 22, 2009 12:52 |
Long time CHT transient simulation time step.... | JP | CFX | 0 | May 9, 2008 04:36 |