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

SIGFPE Error with reactingFoam

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 with reactingFoam
  #1
Member
 
ak
Join Date: May 2011
Posts: 71
Rep Power: 7
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: 9
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: 7
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: 9
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: 7
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: 9
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: 7
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: 9
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: 7
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: 24
Rep Power: 6
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

Old   February 5, 2016, 02:44
Default Reset FOAM_SIGFPE
  #11
New Member
 
Aidan
Join Date: Jul 2014
Location: Belfast
Posts: 16
Rep Power: 4
amcloughlin801 is on a distinguished road
I have unset SIGFPE and now I want to reset it again. Does anyone have any idea how I would do that?
amcloughlin801 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
How to switch off combustion and reaction in reactingFoam shenzhou1987 OpenFOAM Running, Solving & CFD 12 June 20, 2016 07:23
SigFpe when running ANY application in parallel Pj. OpenFOAM Running, Solving & CFD 3 April 23, 2015 14:53
calculate flame speed using reactingFoam IColin OpenFOAM Running, Solving & CFD 0 February 4, 2014 16:14
reactingFoam wedge handling wrong U dhondupant OpenFOAM Bugs 1 December 9, 2010 08:34
reactingFoam - turbulent reacting flow hamburgFoam OpenFOAM 0 December 7, 2009 13:57


All times are GMT -4. The time now is 06:34.