找回密码
 注册
查看: 12549|回复: 5

紧急求助!计算时出现error:floating point exception

[复制链接]
发表于 2010-12-3 09:12:53 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
计算时出现error:floating point exception,这个是怎么回事?应该怎么解决,请高手帮忙解答一下,不胜感激!
发表于 2010-12-4 10:32:45 | 显示全部楼层

回复 1# fanfan260 的帖子

出现问题前先Google,这个是一个常见问题,网络上已有答案。
发表于 2010-12-4 10:39:32 | 显示全部楼层

回复 2# znon 的帖子

还是贴一下吧。
http://www.cfd-online.com/Wiki/Fluent_FAQ#What_does_.22floating_point_error.22_mean.3F_How_can_I_avoid_it.3F

The floating point error has been reported many times and discussed a lot. Here are some of the answers found in the Fluent Forum:
From numerical computation view point , the basic operations performed by computer are represented inside computer in what is called floating point numbers. The errors that are either because of invalid numeric computation initiated by user or limitation of machine that is used are floating point errors.
1)Invalid Operations:- Simplest example is if one uses Newton Raphson root finding method to solve f(x)=0 and for some Nth iteration if we get x = x(N) such that derivative of function f(x), f'(x(N))=0 then formula for calculating next iterate x(N+1) = x(N) - f(x(N))/f'(x(N)) requires division by f'(x(N)) which is zero. Here you get divide by zero type of floating point error.
2) Over or Underflow:- Another type is having data with either too large or too small magnitude called 'overflow' or 'underflow' respectively.Such data cannot be physically represented on computer for direct processing by arithmetic processing part of Processor.
3) Rounding off errors :- While rounding off a decimal number , some significant digits are lost which cannot be recovered . e.g. if we round off 0.1 to integer (not greater than it called 'floor' of the given no.) then it is zero. If this value if further used for computation then it may lead to several errors.
 楼主| 发表于 2010-12-21 16:08:41 | 显示全部楼层

回复 3# znon 的帖子

呵呵,谢谢啦
发表于 2013-8-27 12:05:48 | 显示全部楼层
遇到同样问题
发表于 2013-8-27 12:41:34 | 显示全部楼层

回复 5# fight3 的帖子

浮点溢出很正常,有时候是计算过程中某个值发散,有时候是调用数据造成的。一般可以通过修改网格,修改UDF等方法修正。但是没有唯一答案。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表