CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Divergence Problem (https://www.cfd-online.com/Forums/fluent/118355-divergence-problem.html)

pyroknife May 25, 2013 14:22

Divergence Problem
 
I am experiencing some divergence problems with my residuals using Fluent. I am using the k-omega turbulence model running under steady state conditions.
I refined my mesh as best as I can. The qualities (orthogonal qulity, aspect ratio, skewness, etc...) are around suggested values, but for some reason my residuals still diverge. I do not think this is a mesh quality problem.

Also my solution actually reaches the "residuls have converged" pop-up when i run the case, but if I turn convergence criterion off, it would converge then diverge.

I read that I could change the relaxation factors lower, but isn't that kind of cheating the system? My experience with lowering the factors is that it only "delays" the divergence, but not "eliminate" the divergence.

Any help would be greatly appreciated.


P.S I am pretty positive my setup is correct. In solution methods, I am mainly using second order solvers, except for the dissipation rate solver (using 1st order for this one).

misagh May 25, 2013 14:39

the convergence pattern must be steady.It may reach the criteria you want to ,but it shouldn't oscillate.
By the way lowering the factors is not cheating.It is factors to ease the equation solution process.And in some special cases(that actually i am not familiar with those ones) you need to increase the factors.
bests

pyroknife May 25, 2013 15:36

Quote:

Originally Posted by misagh (Post 430015)
the convergence pattern must be steady.It may reach the criteria you want to ,but it shouldn't oscillate.
By the way lowering the factors is not cheating.It is factors to ease the equation solution process.And in some special cases(that actually i am not familiar with those ones) you need to increase the factors.
bests

I have tried lowering the factors, but all it seems to do is delay the divergence, not actually eliminate it from my simulation.

Liufeng_ustb May 26, 2013 00:26

I also wonder if lowering the re-factors can help eliminate divergence...

Besides, pyroknife, I want to know whether your simulation involves gas mixture? If you do, what's your option about settong the properties of gas mixture.

Regards

pyroknife May 26, 2013 15:30

Quote:

Originally Posted by Liufeng_ustb (Post 430052)
I also wonder if lowering the re-factors can help eliminate divergence...

Besides, pyroknife, I want to know whether your simulation involves gas mixture? If you do, what's your option about settong the properties of gas mixture.

Regards

My simulation is currently involving methane (the one FLUENT has in it's material library). Does that count?
I remember using incompressible-ideal gas, polynomial, and 2 kinetic theory options.

Aeronautics El. K. May 26, 2013 17:04

k-omega turbulence model is sensitive and it depends greatly on the initial values of k and omega. If the values of these variables are not ok, the solution will most probably diverge. Try the SST k-omega.
As for the underrelaxation factors of course it's not cheating! Don't forget that turbulence model's equations are stiff and make convergence even more difficult...

EDIT
-----
The free stream values of the turbulence variables I meant to say, not the initial values of k and omega. My bad, sorry. (http://www.cfd-online.com/Wiki/SST_k-omega_model)

pyroknife May 26, 2013 18:38

Quote:

Originally Posted by Aeronautics El. K. (Post 430140)
k-omega turbulence models is sensitive and it depends greatly on the initial values of k and omega. If the initials values of these variables are wronge, the solution will most probably diverge. Try the SST k-omega.
As for the underrelaxation factors of course it's not cheating! Don't forget that turbulence model's equations are stiff and make convergence even more difficult...

Oh I see. Can you set the initial values of k and omega? If so, how?
I am currently using SST k-omega.

Liufeng_ustb May 27, 2013 00:12

Quote:

Originally Posted by pyroknife (Post 430130)
My simulation is currently involving methane (the one FLUENT has in it's material library). Does that count?
I remember using incompressible-ideal gas, polynomial, and 2 kinetic theory options.

Hi, friend.

I once experienced a divergence problem caused by the selection of the properties of mixture gas.

My mixture gas is composed of two species which are hydrogen and water vapor. Initially, I selected ideal-gas-mixing-law, then when I ran, divergence problem occured. But when I revised it using mass-averaged, this problem disapperaed.

Your simulation is a single gas species. But you can try to modify ideal gas option.

Wish you luck!

MAC88 May 27, 2013 03:01

As you are using k-omega turbulence model with under steady state conditions, it is sensitive to free stream conditions.
What time step size you are using?
Try to reduce the time step size.

Wish you best of luck!

pyroknife May 27, 2013 16:57

Quote:

Originally Posted by MAC88 (Post 430180)
As you are using k-omega turbulence model with under steady state conditions, it is sensitive to free stream conditions.
What time step size you are using?
Try to reduce the time step size.

Wish you best of luck!

I am running under steady state. Isn't time step only for unsteady?




Also, it appears that only my energy equation is experiencing divergence.

MAC88 May 28, 2013 00:09

Quote:

Originally Posted by pyroknife (Post 430360)
I am running under steady state. Isn't time step only for unsteady?




Also, it appears that only my energy equation is experiencing divergence.

I think that was my typing mistake.
You have to run your simulation in an unsteady mode.
Have you tried that?

ringtail May 28, 2013 03:31

Quote:

Originally Posted by pyroknife (Post 430009)
I am experiencing some divergence problems with my residuals using Fluent. I am using the k-omega turbulence model running under steady state conditions.
I refined my mesh as best as I can. The qualities (orthogonal qulity, aspect ratio, skewness, etc...) are around suggested values, but for some reason my residuals still diverge. I do not think this is a mesh quality problem.

Also my solution actually reaches the "residuls have converged" pop-up when i run the case, but if I turn convergence criterion off, it would converge then diverge.

I read that I could change the relaxation factors lower, but isn't that kind of cheating the system? My experience with lowering the factors is that it only "delays" the divergence, but not "eliminate" the divergence.

Any help would be greatly appreciated.


P.S I am pretty positive my setup is correct. In solution methods, I am mainly using second order solvers, except for the dissipation rate solver (using 1st order for this one).

Many factors could cause instability problems. I guess you should show the history of residual as well as Cd and so on to provide more detail information.

generally, since you use the k-omega model, so the y+ should be about 1.
And, be careful, a too fine mesh for RANS simulation may also cause divergence problems for fine mesh may capture more instable flow phenomena.

What's more, for high order discretization scheme, lower relaxation factors is necessary, especially for pressure (set to 0.1 maybe, it depends on your p-v coupling scheme). You can also enable High order Term Relaxation, and have a try, it may works.

Please correct me if I am wrong.

yasir_hayyat May 28, 2013 10:26

Hi all . I am facing same problem. I want to simulate cryogenic boiling in fluid film bearings. I am using k omega sst model , with multi-phase mixture model but some where in the iteration my solution diverges and i get floating point error. i have noted that when i use energy equation it diverges and i have noticed the residua graph of temperature shoots up and i get floating point error. Can any one guide me why this is happening and any possible approach to tackle this problem.

Regards

Yasir hayat

pyroknife May 28, 2013 12:24

Quote:

Originally Posted by MAC88 (Post 430391)
I think that was my typing mistake.
You have to run your simulation in an unsteady mode.
Have you tried that?

I have yet to try unsteady. My simulation is a steady case, however.

Quote:

Originally Posted by ringtail (Post 430412)
Many factors could cause instability problems. I guess you should show the history of residual as well as Cd and so on to provide more detail information.

generally, since you use the k-omega model, so the y+ should be about 1.
And, be careful, a too fine mesh for RANS simulation may also cause divergence problems for fine mesh may capture more instable flow phenomena.

What's more, for high order discretization scheme, lower relaxation factors is necessary, especially for pressure (set to 0.1 maybe, it depends on your p-v coupling scheme). You can also enable High order Term Relaxation, and have a try, it may works.

Please correct me if I am wrong.

Thanks. That is (too fine of a mesh) what I think may be causing the problem. I did not save the data, but if i experience the divergence again, i'll post it on here. I am basically simulating pipe flow, but a bit more complicated than the normal 1 inlet/outlet, pipe flow problem. I ran a successful simulation with .4million elements using cutcell mesh. However, when I increased the length of my pipe, I used a 1.2million cutcell mesh and for some reason this failed. FYI, the .4 million element mesh had WORSE quality than the 1.2 million one, so I don't think the divergence is caused by poor element quality.

MAC88 May 28, 2013 13:31

Quote:

Originally Posted by yasir_hayyat (Post 430536)
Hi all . I am facing same problem. I want to simulate cryogenic boiling in fluid film bearings. I am using k omega sst model , with multi-phase mixture model but some where in the iteration my solution diverges and i get floating point error. i have noted that when i use energy equation it diverges and i have noticed the residua graph of temperature shoots up and i get floating point error. Can any one guide me why this is happening and any possible approach to tackle this problem.

Regards

Yasir hayat

Reduce the under relaxation parameters.

Best of luck!!!

ringtail May 28, 2013 22:26

Hi, pyroknife
More details is needed to solve your problem.
Such as Y+ for the all computation domain, the discretization scheme, your PC setting and so on.
If it is possible, post the geometry even the case file will be greatly helpful.

Regards


All times are GMT -4. The time now is 19:23.