Openfoam Error Floating Point Exception
Contents |
model in OpenFOAM? Hi to everyone, I am trying to simulate cavitation inside nozzle with kOmega SST turbulence model using interPhaseChangeFoam (at least for this foam::error::printstack(foam::ostream&) case).When i run the case, after 40 or 50 time-steps always giving foam::sigfpe::sighandler(int) at ??:? following floating point error: smoothSolver: Solving for alpha.water, Initial residual = 4.1184e-06, Final residual = 3.80347e-09, No Iterations 1Phase-1
Foam::divide(foam::field&, Foam::ulist Const&, Foam::ulist Const&) At ??:?
volume fraction = 0.98612 Min(alpha1) = 0.000310125 Max(alpha1) = 1MULES: Correcting alpha.waterMULES: Correcting alpha.waterLiquid phase volume fraction = 0.98612 Min(alpha1) = 0.000310125 Max(alpha1) = 1smoothSolver: Solving for Ux, Initial residual =
Foam Sigsegv
1.98514e-05, Final residual = 1.02782e-09, No Iterations 2smoothSolver: Solving for Uy, Initial residual = 5.44074e-06, Final residual = 1.94705e-10, No Iterations 2smoothSolver: Solving for Uz, Initial residual = 8.8507e-05, Final residual = 3.80435e-09, No Iterations 2GAMG: Solving for p_rgh, Initial residual = 2.79212e-08, Final residual = 2.04895e-10, No Iterations 1GAMG: Solving for p_rgh, Initial residual = 6.59936e-09, Final residual = 6.59936e-09, No floating point exception (core dumped) Iterations 0GAMG: Solving for p_rgh, Initial residual = 6.61102e-09, Final residual = 6.61102e-09, No Iterations 0GAMGPCG: Solving for p_rgh, Initial residual = 6.61138e-09, Final residual = 6.61138e-09, No Iterations 0smoothSolver: Solving for omega, Initial residual = 5.4048e-06, Final residual = 6.75835e-10, No Iterations 2smoothSolver: Solving for k, Initial residual = 9.03591e-06, Final residual = 2.43949e-09, No Iterations 2ExecutionTime = 97153.3 s ClockTime = 98393 s Max pressure: 323086Min pressure: -35072.5Max velocity: 28.9586 Min velocity: 0 Courant Number mean: 0.00779459 max: 0.0996774deltaT = 3.50877e-08Time = 0.01051926 smoothSolver: Solving for alpha.water, Initial residual = 4.11863e-06, Final residual = 3.80331e-09, No Iterations 1Phase-1 volume fraction = 0.986119 Min(alpha1) = 0.000310159 Max(alpha1) = 1MULES: Correcting alpha.waterMULES: Correcting alpha.waterLiquid phase volume fraction = 0.986119 Min(alpha1) = 0.000310159 Max(alpha1) = 1smoothSolver: Solving for Ux, Initial residual = 1.98021e-05, Final residual = 1.02634e-09, No Iterations 2smoothSolver: Solving for Uy, Initial residual = 5.44207e-06, Final residual = 1.94729e-10, No Iterations 2smoothSolver: Solving for Uz, Initial residual = 8.84228e-05, Final residual = 3.80449e-09, No Iterations 2GAMG: Solving for p_rgh, Initial residual = 2.58283e-08, Final residual = 1.86337e-10, No Iterations 1[5] #0 Foam::error::printStack(Foam::Ostream&) at ??:?
Update0001426OpenFOAM[All Projects] Bugpublic2014-10-28 06:572015-01-01 13:46ReportersoumyakarmakarAssigned TohenryPriorityhighSeveritycrashReproducibilityalwaysStatusclosedResolutionunable to reproducePlatformLinuxOSRHELOS Version6.5Product VersionTarget VersionFixed in VersionSummary0001426: Openfoam run exiting with floating point exception errorDescriptionHi , My openfoam paratllel is failing with floating point exception error. [24] #0 Foam::error::printStack(Foam::Ostream&)-------------------------------------------------------------------------- An MPI process has executed an operation involving a call to the "fork()" system call to create a child process. Open MPI is currently https://www.researchgate.net/post/Why_do_I_get_a_floating_point_error_with_kOmegaSST_turbulence_model_in_OpenFOAM operating in a condition that could result in memory corruption or other system errors; your MPI job may hang, crash, or produce silent data corruption. The use of fork() (or system() or other calls that create child processes) is strongly discouraged. The process that invoked fork http://bugs.openfoam.org/view.php?id=1426 was: Local host: n022 (PID 5664) MPI_COMM_WORLD rank: 31 If you are *absolutely sure* that your application will successfully and correctly survive a call to fork(), you may disable this warning by setting the mpi_warn_on_fork MCA parameter to 0. -------------------------------------------------------------------------- [31] #0 Foam::error::printStack(Foam::Ostream&)[12] #0 Foam::error::printStack(Foam::Ostream&)[28] #0 Foam::error::printStack(Foam::Ostream&)[13] #0 Foam::error::printStack(Foam::Ostream&)[20] #0 Foam::error::printStack(Foam::Ostream&) addr2line failed [31] #1 Foam::sigFpe::sigHandler(int)[16] #0 Foam::error::printStack(Foam::Ostream&) addr2line failed [24] #1 Foam::sigFpe::sigHandler(int) addr2line failed [28] #1 addr2line failed [12] #1 Foam::sigFpe::sigHandler(int)Foam::sigFpe::sigHandler(int) addr2line failed [24] #2 addr2line failed [20] #1 Foam::sigFpe::sigHandler(int) addr2line failed [13] #1 Foam::sigFpe::sigHandler(int) addr2line failed [13] #2 addr2line failed [16] #1 Foam::sigFpe::sigHandler(int) addr2line failed [31] #2 addr2line failed [28] #2 [24] addr2line failed [24] #3 Foam::GaussSeidelSmoother::smooth(Foam::word const&, Foam::Field 1 Motivation 2 FULLDEBUG - libraries 3 Top-Level debugging 4 Tools 4.1 Serial debuggers 4.1.1 https://openfoamwiki.net/index.php/HowTo_debugging gdb 4.1.2 nemiver 4.1.3 ddd 4.1.4 Limitations 4.2 Parallel debuggers 4.2.1 mpirunDebug 4.2.2 Eclipse PTP 4.2.3 Totalview 5 Additional Info 5.1 Manual Assistance for http://www.paralution.com/forums/topic/error-while-executing-blockmesh-for-laplace-openfoam-plugin-example/ Breakpoints 5.2 Getting built-in feedback from OpenFOAM 5.2.1 Looking at the source code 5.2.2 Global location to turn on the built-in debug flags 5.2.3 floating point Other locations to turn on the built-in debug flags 6 Step-by-step examples 1 Motivation If your application crashes it will usually output a stack trace, e.g. #0 Foam::error::printStack(Foam::-Ostream&) in "/home/ivan/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so" #1 Foam::sigFpe::sigFpeHandler(int) in "/home/ivan/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so" #2 Uninterpreted: [0xb7f8b420] #3 Foam::divide(Foam::Field executing blockMesh for Laplace OpenFOAM Plugin example Home | Topic | Error while executing blockMesh for Laplace OpenFOAM Plugin example Error while executing blockMesh for Laplace OpenFOAM Plugin example Front page › Forums › Plug-ins › Error while executing blockMesh for Laplace OpenFOAM Plugin example Tagged:OpenFOAM plug-in Laplace example This topic contains 2 replies, has 2 voices, and was last updated by Praveen 2 years, 11 months ago. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts November 25, 2013 at 12:02 #576 PraveenParticipant Hi, I installed OpenFOAM 2.1.1 in my Ubuntu 12.04 and ran perfectly some examples. I then compiled paralution and successfully executed the cg solver. I deleted the 7th line (the below line) in Make/options file: (../../../../build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_MP/paralution_MP.C) Contents of my Make/files are: ####################################################################### Laplace.C ../../../../build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PCG/paralution_PCG.C ../../../../build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PBiCG/paralution_PBiCG.C ../../../../build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_PGMRES/paralution_PGMRES.C ../../../../build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_GAMG/paralution_GAMG.C ../../../../build/inc/plug-ins/OpenFOAM/matrices/lduMatrix/solvers/paralution_AMG/paralution_AMG.C EXE = ./Laplace ####################################################################### Contents of my Make/options are: ####################################################################### EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I../../../../build/inc EXE_LIBS = \ -lfiniteVolume \ -lOpenFOAM \ -fopenmp \ -lcudart -lcublas -lcusparse -L/usr/local/cuda/lib\ ../../../../build/lib/libparalution.a ####################################################################### Also i successfully compiled Laplace example in OpenFOAM Plug-in. But when i executed blockMesh i get the following error: ####################################################################### $ blockMesh /*--------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*--------------------------------------------------*/ Build : 2.1.1-221db2718bbb Exec : blockMesh Da