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

Initializing turbulence flow with '0' k and epsilon

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By simrego

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2018, 02:52
Default Initializing turbulence flow with '0' k and epsilon
  #1
New Member
 
Srikar Reddy Palla
Join Date: May 2018
Posts: 19
Rep Power: 7
SRKR is on a distinguished road
Hello all, I am simulating a flow process in which bubble is initially at rest at bottom of a liquid container. As the bubble raises up turbulence will be produced something called 'Bubble induced turbulence' but initially since everything is in static condition turbulence will be '0'. So, in order to account for turbulence as bubble moves i am using 'Standard k-epsilon' turbulence model. But, the problem is I am unable to initiate the simulation with initial values of both 'k' and 'epsilon' as '0', solver is terminating in between calculation of 1st time step. Can some one please help me, How to initialize the simulation with '0' turbulence.
Thank you in advance.
SRKR is offline   Reply With Quote

Old   July 17, 2018, 03:30
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
They cannot be zero. If they are zero, you will try to divide with zero, and the solver blows up.
set to a really small value for example 1e-10 or less.
SRKR likes this.
simrego is offline   Reply With Quote

Old   July 17, 2018, 04:28
Default
  #3
New Member
 
Srikar Reddy Palla
Join Date: May 2018
Posts: 19
Rep Power: 7
SRKR is on a distinguished road
Quote:
Originally Posted by simrego View Post
They cannot be zero. If they are zero, you will try to divide with zero, and the solver blows up.
set to a really small value for example 1e-10 or less.
Ya, you are correct. Got it. Thank you
SRKR is offline   Reply With Quote

Old   July 20, 2018, 02:39
Default
  #4
New Member
 
Srikar Reddy Palla
Join Date: May 2018
Posts: 19
Rep Power: 7
SRKR is on a distinguished road
Quote:
Originally Posted by simrego View Post
They cannot be zero. If they are zero, you will try to divide with zero, and the solver blows up.
set to a really small value for example 1e-10 or less.
Hello Simrego, as discussed previously to give values of k and epsilon to a v.small value, I have been trying to do that but, with such low values I am getting error as "Floating point exception (core dumped)". Can you please explain about that and how to fix it.
Thank you.
SRKR is offline   Reply With Quote

Old   July 20, 2018, 03:24
Default
  #5
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


There can be a lot of reason for that. Mesh? Maybe your initial or boundary conditions are not correct physically, etc..
Post the end of your log where you got the error and maybe someone can help you, but this is much less information than needed.
simrego is offline   Reply With Quote

Old   July 20, 2018, 11:21
Default
  #6
New Member
 
Srikar Reddy Palla
Join Date: May 2018
Posts: 19
Rep Power: 7
SRKR is on a distinguished road
Quote:
Originally Posted by simrego View Post
Hi!


There can be a lot of reason for that. Mesh? Maybe your initial or boundary conditions are not correct physically, etc..
Post the end of your log where you got the error and maybe someone can help you, but this is much less information than needed.

That's the image and I got this error only when I have very low 'k' and 'epsilon' values like '0.001'. So, I am thinking it's because of floating point limit. Is that the reason if so, how to set it.
Thank you.
https://drive.google.com/file/d/1_mB...ew?usp=sharing

Last edited by SRKR; July 20, 2018 at 13:12.
SRKR is offline   Reply With Quote

Old   July 20, 2018, 13:04
Default
  #7
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Post the image as an attachment or just copy-paste the text. We can't read this small image.
simrego is offline   Reply With Quote

Old   July 20, 2018, 13:42
Default
  #8
New Member
 
Srikar Reddy Palla
Join Date: May 2018
Posts: 19
Rep Power: 7
SRKR is on a distinguished road
Quote:
Originally Posted by simrego View Post
Post the image as an attachment or just copy-paste the text. We can't read this small image.
https://drive.google.com/file/d/1_mB...ew?usp=sharing
I think.. this image will be clear for you...
SRKR is offline   Reply With Quote

Old   July 20, 2018, 14:07
Default
  #9
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Sorry! Didn't saw the link.
Yea, it is comes from the kepsilon::correct() function where maybe you try to divide with zero.
How much iteration can you do before crash?
I'm not an expert in it but if you sure your boundary and initial conditions are fine you could try to tune your fvSolution a bit or try with first order schemes.
Maybe some expert read this post and can help you, because at this point all i can is give you hints but no correct answer.
simrego is offline   Reply With Quote

Old   July 20, 2018, 14:11
Default
  #10
New Member
 
Srikar Reddy Palla
Join Date: May 2018
Posts: 19
Rep Power: 7
SRKR is on a distinguished road
Quote:
Originally Posted by simrego View Post
Sorry! Didn't saw the link.
Yea, it is comes from the kepsilon::correct() function where maybe you try to divide with zero.
How much iteration can you do before crash?
I'm not an expert in it but if you sure your boundary and initial conditions are fine you could try to tune your fvSolution a bit or try with first order schemes.
Maybe some expert read this post and can help you, because at this point all i can is give you hints but no correct answer.
Yeah, thank you so much for responding. I got the error in the first time step itself. Hope someone can help me with this.
SRKR is offline   Reply With Quote

Old   July 21, 2018, 20:38
Default
  #11
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 11
pete20r2 is on a distinguished road
Can you post the case files? I'll give it a go if you want
pete20r2 is offline   Reply With Quote

Old   July 22, 2018, 14:57
Default
  #12
New Member
 
Srikar Reddy Palla
Join Date: May 2018
Posts: 19
Rep Power: 7
SRKR is on a distinguished road
Quote:
Originally Posted by pete20r2 View Post
Can you post the case files? I'll give it a go if you want
https://drive.google.com/file/d/1Xgy...ew?usp=sharing
That's one of the sample case file zipped, with similar conditions. If you like to try you can try with that and please inform me back if you find anything useful.
Thank you.
SRKR is offline   Reply With Quote

Old   July 23, 2018, 21:39
Default
  #13
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 11
pete20r2 is on a distinguished road
Quote:
Originally Posted by SRKR View Post
https://drive.google.com/file/d/1Xgy...ew?usp=sharing
That's one of the sample case file zipped, with similar conditions. If you like to try you can try with that and please inform me back if you find anything useful.
Thank you.
Hi,
I got it running, link is at the bottom of the post.
I changed a few things:
k IV reduced to 1e-10
epsilon IV reduced to 1e-10
p_rgh wall changed to zeroGradient (not sure if this is better, it's what I'm used to)
Initial deltaT lowered to 0.0001 (I think this was the big one)
maxCo and maxAlphaCo increased to 0.5 (for speed)

increased the tolerance and relTol on most of the solvers to 1e-6 and 1e-3 respectively. (for speed) (you can lower these to your own spec again)

I've left some extra files in there:
U.ogv: U field up to 1 second (I only have an i5 760)
splitRun: might need to make this script executable once you extract, run
Code:
decomposePar
./splitRun
then in a new terminal you can show residuals
DecomposeParDict is in system, you can read about it if you've never used it.
Use reconstructPar after the run to put all the results back together.
residuals: run
Code:
gnuplot residuals
to monitor the residuals

Trial.zip converging
pete20r2 is offline   Reply With Quote

Old   August 2, 2018, 01:31
Default
  #14
New Member
 
Srikar Reddy Palla
Join Date: May 2018
Posts: 19
Rep Power: 7
SRKR is on a distinguished road
Yup, I got it... It's only with deltaT. Lowering the value of time step I got it running. But, I got another interesting but bad way i.e. with the same time step but decreasing the write interval also didn't get any error for me and whole simulation is good and result was to the expectations, ofcourse consumed huge memory.
Thank you all for responding.
SRKR 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
SimpleFoam k and epsilon bounded nedved OpenFOAM Running, Solving & CFD 16 March 4, 2017 08:30
parallel code samiam1000 SU2 3 March 25, 2013 04:55
K - epsilon VS SST turbulence model Maicol Main CFD Forum 0 November 30, 2012 16:25
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
SimpleFoam k and epsilon bounded nedved OpenFOAM Running, Solving & CFD 1 November 25, 2008 20:21


All times are GMT -4. The time now is 02:13.