CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   an error message I can't resolve (

wschosta June 1, 2011 15:24

an error message I can't resolve
I keep on getting this error message and I'll change something (never the same thing twice) and then it will go away and pop up again a few minutes later.


#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam171/lib/linuxGccDPOpt/"
#1 Foam::sigFpe::sigFpeHandler(int) in "/opt/openfoam171/lib/linuxGccDPOpt/"
#2 Uninterpreted:
#3 Foam::tmp<Foam::GeometricField<Foam::Vector<double >, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<Foam ::Vector<double>, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) in "/opt/openfoam171/applications/bin/linuxGccDPOpt/VofmhdFoam"
in "/opt/openfoam171/applications/bin/linuxGccDPOpt/VofmhdFoam"
#5 __libc_start_main in "/lib/i386-linux-gnu/"
in "/opt/openfoam171/applications/bin/linuxGccDPOpt/VofmhdFoam"
Any thoughts would be much appreciated.

Walter Schostak

mturcios777 June 2, 2011 13:07

Line 1 in your stack trace says there is a floating point exception, so somewhere you are having a problem with the math trying to do something impossible (square root of a negative, divide by zero or infinity)

Line 3 in your stack trace says there is something wrong with a division operator somewhere in your solver. Change your timestep write to every iteration and see if there is a field that goes to zero when it shouldn't. I'm not familiar with that solver, so you'll need to check the code yourself and see where division of one field by another occurs.

wschosta June 2, 2011 15:12

I think it ended up being a purely dimensional issue. It seems like there was something about where the dimensional error was occurring (I was dividing) that caused the error. Regardless, all is resolved.

Thank you for your help.

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