CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] foamToEnsight & foamToVTK (https://www.cfd-online.com/Forums/openfoam-meshing/171339-foamtoensight-foamtovtk.html)

rupole1185 May 5, 2016 15:33

foamToEnsight & foamToVTK
 
Dear foamers,

here I am with few questions about mesh and data translation from OpenFOAM.
I would like to have VTK or Ensight files from my openfoam data, but none of the two readers above really satisfy me because:

1) foamToVTK creates multiple VTK files, each of which is readable by paraview. What is missing is the VTM file that connects multiple time/iterations in just one place

2) foamToEnsight works smoothly and also when I run the ens_checker everything seems ok. But when I open it with Paraview (v5.0.1) I jet "insufficient time values!!!" and then it crashes. I tried to edit the .case file many time but insuccesfully ..

Anyone has experienced something similar?

akidess May 7, 2016 05:46

1) If you run foamToVTK -time X:Y, then you will get resuts as BASENAME_COUNT.vtk. Paraview will recognize files with the same basename to belong together and let you load them in one go as BASENAME_....vtk.

2) foamToEnsight makes one .case file per time step. The Ensight Gold case file documentation is actually decent, if you have a look you should be able to create a case file for all your time steps. At the end of the case file you have a list of time values (e.g. 5.001, 5.002, 5.003, ...) which you are probably missing.

rupole1185 May 7, 2016 07:57

Yep. Thanks .. The trick with vtk files was really useful.

Regarding the case file instead I think I found a bug on paraview ... Because it can't handle what ensight can ... Should I add this to bug-trackibg system?

akidess May 9, 2016 02:18

Sure. Write to Paraview though, not OpenCFD.


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