fluent计算错误分析

合集下载

Fluent错误总结

Fluent错误总结

5 多个进程运行时 license 出错 Warning: License server connection lost. Error: Connection to the license server has been lost. FLUENT will not continue until the license connection is restored. Error Object: #f #f Warning: An error or interrupt occurred while reading the journal file. Some commands may not have been completed.
Hale Waihona Puke 2 Gambit 内存不足问题 This Gambit is a 32 bit version which means that there is maximum of 4294967295 bytes of address space. You are now at that limit. Please either use a 64 bit version of Gambit or split your model to require less memory. Now that you are at the limit, Gambit will be stopping execution. If you are willing to take the risk of continuing in this situation, then change the default GLOBAL.GENERAL.OUT_OF_MEMORY_SERVERITY to 0.

Fluent错误提示及解决方法

Fluent错误提示及解决方法

1.1Error: Floating point error: invalid number原因: 数据矩阵求解过程中出现的问题。

方法:1、检查网格质量。

2、检查边界条件和初始条件。

43、对问题进行深入分析,对比模拟情况与真实情况之间的差距。

License for fluent expires 1-jan-0Error: sopenoutputfile: unable to open file for outputError Object: "c:\temp\kill-fluent696"原因: license 过期方法: 更新license。

absoulte pressure limitted to 5.000e+06 in 541 cells on zone 2temper limiteed to 5.000e+03 in 1008 cells on zone 2divergence detected temporarily reduceing courant number to 0.05 ang try again time step reduced in 57 cellerror (large-than)invalid arguement{2}wrong type [not a number]error object: 1#inf' ]# `0 M9 i: G原因及方法:1. 超出受限的警告一般来说湍流粘性比比较多,这个尚不知道很好的解决办法2. 其他的变量受限,注意检查模型有没有错误,这个主要是力学模型要准确,受限制后解出来的解可能不是真实解,而大部分都是出现溢出错误,无法继续求解。

2. 解决方法是把courant number调小一点,把松弛因子调小一点Error: FLUENT received a fatal signal (SEGMENTATION VIOLATION)Error Object: ()原因: 非法关闭图片显示窗口导致的,出此错误后,再无法显示图片方法: 重新启动就可以了(成功)Error: WARNING: Invalid axisymmetric grid: 71 nodes lie below the x-axis发生时机:将网格导入fluent后,检查网格时出现原因: 是对称轴和x轴没有完全重合,中间有较小的偏差的缘故方法: 先确定关键点,再连线,最后成面,然后划分网格。

fluent 计算错误汇总

fluent 计算错误汇总

Fluent 计算错误汇总1..fluent不能显示图像在运行fluent时,导入case后,检查完grid,在显示grid时,总是出现这样的错误Error message from graphics function Update_Display:Unable to Set OpenGL Rendering ContextError: FLUENT received a fatal signal (SEGMENTATION VIOLATION).Error Object: ()解决办法:右键单击快捷方式,把目标由x:fluent.incntbinntx86fluent.exe改成:x:fluent.incntbinntx86fluent.exe 2d -driver msw如果还有三维的,可以再建立一个快捷方式改成:x:fluent.incntbinntx86fluent.exe 3d -driver msw这就可以直接调用了。

如果不是以上原因引起的话,也有可能是和别的软件冲突,如MATLAB等,这也会使fluent无法显示图像。

Q1:GAMBIT安装后无法运行,出错信息是“unable find Exceed X Server”A. GAMBIT需要装EXCEED才能用。

gambit的运行:先运行命令提示符,输入gambit,回车fluent的运行:直接在开始-程序-Fluent Inc里面Q2:Fluent安装后无法运行,出错信息是“unable find/open license.dat" A. FLUENT和GAMBIT需要把相应license.dat文件拷贝到FLUENT.INC/license目录下Q3:出错信息:运行gambit时提示找不到gambit文件?A. FLUENT和GAMBIT推荐使用默认安装设置,安装完GAMBIT请设置环境变量,设置办法“开始-程序-FLUENT INC-Set Environment"另外设置完环境变量需要重启一下,否则仍会提示找不到环境变量。

fluent计算错误汇总(fluent计算错误汇总)

fluent计算错误汇总(fluent计算错误汇总)

fluent 计算错误汇总(fluent 计算错误汇总)Fluent calculation error summary1..Fluent cannot display imagesWhen you run fluent, you check grid after importing case, and this error always occurs when you display gridError, message, from, graphics, function, Update_Display:Unable, to, Set, OpenGL, Rendering, ContextError:, FLUENT, received, a, fatal, signal (SEGMENTATION, VIOLATION)Error, Object: ()Terms of settlement:Right click the shortcut, and put the target byx:fluent.incntbinntx86fluent.exeChange to: x:fluent.incntbinntx86fluent.exe, 2D, -driver, MSWIf there is a three-dimensional, you can build a shortcut to change:X:fluent.incntbinntx86fluent.exe 3D -driver MSWThis can be called directly. If not for the above reasons, it may also conflict with other software, such as MATLAB, whichwill make fluent unable to display images.Q1:GAMBIT cannot run after installation. The error message is "unable find Exceed X Server""A. GAMBIT needs to be loaded with EXCEED.Gambit run: first run the command prompt, enter gambit, enterFluent: run directly in the beginning - Fluent Inc programQ2:Fluent cannot run after installation. Error message is "unable find/open license.dat""A., FLUENT, and GAMBIT need to copy the corresponding license.dat files to the FLUENT.INC/license directoryQ3: error message: when running gambit, the prompt could not find the gambit fileThe default setup settings are recommended for A., FLUENT, and GAMBIT,After you have finished installing GAMBIT, set the environment variable,Set the way "- INC-Set Environment FLUENT program start"In addition, setting up the environment variable needs to be restarted, otherwise you will still be prompted for an environment variable.What does Q4: need to pay attention to when using Fluent and Gambit?A. installed FLUENT and GAMBIT, it is best to set the user default pathRecommend setting methods to build a directory in a non system partition, such as d:\usersA) Win2K users in the control panel - users and passwords - Advanced - advanced, using the fluent user's configuration fileModify the local path to d:\users, restart the user, run the command prompt, and check whether the user path is modifiedB) XP user, send the command prompt to the desktop shortcut, and right-click the command promptIn the shortcut start position, add D:\users and reset the checkQ5:Gambit operation failed. Error message "IDENTIFIER" "default_ Server""The default file for A. gambit has been opened. To the user's default directory, delete files such as default_id.*Q6:Gambit running failed, Gambit running interface flash, no error information,Only the exceed is started and a directory of gambit.xxxx israndomly generated in the directory where gambit is locatedA. because of the error of the gambit program, there are two directories in the fluent folder with gambit,What you need to do correctly is the gambit.exe in fluent inc/ntbin/ntx86,Instead of the gambit.exe under the gambit folderQ7: installed FLUENT6.1, this problem occurs at runtime: Error:, sopenoutputfile:, unable, to, open, file, for, output Error Object: "c:\temp\kill-fluent1684""A. to build a temp directory in C, two errors can be resolved. What about iterative divergence in Q8:Fluent computation?A. FLUENT the number of iterative calculation start Courant is best to use a smaller, otherwise easily lead to iterative divergence.To modify Slovecontrolssolution, modify Courant NumberThe default value is 1, beginning with less experience, such as 0.01, and then gradually increasing,Experienced colleagues decide for themselvesOr, FLUENT modify the limit of the iterative value, SlovecontrolsLimitsDecide on what you calculateQ9:fortran program reported wrong stack overflow how to do?The general FORTRAN compiler defaults to "allocatable array" placed in the heap, and "automatic array" placed on the stack.The default setting for the stack is generally 1048576.Array out of bounds, prompt stack overflow in Visual Fortran. Compiler under UNIX platform such as F77It's usually core dump.Now change the default settings of the stack.In VF, you can run link or editbin commands in command line mode.Question 1:Gambit why can't it be started?There may be 3 reasons1.exceed problem. Running Gambit appears Using X_DEVICE.... Exceed installation is no problem, if not, please re install exceed, install the exceed best custom installation, select only Xserver, and nothing else, so the best;2.License problem. Into the command line, set up theenvironment variables, run Gambit, if you display License Error, that is the License problem, and re Copy License file to the license directory under the installation directory;3..Lok file problem. The establishment of Defaul.dbs default Gambit starts, if there are default.lok files, the gambit cannot start, delete the file, the.Lok file is locked in this project, please see the detailed description of the Gambit help;4. is also a License problem, but even if the copy License file is not resolved again, you can then try to modify the system time.Question 2: how to improve convergence?1. ensure that the mesh is fine enough2., maybe your boundary conditions are too bad, you can try to change the boundary conditions to be more conventional. After calculating the convergence, gradually increase the value of the boundary variables until you meet the requirements3. adjust the relaxation factor appropriately and choose the solution that best fits the model you are usingQuestion 3:Fluent how is the pressure in the pressure inlet and the pressure outlet boundary set?First of all, we should make clear the two concepts:Total pressure = static pressure + dynamic pressure (for incompressible flow)Absolute pressure gauge (gauge = pressure) + reference pressure (operating pressure)Set the pressure boundary in Fluent is the gauge set in pressure-inlet is the total pressure; pressure-outlet set is static (Note: This contains not head pressure Hydrostatic Head).Question 4: what is static pressure, total pressure and dynamic pressure?Hydrostatic pressure, dynamic pressure, and total pressure are the concepts of fluid mechanics (total pressure, strictly speaking aerodynamics).1. hydrostatic pressure is the pressure at which the fluid moves at the same speed. The pressure measured by the pressure is due to the motion of molecules.The 2. dynamic pressure equals the 0.5* density * (velocity * velocity), a definition given in terms of energy.3. total pressure is actually a balance of energy. It is a function of static pressure and Maher number. It is the pressure measured by a manometer in the fluid at rest.4. a reference pressure (operating, pressure) is also present in the fluentThis is because, the pressure term in the NS equation is a derivative form, so when solving the pressure, must be given a reference value can be determined, such as solving afirst-order differential equation, dy/dx=1, for y = x + constant. Only given that constant can the condition of definite solution be formed. The operation pressure in fluent is equivalent to that constant, so theoryHi, Chang Gu Qiao Shi Jia Gu Guowei, Yun Cha Hong of kappa.Fluent is to solve the pressure gauge,Plus, this reference pressure is absolute pressure.Question 5: post-processing shows why always flashing, abnormal?Post processing display problems are generally a video card problem:1. video cards are too old;2. drive is wrong, not installed DirectX and OpenGL and a series of engines;3. video card drivers may be damaged by virusesQuestion 6: how should the viscosity of the mixture be calculated?The volume fraction of I component gas in a mixed gas, the molecular weight * I component, gas dynamic viscosity of * I component / sigma (volume fraction of gas I component gas, molecular weight of * I component)Question 7: what is the PDF model?The PDF model does not solve the transport equation of a single component, and solves the transport equation of the mixed component distribution. The concentration of each component is obtained by mixing the components. The PDF model is particularly suitable for the simulation of turbulent diffusion flames and similar reaction processes. In the model, the probability density function PDF (probability, density) is usedFunction) to consider turbulence effects. The model does not require the user to explicitly define the reaction mechanism, but is handled by the flame surface method (i.e., the mixed burning model) or the chemical equilibrium calculation, and thus has more advantages over the finite rate model.Question 8:SCCM what is the unit?Vacuum unit conversions, flow rates and leakage rates: 1 Pa = L/s = 59.2 SCCMQuestion 9:Schmidt, what is Number?The relation between momentum and mass transport: the ratio of viscosity to diffusivityQuestion 10:Prandtl, what is Number?The ratio of kinematic viscosity to thermal diffusivity indicates the degree of difficulty in the transport of momentum and heatQuestion 11:Lewis, what is Number?Is the ratio between the thermal diffusivity and the diffusion coefficientQuestion 12: how do I import fluent mesh files into CFX?First import the gambit mesh to the icem-cfd, and then the cfx. Icem-cfd has the import mesh function and interfaces with the fluentWhat about the conflict between 13:Fluent and MATLAB?In the control panel - >> management service will matlab server offQuestion 14:Fluent software expired how to do?In all directories, find out if there is a file that is newer than the current system time. When you find it, change the file time back. Fluent looks for the latest time in all the files in the computer. If this time is new to the system time, the fluent thinks that the system time has been modified, and it is useless to change the system time.Problem 15:Phoenics installation FAQ1. "Tcl error" - not loaded with active.exe (I have no idea in the PHOENICS installer);2. "visual, FORTRAN, run-time, error" - no FORTRAN installed;3. "code expired" - the system time has not changed correctly.Question 16:Fluent common answer 1Q: in fluent, opening display in grid can only pop up a whitish screen and die. Fluent display:Error:, Floating, point, error:, divide, by, zeroError, Object: ()Error:, FLUENT, received, a, fatal, signal (SEGMENTATION, VIOLATION)Error, Object: ()A:1. may be that the graph has not been shown yet, you suddenly turn it off and later show that this is the case. You are advised to save case and date, exit fluent, read again case and date, you can display normally;2. graphics card for OpenGL support is not good, update video card driverQuestion 17:Fluent common answer 2Q: after startup, display as follows:Error:, sopenoutputfile:, unable, to, open, file, for, output Error Object: "c:\temp\kill-fluent692""A: crack is not clean, does not affect the useQuestion 18:Fluent common answer 3Q: when the grid imports fluent: Building...: grid,domain: error: null pointera: 计算域指针无效, 一般需要重新生成网格.问题19: fluent常见报错解答4q: 运行时出现如下信息:error:fluent received fatal signal (access _ violation)1. note exact events leading to an error.2. save the case / data under the new name.3. exit program and reboot to continue.4. report an error to your distributor.error object: (a)a: 只要是严重的错误和发散, fluent都显示这个, 这些信息说明不了任何问题.模型要做一定的调整.问题20: fluent常见报错解答5q: 出现如下信息fluent 6.1.22: welcome to2003: copyright fluent inc.: all rights reserveddump: cannot open file "fl _ s117.dmp".dump: error: unable to open file: (a)encountered: error in critical code section: hit return to exit.a: 这可能是整理注册表或清理垃圾文件时把一些fluent要用到的文件清除了.直接重新覆盖安装即可恢复.问题21: fluent常见报错解答6q: 计算完display时出现如下信息error message: the text from graphics function compute _ _ extent:the device for '/ driver / opengl / win + w0 / inner / scale' doesn't seem to be alive: an error message from _ camera _ graphics function set by _ volume:: xmin equal to or greater than xmax ata: 删掉显卡重装驱动, 并检察directx等是否安装问题22: fluent常见报错解答7q: 迭代计算中窗口显示:turbulent viscosity limited to viscosity ratio of...a: 这是提示你turbulent viscosity ratio 已超过给定上限, 你可以在solve - controls - limits的选项中加大max turbulent viscosity ratio值, 可以加大2个数量级.问题23: fluent常见报错解答8q: 运行fluent出现如下信息the system clock has been set backfeature: fluentlicense path: c: a fluent.inc license.dat a license...88309 flexlm error: -for further information, refer to the user manual flexlm himself,available at "".a: license过期, 把系统时间一点点往后调就ok问题24: fluent常见报错解答9q: 在linux es3下安装了fluent6.1.22, 启动后出现一下提示copyright 2003 fluent inc.: all rights reserved: loading "/ app / fluent / fluent.inc / fluent6.1.22 / lib / flprim.dmp.117-32": done.script file: ding ding fluent3267 in / root /a: 正常, 其中 "ding script file in / root / ding fluent3267" 是fluent产生的临时文件, 用来杀死fluent及其相关进程, 免得死进程时无法kill.只要fluent是正常退出, 则自动删除.Question 25: maximum memory cannot be opened when using VC and VF programming more than 256MB, or there may be a warning, only some version of the compiler warning, can still connect running, but how to solve some version of the compiler is not?Project->setting->Link->OutputWill stack allocations under Reserve and commit?Change to the maximum number of memory you wantNote: it is counted in bytes, so if you want to open 500MBYou need to write in 524288000 (500*1024*1024)Problem 26: the gambit was installed, but the runtime said it lacked base80.dllYou ran the wrong Gambit.exe.Open the directory fluent.inc/ntbin/ntx86, and run the gambit insideQuestion 27: what are the authoritative periodicals on CFD in the world?Journal of fluid mechanicsAIAA (American Aeronautics and Space Administration)Question 28: what is "convection" and "diffusion"?A drop of ink is placed in a sink. If the water is still, the range of colors expands evenly around, and this is diffusion. Diffusion is caused by molecular motion.If water flows, it extends not only the color range but also the distance to the downstream, which is convection. Convection is a fluid mass movement caused by uneven distribution of flow field.Convection has strong directionality compared with diffusion.Problem 29:Gambit common error 1Q: after installation, run the gambit.exe display: WARNING<17>-H:\hb\fluent\gambit\ntbin\ntx86\GambIT.1264 at 480, in @<#>July21: 2003, 16:11:54, FDIWHAT, sysfile.c:FILE, EXISTS: Warning:locale, not, supported, by, Xlib, locale, set, to, C: Using, X_DEVICE_DRIVER, with, standard, visual.A: This is normal. Do not close the window using GambitQuestion 30: what is PIV?Particle image velocimetryProblem 31:Fluent how to set a barrier with zero thicknessFor 3D, draw a face, spilt body, in the connected manner;For 2D, draw a line, the spilt surface, in the connected mannerQuestion 32: what is Favre-averaged, N-S, equations?The mean equation (rather than the ordinary time average) obtained by the Faver mean, which is generally referred to as turbulence, is mentioned in the book.Question 33:uniform, what is grid?Uniform meshQuestion 34: what is the difference between a conservative equation and a nonconservative equation?Conservative and nonconservative equations are also called conservative and non conservative equations. The difference between them is reflected in the convection term of theequation.For the conservation equation, the convection term is expressed as div (U in diameter)Among them, U is the velocity vector, and the phi is the universal variable. In the momentum equation, it is u, V, wFor the non conservation equation, the convection term is not used in divergence form, written for P Udiv.This can be derived by continuous equations.If for infinitesimal bodies, these two are equivalent. But the units we actually compute are of finite size, so the two forms have different characteristics. Prominent in the calculation of shock waves. It is impossible to calculate the position of the shock wave and the oscillation of the solution by using the non conservative equation.In general, we recommend the use of conservation type control equations. Because he's always conservative for any size computing unit.How is the dimensionless data in question 35:Tecplot?Dataalter write a formula canQuestion 36: how do I import pre files into gambit?In pre, save the file in.Stp format and import GambitWhat is the difference between the entity and the virtual body in question 37:gambit?The entities and virtual entities of the gambit do not have any effect on the results when they are generated and calculated, and the main differences between the entity and the virtual body are the following:1. Entities can perform Boolean operations, but virtual bodies cannot, although Boolean operations cannot be performed, but virtual bodies have functions such as merge, split, and so on.2, entity computing is available in many CAD software, but virtual body is one of the major features of gambit. After the virtual body, the flexibility of gambit modeling and grid generation has been increased a lot.3. In the process of mesh generation, if there are several relatively flat surfaces, they can be synthesized by merge one, so, when the grid can save steps, for a relatively large surface curvature, may generate mesh quality is not good, then you can take the way to divide it with split in order to improve the quality of the grid into several small。

Fluent计算中Floatingpointerror问题

Fluent计算中Floatingpointerror问题

Fluent计算中Floatingpointerror问题【专题讨论】Floating point error问题Floating point error在很多群里面已经提过很多次了并且也已经对它讨论了许多。

我在很多QQ群里面对这个问题也给出了自己解释。

【希望】大家跟帖讨论,把这个问题搞清楚。

【原理】从数值计算方面看,计算机所执行的运算在计算机内是以浮点数(floating point number)来表示的。

那些由于用户的非法数值计算或者所用计算机的限制所引起的错误称为floating point error。

1)非法运算:最简单的例子是使用Newton Raphson方法来求解f(x)=0的根时,如果执行第N次迭代时有,x=x(N),f’(x(N))=0,那么根据公式x(N+1)=x(N)-f(x(N))/ f’(x(N))进行下一次迭代时就会出现被0除的错误。

2)上溢或下溢:这种错误是数据太大或太小造成的,数据太大称为上溢,太小称为下溢。

这样的数据在计算机中不能被处理器的算术运算单元进行计算。

3)舍入错误:当对数据进行舍入时,一些重的数字会被丢失并且不可再恢复。

例如,如果对0.1进行舍入取整,得到的值为0,如果再对它又进行计算就会导致错误。

【避免方法】计算和迭代:设一个比较小的时间步长会比较好的。

或者改成小的欠松驰因子也会比较好。

经验来看,把欠松驰因子设为默认值的1/3;降低欠松驰因子或使用耦合隐式求解;改变欠松驰因子,如果是非稳态问题可能是时间步长太大;改善solver-control-limits比例或许会有帮助;你需要降低Courant数;如果仍然有错误,不选择compute from初始化求解域,然后单击init。

再选择你想从哪个面初始化并迭代,这样应该会起作用。

另外一个原因可能是courant数太大,就样就是说两次迭代之间的时间步太大并且计算结果变化也较大(残差高)。

网格问题:缩放网格时就会发生这个错误。

fluent_计算错误汇总

fluent_计算错误汇总

Fluent 计算错误汇总1.、fluent不能显示图像在运行fluent时,导入case后,检查完grid,在显示grid时,总就是出现这样得错误Error message from graphics function Update_Display:Unable to Set OpenGL Rendering ContextError: FLUENT received a fatal signal (SEGMENTATION VIOLATION)、Error Object: ()解决办法:右键单击快捷方式,把目标由x:fluent、incntbinntx86fluent、exe改成: x:fluent、incntbinntx86fluent、exe 2d -driver msw如果还有三维得,可以再建立一个快捷方式改成:x:fluent、incntbinntx86fluent、exe 3d -driver msw这就可以直接调用了。

如果不就是以上原因引起得话,也有可能就是与别得软件冲突,如MATLAB等,这也会使fluent无法显示图像。

Q1:GAMBIT安装后无法运行,出错信息就是“unable find Exceed X Server”A、 GAMBIT需要装EXCEED才能用。

gambit得运行:先运行命令提示符,输入gambit,回车fluent得运行:直接在开始-程序-Fluent Inc里面Q2:Fluent安装后无法运行,出错信息就是“unable find/open license、dat"A、 FLUENT与GAMBIT需要把相应license、dat文件拷贝到FLUENT、INC/license目录下Q3:出错信息:运行gambit时提示找不到gambit文件?A、 FLUENT与GAMBIT推荐使用默认安装设置,安装完GAMBIT请设置环境变量,设置办法“开始-程序-FLUENT INC-Set Environment"另外设置完环境变量需要重启一下,否则仍会提示找不到环境变量。

Fluent 计算中Floating point error问题

Fluent 计算中Floating point error问题

【专题讨论】Floating point error问题Floating point error在很多群里面已经提过很多次了并且也已经对它讨论了许多。

我在很多QQ群里面对这个问题也给出了自己解释。

【希望】大家跟帖讨论,把这个问题搞清楚。

【原理】从数值计算方面看,计算机所执行的运算在计算机内是以浮点数(floating point number)来表示的。

那些由于用户的非法数值计算或者所用计算机的限制所引起的错误称为floating point error。

1)非法运算:最简单的例子是使用Newton Raphson方法来求解f(x)=0的根时,如果执行第N次迭代时有,x=x(N),f’(x(N))=0,那么根据公式x(N+1)=x(N)-f(x(N))/ f’(x(N))进行下一次迭代时就会出现被0除的错误。

2)上溢或下溢:这种错误是数据太大或太小造成的,数据太大称为上溢,太小称为下溢。

这样的数据在计算机中不能被处理器的算术运算单元进行计算。

3)舍入错误:当对数据进行舍入时,一些重的数字会被丢失并且不可再恢复。

例如,如果对0.1进行舍入取整,得到的值为0,如果再对它又进行计算就会导致错误。

【避免方法】计算和迭代:设一个比较小的时间步长会比较好的。

或者改成小的欠松驰因子也会比较好。

经验来看,把欠松驰因子设为默认值的1/3;降低欠松驰因子或使用耦合隐式求解;改变欠松驰因子,如果是非稳态问题可能是时间步长太大;改善solver-control-limits比例或许会有帮助;你需要降低Courant数;如果仍然有错误,不选择compute from初始化求解域,然后单击init。

再选择你想从哪个面初始化并迭代,这样应该会起作用。

另外一个原因可能是courant数太大,就样就是说两次迭代之间的时间步太大并且计算结果变化也较大(残差高)。

网格问题:缩放网格时就会发生这个错误。

在Gambit中,所有的尺寸都是以mm 为单位,在fluent按scale按钮把它转换成m,然后迭代几百次时就会发生这种错误。

fluent计算中floatingpointerror问题

fluent计算中floatingpointerror问题

【专题讨论】Floating point error问题Floating point error在很多群里面已经提过很多次了并且也已经对它讨论了许多。

我在很多QQ群里面对这个问题也给出了自己解释。

【希望】大家跟帖讨论,把这个问题搞清楚。

【原理】从数值计算方面看,计算机所执行的运算在计算机内是以浮点数(floating point number)来表示的。

那些由于用户的非法数值计算或者所用计算机的限制所引起的错误称为floating point error。

1)非法运算:最简单的例子是使用Newton Raphson方法来求解f(x)=0的根时,如果执行第N次迭代时有,x=x(N),f’(x(N))=0,那么根据公式x(N+1)=x(N)-f(x(N))/ f’(x(N))进行下一次迭代时就会出现被0除的错误。

2)上溢或下溢:这种错误是数据太大或太小造成的,数据太大称为上溢,太小称为下溢。

这样的数据在计算机中不能被处理器的算术运算单元进行计算。

3)舍入错误:当对数据进行舍入时,一些重的数字会被丢失并且不可再恢复。

例如,如果对0.1进行舍入取整,得到的值为0,如果再对它又进行计算就会导致错误。

【避免方法】计算和迭代:设一个比较小的时间步长会比较好的。

或者改成小的欠松驰因子也会比较好。

经验来看,把欠松驰因子设为默认值的1/3;降低欠松驰因子或使用耦合隐式求解;改变欠松驰因子,如果是非稳态问题可能是时间步长太大;改善solver-control-limits比例或许会有帮助;你需要降低Courant数;如果仍然有错误,不选择compute from初始化求解域,然后单击init。

再选择你想从哪个面初始化并迭代,这样应该会起作用。

另外一个原因可能是courant数太大,就样就是说两次迭代之间的时间步太大并且计算结果变化也较大(残差高)。

网格问题:缩放网格时就会发生这个错误。

在Gambit中,所有的尺寸都是以mm 为单位,在fluent按scale按钮把它转换成m,然后迭代几百次时就会发生这种错误。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1. FlUENT1.1 求解方面1.1.1 floating point error是什么意思?怎样避免它?Floating point error已经提过很多次了并且也已经对它讨论了许多。

下面是在Fluent论坛上的一些答案:从数值计算方面看,计算机所执行的运算在计算机内是以浮点数(floating point number)来表示的。

那些由于用户的非法数值计算或者所用计算机的限制所引起的错误称为floating point error。

1)非法运算:最简单的例子是使用Newton Raphson方法来求解f(x)=0的根时,如果执行第N次迭代时有,x=x(N),f’(x(N))=0,那么根据公式x(N+1)=x(N)-f(x(N))/ f’(x(N))进行下一次迭代时就会出现被0除的错误。

2)上溢或下溢:这种错误是数据太大或太小造成的,数据太大称为上溢,太小称为下溢。

这样的数据在计算机中不能被处理器的算术运算单元进行计算。

3)舍入错误:当对数据进行舍入时,一些重的数字会被丢失并且不可再恢复。

例如,如果对0.1进行舍入取整,得到的值为0,如果再对它又进行计算就会导致错误。

避免方法计算和迭代我认为设一个比较小的时间步长会比较好的。

或者改成小的欠松驰因子也会比较好。

从我的经验来看,我把欠松驰因子设为默认值的1/3;降低欠松驰因子或使用耦合隐式求解;改变欠松驰因子,如果是非稳态问题可能是时间步长太大;改善solver-control-limits 比例或许会有帮助;你需要降低Courant数;如果仍然有错误,不选择compute from初始化求解域,然后单击init。

再选择你想从哪个面初始化并迭代,这样应该会起作用。

另外一个原因可能是courant数太大,就样就是说两次迭代之间的时间步太大并且计算结果变化也较大(残差高)。

网格问题当我开始缩放网格时就会发生这个错误。

在Gambit中,所有的尺寸都是以mm 为单位,在fluent按scale按钮把它转换成m,然后迭代几百次时就会发生这种错误。

但是当我不把网格缩放到m时,让它和在Gambit中一样,迭代就会成功;我认为你应当检查网格,你的网格数太多了,使用较少的网格问题就会解决;网格太多,计算机资源不够用,使使比较粗的网格。

边界条件在我的分析中,我设了一个wall边界条件来代迭axis边界条件,结果fluent拒绝计算并告诉我floating point error。

你的边界条件不能代表真实的物理现象;错误的边界条件定义可能会导致floating point error。

例如把内边界设成interior;一次我使用对称边界条件模拟2D区间时也遇到这种问题,我把symmetry设为axe symmetric,就发生了floating point error;检查你设的湍流参数,减小湍流强度,先进行50次迭代。

多处理器问题我近来在进行多处理器模拟时也遇到相似的问题。

问题的解决方法是在单个处理器上运行,这样就运算得很好。

错误迭代以错误的条件来初始化,在开始迭代时就会发生floating point error。

1.1.2 coupled和segregated求解有什么区别?Coupled会同时求解所有的方程(质量守恒方程、动量守恒方程和能量守恒方程)而不是单个方程求解(方程互相分离)。

当速度和压力高度耦合(高压和高速)时应该使用耦合求解,但这样会需要较长的计算时间。

在耦合求解中,能量方程中总是包含组分扩散(Species Diffusion Term)项。

当使用segregated求解时,fluent允许指定固体材料的各项异性传导性。

求解方法主要根据要求解的模型来选择。

Segregated方法是基于压力,而coupled求解是基于密度的。

这样就使得segregated求解低速流动较好而coupled求解音速/超音速问题较好。

我不推荐使用coupled求解所有低于马赫数4的流动(直到基于压力的coupled求解方法出现在下一个fluent版本中)。

我曾经用segregated方法求解直到1.5马赫的问题,并且结果很好。

但是速度越高,需要的网格就越多(因为segregated趋向于“平滑”波动),所以必须多加注意划分网格。

Coupled方法使用默认设置时往往是比较稳定的。

Segregated方法常常对容许极根很敏感。

当使用segregated方法求解时,不要提高turbulent viscosity ration limit(除非你根据过去的经验或者你的物理模型有很好的理由超过这个极限,但我从没有听说这样是比较理想的)。

不要给压力和温度极限限定的合理的范围(例如Plimits=Pstatic+/-(2*dynamic pressure))来计算适当的温度。

你要每一个可能的错误都检查到。

What does "floating point error" mean? How can I avoid it?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.SOLVER AND ITERATION -----I think if you set shorter time step, it may be good. Or changing little Under-Relaxiation-Factors, it may be good. In my experience, I set 1/3 Under-Relaxiation-Factors as default.� -----�also lower the values of under relaxation factor and use the coupled implicit solver� -----�Try to change under-relaxation factors and if it is unsteady problem maybe time step is to large.� -----�you can improve the ratio in the solve--control--limits, maybe that can help.� -----�you will need to decreasethe Courant number� -----�If you still get the error, initialize the domain with nothing to 'Compute from...' Then click 'init'. Again select the surface from which you want to compute the initial values & iterate. This should work.� -----�Another reason could be a to high courant number - that means, that the steps between two iterations are too large and the change in the results is too large as well (high residuals)�GRID PROBLEMS -----�this error comes when I start scaling grid. in gambit, all my dimension is in mm, when in fluent i convert it in meter using buttone SCALE. after it, when i iterate, about hundred iteration, this error appeared. but when i not scale my drawing to m...and let it be as in gambit..then the iteration is success. -----�hi I think you should check your mesh grid mesh is very high. your problem solve by selection a low mesh.� -----�Your mesh is so heavy that your computers resources are not enough. try to use coarser mesh.�BOUNDARY CONDITIONS -----�In my case I had set a wall boundary condition instead of an axis boundary condition and then FLuent refuses to calculate telling me 'floating point error'.� -----�Your Boudary Conditions do not represent real physis.�-----�wrong boundary condition definition might cause the floating point error. For example setting an internal boundary as interior�-----�Once I had the problem, simulating a 2D chamber with a symmetry BC. I set the symmetry somewhere as �axe symmetric� and the floating point error occur� -----�check the turbulence parameter you set. reduce the turbulence intensity to less that one for first, say 50 iterations.MULTI PROCESSOR ISSUES -----"I've had similar problems recently with floating point errors on a multi processor simulation. The solution for my problem seems to be to run on a single processor, where it runs fine....?�WRONG INITIATION ----- Initiating the case with wrong conditions may lead to floating point error when the iterations start.。

相关文档
最新文档