CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

SIGFPE Error - Need help!

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 9, 2011, 09:15
Default SIGFPE Error - Need help!
  #1
Member
 
ak
Join Date: May 2011
Posts: 71
Rep Power: 5
newOFuser is on a distinguished road
Hello,

I am a new OF user, and was trying to use the reactingFoam solver (slightly modified) to study combustion in a cylindrical swirl combustor. However, after a few time steps I got the error below.

Could someone please point out what could be causing this floating point exception, and how to rectify it?

Thank you so much!
ak
--------------------------------------------------------------
Time = 0.0124618

Solving chemistry
[24] #0 Foam::error:rintStack(Foam::Ostream&)diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
in "/home/ak/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
[24] #1 Foam::sigFpe::sigFpeHandler(int) in "/home/ak/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
[24] #2 in "/lib/libc.so.6"
[24] #3 in "/lib/libm.so.6"
[24] #4 pow in "/lib/libm.so.6"
[24] #5 Foam::ODEChemistryModel<Foam:siChemistryModel, Foam::sutherlandTransport<Foam::specieThermo<Foam: :janafThermo<Foam:erfectGas> > > >:mega(Foam::Reaction<Foam::sutherlandTransport< Foam::specieThermo<Foam::janafThermo<Foam:erfect Gas> > > > const&, Foam::Field<double> const&, double, double, double&, double&, int&, double&, double&, int&) const in "/home/ak/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libchemistryModel.so"
[24] #6 Foam::ODEChemistryModel<Foam:siChemistryModel, Foam::sutherlandTransport<Foam::specieThermo<Foam: :janafThermo<Foam:erfectGas> > > >::tc() const in "/home/ak/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libchemistryModel.so"
[24] #7
[24] in "/home/ak/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/pFoam"
[24] #8 __libc_start_main in "/lib/libc.so.6"
[24] #9
[24] in "/home/ak/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/pFoam"
[node86:15576] *** Process received signal ***
[node86:15576] Signal: Floating point exception (8)
[node86:15576] Signal code: (-6)
[node86:15576] Failing at address: 0x58f800003cd8
[node86:15576] [ 0] /lib/libc.so.6(+0x33af0) [0x2acc4f3dcaf0]
[node86:15576] [ 1] /lib/libc.so.6(gsignal+0x35) [0x2acc4f3dca75]
[node86:15576] [ 2] /lib/libc.so.6(+0x33af0) [0x2acc4f3dcaf0]
[node86:15576] [ 3] /lib/libm.so.6(+0x13e81) [0x2acc4ef21e81]
[node86:15576] [ 4] /lib/libm.so.6(pow+0x15) [0x2acc4ef33765]
[node86:15576] [ 5] /home/ak/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libchemistryModel.so(_ZNK4Foam17ODEChemistryModelI NS_17psiChemistryModelENS_19sutherlandTransportINS _12specieThermoINS_11janafThermoINS_10perfectGasEE EEEEEE5omegaERKNS_8ReactionIS8_EERKNS_5FieldIdEEdd RdSI_RiSI_SI_SJ_+0x285) [0x2acc4dca9ff5]
[node86:15576] [ 6] /home/ak/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libchemistryModel.so(_ZNK4Foam17ODEChemistryModelI NS_17psiChemistryModelENS_19sutherlandTransportINS _12specieThermoINS_11janafThermoINS_10perfectGasEE EEEEEE2tcEv+0x57e) [0x2acc4dcb524e]
[node86:15576] [ 7] pFoam() [0x426bf3]
[node86:15576] [ 8] /lib/libc.so.6(__libc_start_main+0xfd) [0x2acc4f3c7c4d]
[node86:15576] [ 9] pFoam() [0x421119]
[node86:15576] *** End of error message ***

-----------------------------------------------
newOFuser is offline   Reply With Quote

Old   June 15, 2011, 02:31
Default
  #2
New Member
 
chyn wey lee
Join Date: Apr 2009
Posts: 22
Rep Power: 7
djstoneage is on a distinguished road
i do unset sigfpe and it works but not too sure if it is the right way of doign things? try to check your initial conditions
djstoneage is offline   Reply With Quote

Old   June 15, 2011, 08:39
Default
  #3
Member
 
ak
Join Date: May 2011
Posts: 71
Rep Power: 5
newOFuser is on a distinguished road
Thanks for your reply! How did you unset this option?

I tried "unset FOAM_SIGFPE" in the .bashrc file followed by the . $HOME/.bashrc command, but when I run the case, I still get the following before the simulation starts:
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
SetNaN : Initialising allocated memory to NaN (FOAM_SETNAN).

I tried "export FOAM_SIGFPE=false" as well but that didn't work either.

-ak
newOFuser is offline   Reply With Quote

Old   June 19, 2011, 22:55
Default unset FOAM_SIGFPE
  #4
New Member
 
chyn wey lee
Join Date: Apr 2009
Posts: 22
Rep Power: 7
djstoneage is on a distinguished road
Just type unset FOAM_SIGFPE in your case directory in terminal
djstoneage is offline   Reply With Quote

Old   June 20, 2011, 09:28
Default
  #5
Member
 
ak
Join Date: May 2011
Posts: 71
Rep Power: 5
newOFuser is on a distinguished road
Thanks so much!
As you pointed out earlier, I am also looking at choosing appropriate conditions and fvschemes to avoid getting the error.
Thanks again
ak
newOFuser is offline   Reply With Quote

Old   June 20, 2011, 12:30
Default
  #6
New Member
 
chyn wey lee
Join Date: Apr 2009
Posts: 22
Rep Power: 7
djstoneage is on a distinguished road
try checking your initial condition. in my case i found when i set values to my initial condition i am able to avoid the sigfpe error. what study are you doing? I am a little problem with my atmospheric wind studies
djstoneage is offline   Reply With Quote

Old   June 20, 2011, 12:34
Default
  #7
Member
 
ak
Join Date: May 2011
Posts: 71
Rep Power: 5
newOFuser is on a distinguished road
Sure, thanks so much!
I found that changing the fvSchemes and reducing relaxation factors in fvSolution file can also have a significant effect.
I am looking into premixed combustion studies at present.
newOFuser is offline   Reply With Quote

Old   June 20, 2011, 12:51
Default
  #8
New Member
 
chyn wey lee
Join Date: Apr 2009
Posts: 22
Rep Power: 7
djstoneage is on a distinguished road
i checked the relaxation factor but it run for a few iteration and after a certain iteration it will get the sigfpe error again. do you have any experience with atmospheric wind studies? right now i've got the boundary layer figure out but, the flow doesnt seem to go though my off shore platform that im looking at
djstoneage is offline   Reply With Quote

Old   June 20, 2011, 12:54
Default
  #9
Member
 
ak
Join Date: May 2011
Posts: 71
Rep Power: 5
newOFuser is on a distinguished road
sorry, i don't...
newOFuser is offline   Reply With Quote

Old   October 6, 2012, 16:01
Default Bug Report #0000657
  #10
New Member
 
Tyler V
Join Date: Jul 2012
Posts: 23
Rep Power: 4
tgvosk is on a distinguished road
I know this is an old thread, but I had a very similar problem with a sigFpe in reactingFoam that was solved by the fix pushed in Bug Report #0000657. If you (or anyone) are still having this problem, maybe that will fix it.

I was getting the sigFpe from the exact same function as your error log shows (and found this thread while trying to figure out what was wrong).
tgvosk is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
unset sigfpe Tarak OpenFOAM 0 June 8, 2011 20:10
SIGFPE in reactingFoam(LES) Hr0 OpenFOAM Bugs 1 June 6, 2011 09:08
Error Message sigFpe AlpAc OpenFOAM Running, Solving & CFD 1 April 12, 2011 03:41
chtMultiFoam sigFpe HendrikR OpenFOAM 6 April 2, 2010 10:40
meshing error in Gambit: SIGFPE Ralf Schmidt FLUENT 0 November 2, 2005 15:28


All times are GMT -4. The time now is 18:08.