OpenFOAM算例报错,浮点溢出错误,Floating point exception【汇总】
OpenFOAM算例報錯,浮點溢出錯誤【匯總】
錯誤情況1:
在運行案例文件時出現以下錯誤:
Floating point exception (core dumped)
浮點溢出、浮點數例外(吐核)
在網上查閱了一些資料,建議如下:
(1)查網格質量(checkMesh)
(2)確認邊界條件是否出錯
(3)確認一下是不是出現了除以0的這種情況。
(4)其他數學上的錯誤,比如負數開根
(5)編譯了新的程序以后,solver有沒有重新編譯,是否相關的頭文件都重新編譯過了一次?
(6)忘了設置初始場場量,命令:setFields
(7)有可能時間步長time step太大了? 用的PISO 、PIMPLE 還是SIMPLE?
(8)先用potential進行初始化(命令:potentialIbFoam),之前在extend的算例movingCylinderInChannelIco中忘記potential初始化,出現"浮點數例外 (核心已轉儲)"的報錯
參考文獻:https://blog.csdn.net/hanbingchegu/article/details/107144181
錯誤情況2:(報錯原因未知)
在運行案例文件時出現以下錯誤:
[zc:02256] *** Process received signal *** [zc:02256] Signal: Floating point exception (8) [zc:02256] Signal code: (-6) [zc:02256] Failing at address: 0x3e8000008d0 [zc:02256] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7fdf3dd29f20] [zc:02256] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fdf3dd29e97] [zc:02256] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7fdf3dd29f20] [zc:02256] [ 3] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam18DILUPreconditioner15calcReciprocalDERNS_5FieldIdEERKNS_9lduMatrixE+0xa5)[0x7fdf3f197095] [zc:02256] [ 4] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam18DILUPreconditionerC1ERKNS_9lduMatrix6solverERKNS_10dictionaryE+0xa4)[0x7fdf3f197224] [zc:02256] [ 5] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam9lduMatrix14preconditioner31addasymMatrixConstructorToTableINS_18DILUPreconditionerEE3NewERKNS0_6solverERKNS_10dictionaryE+0x2e)[0x7fdf3f1973ae] [zc:02256] [ 6] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam9lduMatrix14preconditioner3NewERKNS0_6solverERKNS_10dictionaryE+0x917)[0x7fdf3f17e637] [zc:02256] [ 7] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam9PBiCGStab11scalarSolveERNS_5FieldIdEERKS2_h+0x8df)[0x7fdf3f18a53f] [zc:02256] [ 8] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam9PBiCGStab5solveERNS_5FieldIdEERKS2_h+0x53)[0x7fdf3f18cc53] [zc:02256] [ 9] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZN4Foam8fvMatrixIdE15solveSegregatedERKNS_10dictionaryE+0x187)[0x7fdf43a49c47] [zc:02256] [10] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZN4Foam8fvMatrixIdE24solveSegregatedOrCoupledERKNS_10dictionaryE+0x3a5)[0x7fdf4357d895] [zc:02256] [11] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZNK4Foam6fvMesh5solveERNS_8fvMatrixIdEERKNS_10dictionaryE+0x23)[0x7fdf43521553] [zc:02256] [12] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/liboverset.so(_ZNK4Foam20dynamicOversetFvMesh5solveIdEENS_17SolverPerformanceIT_EERNS_8fvMatrixIS3_EERKNS_10dictionaryE+0x2d2)[0x7fdf3ff4fee2] [zc:02256] [13] /home/user/OpenFOAM/OpenFOAM-v1906/platforms/linux64GccDPInt32Opt/lib/liboverset.so(_ZNK4Foam20dynamicOversetFvMesh5solveERNS_8fvMatrixIdEERKNS_10dictionaryE+0x1d)[0x7fdf3ff5076d] [zc:02256] [14] overOlaDyMFlow(+0x57c8c)[0x55bfc0ab9c8c] [zc:02256] [15] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fdf3dd0cb97] [zc:02256] [16] overOlaDyMFlow(+0x6b36a)[0x55bfc0acd36a] [zc:02256] *** End of error message *** -------------------------------------------------------------------------- mpirun noticed that process rank 2 with PID 0 on node zc exited on signal 8 (Floating point exception).在網上查閱了一些資料,報錯原因未知,解決方法如下:
1. 單核可以計算,并行報錯
2. 電腦上使用文檔記錄,搜文件名:報錯記錄-浮點溢出(MPI Floating point exception)
(1) 選擇不同的時間序列續算(★)
(2) 減小時間步長(★★★)
(3) 更改并行核數(★★)
(4) 單核重新計算
(5) 更改計算總時間
(6) 重新畫網格
總結
以上是生活随笔為你收集整理的OpenFOAM算例报错,浮点溢出错误,Floating point exception【汇总】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为其戴上为期 5 年的“特殊滥用控制”帽
- 下一篇: 消息称三星新款 Galaxy Smart