CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Floating Point Error (https://www.cfd-online.com/Forums/fluent/44733-floating-point-error.html)

nick May 17, 2007 10:21

Floating Point Error
 
Hi, does anyone know what could be the cause of the following error?

Floating Point Error Error: > (greater-than): invalid argument [2]: wrong type [not a number] Error Object: 1.#inf

It occurs after several iterations, only with the density based solver, which is required for the simulation I'm running.

Thanks!

Razvan May 18, 2007 02:21

Re: Floating Point Error
 
inf = infinite

This could mean that there is a variable value (for example temperature) which at the beginning of the calculus (that has been initialised very far from reality somewhere in the flow domain, for example, the flow over a bluff body, initialised using far-field conditions, resulting in high initial velocities in front and behind the body) grows exponentially (in the given example, if the initial velocity is high enough, in the first few iterations, the temp will grow rapidly due to the high compression of the gas against the bluff body's flat nose).

This is especially favorised by an aggresive solver like density-based sover, when using high CFL numbers at start. The simplest way to avoid this problem is to lower the Courant number to let's say CFL=0.5 for about 50 iterations, then increase it to CFL=1 and iterate for another 50 times, save the .dat, and if the solution is stable, double the CFL every 25 iterations or so. But do not go over CFL=20-25, that should be more than enough in most cases.

All the best, Razvan

Ralf Schmidt May 18, 2007 03:38

Re: Floating Point Error
 
hi!

look here:

http://www.cfd-online.com/Wiki/Fluen..._I_avoid_it.3F

Ralf

nick May 18, 2007 10:34

Re: Floating Point Error
 
thank you for your help!


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