separate .vtk files + OpenFOAM fields: synchronous time
Hi everyone,
I have a bunch of POLYDATA .vtk files that correspond to the time-steps (results) of a simulation. Is there a way to visualise the .vtk file set and the OpenFOAM solution at the same time? Right now, the time steps of the CFD solution are iterated and displayed, after which, the iterations start to loop over the .vtk files... and I need to see them all at the same time. Thanks! |
Unfortunately, legacy VTK files do not inherently support time evolution. One possible (although slightly tedious) approach is to modify the reader (either PVFoamReader or the in-built one in paraview) to additionally read in VTK files by index, so that they are read in-sync at each time-step - i.e., read file_001.vtk for time-step 1, etc. If you can get that to work, it would be quite handy indeed.
|
Thanks a lot for the advice! :)
I'll have to check this out soon, right now I'm viewing the data separately, because I'm concentrated on debugging the alg., but at some point I guess I will be needing this. I'll ask on the pview mailing list for advice on how to code this painlessly before I jump into it. |
Or other ways would be
* Read the .vtk files as time series and apply the temporal shift scale filter (if your timestep is constant) * To write a VTK-Python script that converts .vtk files to .vtp (XML polydata format) files and writes a .pvd file (metadata file that refers to the collection of .vtp files with time information). T |
Quote:
Thanks for the advice!:) |
All times are GMT -4. The time now is 21:33. |