|
[Sponsors] |
separate .vtk files + OpenFOAM fields: synchronous time |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 18, 2011, 10:45 |
separate .vtk files + OpenFOAM fields: synchronous time
|
#1 |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
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! |
|
November 18, 2011, 13:48 |
|
#2 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
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.
|
|
November 21, 2011, 04:33 |
|
#3 |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
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. |
|
November 21, 2011, 07:16 |
|
#4 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
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 |
|
November 21, 2011, 10:34 |
|
#5 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
Thanks for the advice! |
||
Tags |
paraview, postprocessing, simultaneous, vtk files |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple floating objects | CKH | OpenFOAM Running, Solving & CFD | 14 | February 20, 2019 10:08 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 11:46 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |