CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Floating point exception error on dambreak?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2018, 21:28
Default Floating point exception error on dambreak?
  #1
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
massive_turbulence is on a distinguished road
Hello all!

I'm getting a floating point exception error on the dambreak using 4 cores on the same machine. At first I didn't have a swap enabled and the machine would freeze up then I added one and the sim ran up to this part

Code:
PIMPLE: iteration 1
smoothSolver:  Solving for alpha.water, Initial residual = 0.000862611, Final residual = 1.98603e-09, No Iterations 3
Phase-1 volume fraction = 0.0224762  Min(alpha.water) = -4.83592e-08  Max(alpha.water) = 1
MULES: Correcting alpha.water
MULES: Correcting alpha.water
Phase-1 volume fraction = 0.0224762  Min(alpha.water) = -8.61764e-05  Max(alpha.water) = 1.00006
DICPCG:  Solving for p_rgh, Initial residual = 0.0821221, Final residual = 0.0038929, No Iterations 1
time step continuity errors : sum local = 0.000242214, global = -7.39702e-10, cumulative = 2.2925e-08
DICPCG:  Solving for p_rgh, Initial residual = 0.0046728, Final residual = 0.000226397, No Iterations 6
time step continuity errors : sum local = 1.32212e-05, global = -7.6524e-10, cumulative = 2.21598e-08
--------------------------------------------------------------------------
mpirun noticed that process rank 3 with PID 3622 on node turbulence exited on signal 8 (Floating point exception).

I ran it using
blockMesh
setFields
decomposePar
mpirun -np 4 interFoam -parallel > log &

Below is the project itself.
damBreak.zip
massive_turbulence is offline   Reply With Quote

Old   December 8, 2018, 22:00
Default
  #2
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
massive_turbulence is on a distinguished road
More details, apparently this was sent to the console in bash

Code:
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
[3] #1  Foam::sigFpe::sigHandler(int) at ??:?
[3] #2  ? in /lib/x86_64-linux-gnu/libc.so.6
[3] #3  Foam::PCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
[3] #4  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:?
[3] #5  Foam::fvMatrix<double>::solveSegregatedOrCoupled(Foam::dictionary const&) at ??:?
[3] #6  Foam::fvMesh::solve(Foam::fvMatrix<double>&, Foam::dictionary const&) const at ??:?
[3] #7  ? at ??:?
[3] #8  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[3] #9  ? at ??:?
[turbulence:03622] *** Process received signal ***
[turbulence:03622] Signal: Floating point exception (8)
[turbulence:03622] Signal code:  (-6)
[turbulence:03622] Failing at address: 0x3e800000e26
[turbulence:03622] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7f21297c54b0]
[turbulence:03622] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f21297c5428]
[turbulence:03622] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7f21297c54b0]
[turbulence:03622] [ 3] ~/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam3PCG5solveERNS_5FieldIdEERKS2_h+0xd04)[0x7f212aaff6a4]
[turbulence:03622] [ 4] ~/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZN4Foam8fvMatrixIdE15solveSegregatedERKNS_10dictionaryE+0x15b)[0x7f212d5eafeb]
[turbulence:03622] [ 5] ~/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZN4Foam8fvMatrixIdE24solveSegregatedOrCoupledERKNS_10dictionaryE+0x3d3)[0x7f212d256e53]
[turbulence:03622] [ 6] ~/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZNK4Foam6fvMesh5solveERNS_8fvMatrixIdEERKNS_10dictionaryE+0x23)[0x7f212d2014c3]
[turbulence:03622] [ 7] interFoam[0x446872]
[turbulence:03622] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f21297b0830]
[turbulence:03622] [ 9] interFoam[0x44ed79]
[turbulence:03622] *** End of error message ***
massive_turbulence is offline   Reply With Quote

Old   December 9, 2018, 16:54
Default
  #3
New Member
 
Max
Join Date: Feb 2017
Posts: 11
Rep Power: 9
xneop is on a distinguished road
Quote:
Originally Posted by massive_turbulence View Post
Hello all!

I'm getting a floating point exception error on the dambreak using 4 cores on the same machine. At first I didn't have a swap enabled and the machine would freeze up then I added one and the sim ran up to this part

Code:
PIMPLE: iteration 1
smoothSolver:  Solving for alpha.water, Initial residual = 0.000862611, Final residual = 1.98603e-09, No Iterations 3
Phase-1 volume fraction = 0.0224762  Min(alpha.water) = -4.83592e-08  Max(alpha.water) = 1
MULES: Correcting alpha.water
MULES: Correcting alpha.water
Phase-1 volume fraction = 0.0224762  Min(alpha.water) = -8.61764e-05  Max(alpha.water) = 1.00006
DICPCG:  Solving for p_rgh, Initial residual = 0.0821221, Final residual = 0.0038929, No Iterations 1
time step continuity errors : sum local = 0.000242214, global = -7.39702e-10, cumulative = 2.2925e-08
DICPCG:  Solving for p_rgh, Initial residual = 0.0046728, Final residual = 0.000226397, No Iterations 6
time step continuity errors : sum local = 1.32212e-05, global = -7.6524e-10, cumulative = 2.21598e-08
--------------------------------------------------------------------------
mpirun noticed that process rank 3 with PID 3622 on node turbulence exited on signal 8 (Floating point exception).
I ran it using
blockMesh
setFields
decomposePar
mpirun -np 4 interFoam -parallel > log &

Below is the project itself.
Attachment 67187



hi, pls have a look at the Min alpha value which actually negative, it is not physically acceptable. try to change the time step ( small time step) and see if it helps
xneop is offline   Reply With Quote

Old   December 9, 2018, 22:15
Default
  #4
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
massive_turbulence is on a distinguished road
Quote:
Originally Posted by xneop View Post
hi, pls have a look at the Min alpha value which actually negative, it is not physically acceptable. try to change the time step ( small time step) and see if it helps
Thanks for replying. So far what I've noticed is that scotch and metis are both really slow compared to simple decomposition. Could you explain why that might be. I managed to get a good run with simple decomposition so that's why I'm asking if this particular case is not right for that (scotch or metis) decomposition. When is it a good idea to use either scotch or metis btw?

I'll trying running with smaller time steps using simple as the two other ones I mentioned are slow just as they are. Am I missing something if one decomposition is faster than another using the same timestep size?
massive_turbulence is offline   Reply With Quote

Reply

Tags
crash, dambreak, interfoam


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
icoFoam floating point exception (8) leizhao512 OpenFOAM Running, Solving & CFD 7 November 1, 2018 12:43
A floating point exception has occurred: floating point exception [Overflow]. starlight STAR-CCM+ 4 May 4, 2016 10:08
A floating point exception - SEM Model yansheng STAR-CCM+ 1 April 4, 2016 05:57
Floating point exception from twoPhaseEulerFoam openfoammaofnepo OpenFOAM Running, Solving & CFD 1 March 19, 2016 14:56
Floating point exception (core dumped) for GAMG solver yuhou1989 OpenFOAM Running, Solving & CFD 2 March 24, 2015 20:28


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