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

error: Floating point exception

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2013, 11:50
Default error: Floating point exception
  #1
New Member
 
suhas jain suresh
Join Date: Aug 2012
Location: Stanford, USA
Posts: 27
Rep Power: 13
suhas jain is on a distinguished road
Hi everyone,

I am trying to implement level Set Method in OpenFoam, but I got this error in pEqn.H.

I have not changed anything in "pEqn.H" or related to that.


Any advice?


"

#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::GAMGSolver::scale(Foam::Field<double>&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMa trix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#6 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at /opt/openfoam220/src/finiteVolume/lnInclude/fvMatrixSolve.C:81
#8
at ~/OpenFOAM/suhas-2.2.0/applications/solvers/levelSetFoam/pEqn.H:37
#9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10
in "/home/suhas/OpenFOAM/suhas-2.2.0/platforms/linux64GccDPOpt/bin/levelSetFoam"
Floating point exception

"


Thanks,
__________________
Suhas Jain
Graduate student, Stanford University
suhas.jain2000@gmail.com
suhas jain is offline   Reply With Quote

Old   July 5, 2013, 05:33
Default
  #2
Member
 
Nicklas Linder
Join Date: Jul 2012
Location: Germany
Posts: 35
Rep Power: 13
nlinder is on a distinguished road
Hi,

I can recommend to build a OF-Version with debugging enabled. That helped me with the same kind of error

http://openfoamwiki.net/index.php/Ho...UG_-_libraries

your problem might be a division by zero, or infinity or a multiplication of fields of different size. I also thought the problem was in the pEqn.H but i turned out it was a lot earlier..

Greetings
Nicklas
nlinder is offline   Reply With Quote

Old   July 5, 2013, 05:57
Default
  #3
New Member
 
suhas jain suresh
Join Date: Aug 2012
Location: Stanford, USA
Posts: 27
Rep Power: 13
suhas jain is on a distinguished road
Hi Nicklas,


Thank you for the reply. I found out the error using nemiver. There was a mistake in defining Heaviside function which gave an error in pEqn.H. Now everything's working fine!!..



Thanks,
__________________
Suhas Jain
Graduate student, Stanford University
suhas.jain2000@gmail.com
suhas jain is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ercoftac centrifugal pump case study bug, Openfoam 1.6-ext (Floating point exception) ArianeJasmin OpenFOAM Programming & Development 1 April 4, 2012 15:11
simpleFoam Floating point exception error -help sudhasran OpenFOAM Running, Solving & CFD 3 March 12, 2012 17:23
Finished simulation doesn't start: floating point exception [Divide by zero] MaxCFD STAR-CCM+ 3 June 26, 2011 11:31
Flouting point exception twoPhaseEulerFoam - I set delta t cristina87 OpenFOAM 1 May 26, 2011 16:35
Cannot Open .sim (Floating Point Exception) trex930 STAR-CCM+ 1 July 30, 2010 07:51


All times are GMT -4. The time now is 09:38.