# Floating Point Error

 Register Blogs Members List Search Today's Posts Mark Forums Read

 May 17, 2007, 10:21 Floating Point Error #1 nick 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 Razvan 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 Ralf Schmidt Guest   Posts: n/a hi! look here: http://www.cfd-online.com/Wiki/Fluen..._I_avoid_it.3F Ralf

 May 18, 2007, 10:34 Re: Floating Point Error #4 nick Guest   Posts: n/a thank you for your help!

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post vaina74 OpenFOAM Installation 13 February 3, 2012 18:43 Wantami FLUENT 0 July 18, 2011 05:11 johndeas OpenFOAM 1 September 13, 2010 20:23 gschaider OpenFOAM Installation 120 December 2, 2009 11:23 ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50

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