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

Error Floating point exception

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 7 Post By hjasak
  • 1 Post By nfahmed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2008, 10:35
Default Hi! I'm working with OpenFOAM
  #1
New Member
 
Claudio Feliciani
Join Date: Mar 2009
Location: Tokyo, Japan
Posts: 2
Rep Power: 0
celifani is on a distinguished road
Hi!
I'm working with OpenFOAM for a simulation of the liquid steel behaviour for a Twin Roll Casting maschine.
I succesfully created a mesh and added the necessary boundary conditions.

When I start the computation with interFoam after the second time-iteration a get an error message: "Floating point exception".
I searched with google the meaning of this error but there's not lot of documentation.

Could you please tell me which could be one of the possible reason that yield such an error message?

Thank you,
Claudio Feliciani
celifani is offline   Reply With Quote

Old   August 6, 2008, 11:36
Default Your solver blew up because of
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Your solver blew up because of an illegal mathematical operation, like division by zero. I would think this is to do with either your initial/boundary conditions or material properties. For example, having zero density would do something like this.

Enjoy,

Hrv
johnkh, wenxu, amuzeshi and 4 others like this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 7, 2008, 08:20
Default I've solved the problem by set
  #3
New Member
 
Claudio Feliciani
Join Date: Mar 2009
Location: Tokyo, Japan
Posts: 2
Rep Power: 0
celifani is on a distinguished road
I've solved the problem by setting:
unset FOAM_SIGFPE

Now the simulation is running and the results seem to be good. Actually I know what the command unset FOAM_SIGFPE (it tell OpenFOAM to not send the term signal to the CPU in case of an illegal operation, if I've not understand wrong), but what could be the risks by using that method to remove the "Floating point exception" problem?

The same topic were discussed in http://www.cfd-online.com/OpenFOAM_D...tml?1201770596 but no answer were finally given.

Thanks,
Claudio
celifani is offline   Reply With Quote

Old   December 21, 2010, 14:04
Default
  #4
Member
 
N. A.
Join Date: May 2010
Posts: 64
Rep Power: 15
N. A. is on a distinguished road
Hi Claudio,

where do you "unste FOAM_SIGFPE". in etc/bashrc or some where else

Thanks,
Nir
N. A. is offline   Reply With Quote

Old   December 22, 2010, 08:42
Default
  #5
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
Assuming you are using a bash shell, I would put it in your .bashrc
__________________
David A. Boger
boger is offline   Reply With Quote

Old   February 8, 2012, 01:02
Default Floating error
  #6
Member
 
Join Date: Jan 2012
Posts: 58
Rep Power: 14
sheikh nasir is on a distinguished road
Hello
i am having floating error :invalid number problem. I am working train in tunnel. Can any body help me. My email is sheikhnasir39@gmail.com
sheikh nasir is offline   Reply With Quote

Old   April 17, 2013, 04:43
Default
  #7
Senior Member
 
starter
Join Date: Sep 2012
Posts: 125
Rep Power: 15
sihaqqi is on a distinguished road
Claudio
I am doing LES of my geometry. In which dictionary do you put unset FOAM_SIGFPE. My dictionaries are what can be found in pitzDaily tutorial in pisoFOam. I shall be very grateful for your response.

Regards
sihaqqi is offline   Reply With Quote

Old   November 19, 2023, 04:48
Default
  #8
New Member
 
Rohan
Join Date: May 2023
Posts: 20
Rep Power: 2
Rohanbotta is on a distinguished road
Where do i put the unset foam_sig, im stuck with the floating point exception would really appreciate ur reply
Rohanbotta is offline   Reply With Quote

Old   November 27, 2023, 04:22
Default
  #9
New Member
 
S.M. Nafiz Ahmed
Join Date: Nov 2023
Posts: 1
Rep Power: 0
nfahmed is on a distinguished road
Quote:
Originally Posted by Rohanbotta View Post
Where do i put the unset foam_sig, im stuck with the floating point exception would really appreciate ur reply
Just like you run blockMesh, type "unset FOAM_SIGFPE" in the same way.
Rohanbotta likes this.
nfahmed is offline   Reply With Quote

Old   November 27, 2023, 04:29
Default
  #10
New Member
 
Rohan
Join Date: May 2023
Posts: 20
Rep Power: 2
Rohanbotta is on a distinguished road
Thank you very much
Rohanbotta is offline   Reply With Quote

Old   November 29, 2023, 12:44
Default
  #11
Member
 
Anurag
Join Date: Feb 2023
Posts: 63
Rep Power: 3
anubasu is on a distinguished road
If i use a job script to submit a openfoam job on hpc shall I put unset command in my jobscript before putting the interFoam command??

many thanks.
anubasu is offline   Reply With Quote

Reply


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
error:floating point exception santosh FLUENT 2 February 8, 2012 02:06
Error : floating point exception; overflow. maryam CFX 3 May 18, 2010 07:44
CFX error, Floating point exception Riyaz CFX 4 May 18, 2010 01:13
CFX error, Floating point exception Riyaz Main CFD Forum 0 November 14, 2008 06:30
Error: floating point exception Joern FLUENT 0 January 23, 2004 04:27


All times are GMT -4. The time now is 11:22.