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

2D NACA0012 O-Mesh GAMG Solver Floating Point Exception

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2015, 10:25
Default 2D NACA0012 O-Mesh GAMG Solver Floating Point Exception
  #1
New Member
 
Michael Deaves
Join Date: Dec 2013
Posts: 5
Rep Power: 12
mdeaves is on a distinguished road
Hi all!

Using the airFoil2D tutorial as a starting point I am trying to investigate the flow over a NACA0012 using SpallartAlmars turbulence model, wall functions, simpleFoam, and an O-Mesh that was generated in Pointwise.

When I run simpleFoam I get this error,

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#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 at ??:?
#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::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const at ??:?
#5 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:?
#7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:?
#8
at ??:?
#9
at ??:?
#10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11
at ??:?
Floating point exception (core dumped)

I can understand enough to know that the solver GAMG is involved with some bad math (divide by zero maybe?), but I can't figure out much more than that. Hopefully you can help me.

My boundary conditions follow post #48 from jferrari on this thread. They are very simple for an O-mesh, only farfield, airfoil, and empty in the z-direction.

One weird thing is that when I use a C-Type mesh that I built using snappyHexMesh simpleFoam runs with no errors. However running the Pointwise O-mesh with the same solver settings and boundary conditions crashes simpleFoam. I have attached some of my case files as well as the log of checkMesh.

Any help is greatly appreciated.

-Michael
Attached Files
File Type: c checkMeshLog.c (2.9 KB, 6 views)
File Type: c fvSchemes.c (1.4 KB, 5 views)
File Type: c fvSolution.c (1.9 KB, 5 views)
File Type: c nuTilda.c (1.1 KB, 2 views)
File Type: c log.c (3.4 KB, 4 views)
mdeaves is offline   Reply With Quote

Old   March 16, 2015, 10:41
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You have convergence problem even before GAMG is invoked:

Code:
Time = 1

smoothSolver:  Solving for Ux, Initial residual = 1, Final residual = 259.68, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = 1, Final residual = 7.08758, No Iterations 1000
...
As you can see, final residual is greater than initial and number of iterations are equal to maxIter.

Also you have got this warning:

Code:
--> FOAM Warning : 
    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/Field.C at line 318
    Reading "/home/mdeaves/Dropbox/ProjectBoomerang/OpenFOAM/run/airFoil2DSA_Omesh/0/U.boundaryField.farfield" from line 25 to line 26
    expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.
Can you post your U boundary conditions?
alexeym is offline   Reply With Quote

Old   March 16, 2015, 10:49
Default
  #3
New Member
 
Michael Deaves
Join Date: Dec 2013
Posts: 5
Rep Power: 12
mdeaves is on a distinguished road
Thanks for pointing that out!

I forgot to add 'uniform' in front of the U boundary condition on the farfield. Adding that removed the warning.

Attached is my U file and the new log file. Why would the smoothSolver be blowing up so quickly?
Attached Files
File Type: c log.c (3.0 KB, 3 views)
File Type: c U.c (1.1 KB, 7 views)
mdeaves is offline   Reply With Quote

Old   March 16, 2015, 12:03
Default
  #4
New Member
 
Michael Deaves
Join Date: Dec 2013
Posts: 5
Rep Power: 12
mdeaves is on a distinguished road
Here are my other BC files too.
Attached Files
File Type: c p.c (1.0 KB, 3 views)
File Type: c nut.c (1.1 KB, 2 views)
File Type: c nuTilda.c (1.1 KB, 1 views)
mdeaves is offline   Reply With Quote

Old   September 23, 2019, 02:51
Default
  #5
Member
 
chengan.wang
Join Date: Jan 2016
Location: china
Posts: 47
Rep Power: 10
wangchengan2003 is on a distinguished road
Send a message via Skype™ to wangchengan2003
Dear Michael Deaves,
Have you solved this problem? I meet the same problem with the mesh by pointwise.
Sincerely
Chengan
wangchengan2003 is offline   Reply With Quote

Reply

Tags
airfoil 2d, floating point exception, o-mesh, openfoam 2.3.1, pointwise


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
icoFoam - Floating point exception (core dumped) File OpenFOAM Running, Solving & CFD 26 March 6, 2021 04:26
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53
GAMG solver causes troubles colinB OpenFOAM Running, Solving & CFD 5 June 13, 2013 07:48
Extremely slow simulation with interDyMFoam jrrygg OpenFOAM Running, Solving & CFD 9 April 23, 2013 10:14
Interfoam blows on parallel run danvica OpenFOAM Running, Solving & CFD 16 December 22, 2012 02:09


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