CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   foamToVTK (http://www.cfd-online.com/Forums/openfoam-post-processing/75791-foamtovtk.html)

sameer_kumar May 5, 2010 06:29

foamToVTK
 
Dear foamers,

I am getting following error at the time of converting from foamToVTK at the time of writing 40th iteration.

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-53b7f692aa41
Exec : foamToVTK
Date : May 05 2010
Time : 23:37:32
Host : localhost.localdomain
PID : 9524
Case : /home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Time: 0
volScalarFields : p nut k epsilon nuTilda
volVectorFields : U
volSymmTensorFields : R

Internal : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/couplermodified_0.vtk"
Original cells:1039528 points:222710 Additional cells:8 additional points:4

Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/FEMALE_DESIGN/FEMALE_DESIGN_0.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/COUPLER/COUPLER_0.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/INLET/INLET_0.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/OUTLET/OUTLET_0.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/FM_PIN/FM_PIN_0.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/M_PIN/M_PIN_0.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/MALE_DESIGN/MALE_DESIGN_0.vtk"
FaceZone : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/int_FLUID/int_FLUID_0.vtk"
Time: 20
volScalarFields : p nut k epsilon
volVectorFields : U

Internal : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/couplermodified_20.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/FEMALE_DESIGN/FEMALE_DESIGN_20.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/COUPLER/COUPLER_20.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/INLET/INLET_20.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/OUTLET/OUTLET_20.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/FM_PIN/FM_PIN_20.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/M_PIN/M_PIN_20.vtk"
Patch : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/MALE_DESIGN/MALE_DESIGN_20.vtk"
FaceZone : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/int_FLUID/int_FLUID_20.vtk"
Time: 40
volScalarFields : p nut k epsilon
volVectorFields : U

Internal : "/home/user/OpenFOAM/OpenFOAM-1.6/run/tutorials/incompressible/simpleFoam/couplervtkfiles/couplermodified/VTK/couplermodified_40.vtk"
#0 Foam::error::printStack(Foam::Ostream&) in "/home/user/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigFpe::sigFpeHandler(int) in "/home/user/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted:
#3 Foam::writeFuns::insert(double const&, Foam::DynamicList<float, 0u, 2u, 1u>&) in "/home/user/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/foamToVTK"
#4 void Foam::writeFuns::write<double>(std::ostream&, bool, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::vtkMesh const&) in "/home/user/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/foamToVTK"
#5 main in "/home/user/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/foamToVTK"
#6 __libc_start_main in "/lib/libc.so.6"
#7 _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122
Floating point exception

Please give suggestions to overcome this problem.

Regards,
Sam

wyldckat May 6, 2010 21:17

Greetings Sam and welcome to the forum!

Probably at that iteration, infinite or undefined values or even NaN (Not-A-Number) values where found on the results, but it was unable to write those out-of-bound values. You could try using:
Code:

foamToVTK -ascii
but while it might not crash with foamToVTK, Paraview on the other hand might not like seeing something like "-1#INF" in the file "40.vtk".

Check the residues of your run to see if there are any alarming values, like residues in the order of 1e+300, for that same iteration.

If you are basing yourself on an existing tutorial case from OpenFOAM 1.6, I suggest that you get the 1.6.x version; no need to build it, just get it to check the same tutorial you've based on. I say this, because the motorBike case in OpenFOAM 1.6 diverges around iteration 300, while the 1.6.x motorBike version doesn't diverge, using the same simpleFoam solver from 1.6!

Best regards,
Bruno


All times are GMT -4. The time now is 19:55.