Page 1 of 1

Visualizing OpenFOAM VTK files in GiD

Posted: Wed Jul 22, 2015 10:27 am
by Hosam
Hi,

We have VTK results generated by OpenFOAM and want to use GiD for post-processing. Is this possible?

Thanks!
Hosam

Re: Visualizing OpenFOAM VTK files in GiD

Posted: Wed Jul 22, 2015 10:49 am
by escolano
Go to postprocess and use Files->Import->Vtk...

Re: Visualizing OpenFOAM VTK files in GiD

Posted: Wed Jul 22, 2015 11:27 am
by Hosam
Thanks!

Re: Visualizing OpenFOAM VTK files in GiD

Posted: Wed Jul 22, 2015 11:39 am
by Hosam
escolano wrote:Go to postprocess and use Files->Import->Vtk...
It worked for only one vtk file at a time. Is it possible to visualize a series of VTK files (each one corresponding to a time step), for example:
sim_0.vtk
sim_1.vtk
sim_2.vtk
sim_3.vtk
sim_4.vtk
sim_5.vtk
sim_6.vtk
sim_7.vtk
sim_8.vtk
sim_9.vtk
.
.


to generate an animation for example, or a graph over time?

Thanks,
Hosam

Re: Visualizing OpenFOAM VTK files in GiD

Posted: Wed Jul 22, 2015 12:12 pm
by escolano
the dialog window of Files->Import->Vtk... allow the selection of multiple files,
select all vtk files: sim_XX.vtk

The time step will be obtained from XX (Vtk unfortunatelly doesn't support the concept of time step, and this value is codified as a trick in the filenames)

Then you will have in GiD a results along the time and you could do animations, show graphs along the time, etc.

Re: Visualizing OpenFOAM VTK files in GiD

Posted: Thu Jul 23, 2015 9:50 am
by Hosam
It worked. Thanks!