CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Error Floating point exception (https://www.cfd-online.com/Forums/openfoam-solving/58664-error-floating-point-exception.html)

celifani August 6, 2008 10:35

Hi! I'm working with OpenFOAM
 
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

hjasak August 6, 2008 11:36

Your solver blew up because of
 
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

celifani August 7, 2008 08:20

I've solved the problem by set
 
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

N. A. December 21, 2010 14:04

Hi Claudio,

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

Thanks,
Nir

boger December 22, 2010 08:42

Assuming you are using a bash shell, I would put it in your .bashrc

sheikh nasir February 8, 2012 01:02

Floating error
 
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

sihaqqi April 17, 2013 04:43

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

Rohanbotta November 19, 2023 04:48

Where do i put the unset foam_sig, im stuck with the floating point exception would really appreciate ur reply

nfahmed November 27, 2023 04:22

Quote:

Originally Posted by Rohanbotta (Post 860209)
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 November 27, 2023 04:29

Thank you very much

anubasu November 29, 2023 12:44

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.


All times are GMT -4. The time now is 05:48.