# Floating point exception (core dumped)

 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 11, 2017, 21:04 Floating point exception (core dumped) #1 Member   cyln Join Date: Jul 2016 Posts: 51 Rep Power: 3 Hello, I am having error due to division by zero. I checked all my BCs. Everything looks fine. Any idea about what the problem is? Code: ```PIMPLE: iteration 1 --> FOAM Warning : From function void Foam::lduMatrix::operator-=(const Foam::lduMatrix&) in file matrices/lduMatrix/lduMatrix/lduMatrixOperations.C at line 286 Unknown matrix type combination this : diagonal:0 symmetric:0 asymmetric:1 A : diagonal:0 symmetric:0 asymmetric:0 Normalisation factor = 87582.7 smoothSolver: Iteration 0 residual = 1 smoothSolver: Iteration 4 residual = 8.65356e-09 smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 8.65356e-09, No Iterations 4 Normalisation factor = 0.0721236 smoothSolver: Iteration 0 residual = 0.743557 smoothSolver: Iteration 4 residual = 5.10218e-05 smoothSolver: Solving for Uy, Initial residual = 0.743557, Final residual = 5.10218e-05, No Iterations 4 Normalisation factor = 0.0705167 smoothSolver: Iteration 0 residual = 0.802723 smoothSolver: Iteration 4 residual = 4.89182e-05 smoothSolver: Solving for Uz, Initial residual = 0.802723, Final residual = 4.89182e-05, No Iterations 4 #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::divide(Foam::Field&, double const&, Foam::UList const&) at ??:? #4 Foam::tmp > Foam::operator/(Foam::dimensioned const&, Foam::tmp > const&) in "/opt/openfoam4/platforms/linux64GccDPInt32Opt/bin/pimpleFoam" #5 ? in "/opt/openfoam4/platforms/linux64GccDPInt32Opt/bin/pimpleFoam" #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 ? in "/opt/openfoam4/platforms/linux64GccDPInt32Opt/bin/pimpleFoam" Floating point exception (core dumped)```

 October 31, 2017, 05:39 #2 New Member   Join Date: Aug 2016 Posts: 8 Blog Entries: 67 Rep Power: 3 As indicated, there should be a "divide by zero" for fields algebra. You can try the full debug build to get the exact function "Foam::divide" taking arg (Field, T, UList). Or try turn on debugSwitch to help locate the function.

 October 31, 2017, 14:33 #3 Member   cyln Join Date: Jul 2016 Posts: 51 Rep Power: 3 Thank you kindle, When I type "unset FOAM_SIGFPE", I get rid of this error. However, I cannot manage to converge my simulation. My momentum equations are not converging. May this have an effect on converge?

 November 2, 2017, 11:09 #4 New Member   Join Date: Aug 2016 Posts: 8 Blog Entries: 67 Rep Power: 3 Well, you don't get rid of the problem by unsetting/ignoring the Error. The Info you get above means that there is a division by zero happening and you have to deal with that.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post student666 OpenFOAM Running, Solving & CFD 9 March 13, 2016 19:23 nyox FLUENT 8 January 22, 2016 08:53 MSans OpenFOAM Running, Solving & CFD 12 August 4, 2015 05:10 Mahyar Javidi OpenFOAM Running, Solving & CFD 5 August 4, 2015 04:01 yuhou1989 OpenFOAM Running, Solving & CFD 2 March 24, 2015 20:28

All times are GMT -4. The time now is 00:52.