|
[Sponsors] |
May 17, 2007, 10:21 |
Floating Point Error
|
#1 |
Guest
Posts: n/a
|
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! |
|
May 18, 2007, 02:21 |
Re: Floating Point Error
|
#2 |
Guest
Posts: n/a
|
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 |
|
May 18, 2007, 03:38 |
Re: Floating Point Error
|
#3 |
Guest
Posts: n/a
|
||
May 18, 2007, 10:34 |
Re: Floating Point Error
|
#4 |
Guest
Posts: n/a
|
thank you for your help!
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
c++ libraries and solver compiling | vaina74 | OpenFOAM Installation | 13 | February 3, 2012 17:43 |
Problem with UDF compiling for kTkLW model | Wantami | FLUENT | 0 | July 18, 2011 05:11 |
Accessing phi from a fvPatchField at same patch | johndeas | OpenFOAM | 1 | September 13, 2010 20:23 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |