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

Error - Please Help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2016, 01:11
Default Error - Please Help
  #1
New Member
 
Join Date: Oct 2016
Posts: 10
Rep Power: 9
Kappa is on a distinguished road
Hey, I am using interfoam and I got a Floating Point Exception but I am not able to find its source. I am using the k-omega-SST model for a multiphase flow.
The error message reads as follows:

Code:
[3] #0  Foam::error::printStack(Foam::Ostream&) in "/appl/openfoam/2.3.1/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #1  Foam::sigFpe::sigHandler(int) in "/appl/openfoam/2.3.1/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #2  
[3]  at sigaction.c:0
[3] #3  double Foam::sumProd<double>(Foam::UList<double> const&, Foam::UList<double> const&) in "/appl/openfoam/2.3.1/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #4  Foam::PBiCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/appl/openfoam/2.3.1/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #5  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) in "/appl/openfoam/2.3.1/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
[3] #6  Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "myFolder/myApplication"
[3] #7  Foam::SolverPerformance<double> Foam::solve<double>(Foam::tmp<Foam::fvMatrix<double> > const&) in "/appl/openfoam/2.3.1/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
[3] #8  Foam::incompressible::RASModels::kOmegaSST::correct() in "/appl/openfoam/2.3.1/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
[3] #9  
[3]  in "myFolder/myApplication"
[3] #10  __libc_start_main in "/lib64/libc.so.6"
[3] #11  
[3]  in "myFolder/myApplication"
[myPC] *** Process received signal ***
[myPC] Signal: Floating point exception (8)
[myPC] Signal code:  (-6)
Thanks everybody for help. I really do not know how to go on. The CFL number should be smaller than zero and the mesh quality should be good also. I cannot find where I may divide by zero :/

Btw, at the end it says:
Code:
--------------------------------------------------------------------------
mpirun noticed that process rank 3 with PID 14925 on node pbplnx10 exited on signal 8 (Floating point exception).
--------------------------------------------------------------------------

Last edited by Kappa; October 18, 2016 at 02:41. Reason: Forgot to post the last sentence of error message.
Kappa is offline   Reply With Quote

Old   October 18, 2016, 01:29
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

In your k and/or omega files, is there anything with a value 0? Division by zero will result in floating point error....

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   October 18, 2016, 02:00
Default
  #3
New Member
 
Join Date: Oct 2016
Posts: 10
Rep Power: 9
Kappa is on a distinguished road
Hey,

thanks for your answer.
Neither in the initial data, nor in the timesteps I'm writing out...Omega is between 200-300 in average, k is between 2e-10 - 1e-3 in average.

So I don't think that they get zero, the minimal value is always larger than 0.

I just compared my kOmegaSST.H and ~.C file and I did not change anything in these. They are exactly the same as in version 2.3.1.
Kappa is offline   Reply With Quote

Old   October 20, 2016, 01:45
Default
  #4
New Member
 
Join Date: Oct 2016
Posts: 10
Rep Power: 9
Kappa is on a distinguished road
Okay I was wrong.
the values for k and omega start diverging somewhen.
It says that 1001 iterations were used to solve for k but k ranges from 1e-64 to 1e+64.

So this is where the error comes from, but why did it need so many iterations without any effect?
Kappa is offline   Reply With Quote

Old   October 21, 2016, 06:53
Default
  #5
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
Can you post your case setup?
vasava 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



All times are GMT -4. The time now is 13:57.