[vtkusers] multiblock time series file writing
Gerrick Bivins
Gerrick.Bivins at halliburton.com
Tue May 14 08:33:05 EDT 2013
Hi Berk,
Basically, I'm trying to visualize time varying data in a VTK application (ie not in Paraview).
I have pipelines setup to take a source/reader and then update the pipeline executive for a user specified time.
I was hoping to avoid writing a custom reader for this because the application is in Java. I've done this
in the past but it I ended up having to maintain two versions of a translator for the same file type, one in pure java for static data (and legacy reasons)
and a temporal version which was native and then wrapped using JNI.
It worked but was obviously not optimal. Because my data is in VTK format, this time,I was hoping there were some existing API's (readers)
I could leverage to handle the time varying aspect of my data and yesterday this looked very promising.
The approach you mentioned sounds like what I've found "googling" but it requires readers defined in ParaView or
loading my data into ParaView, via vtkFileSeriesReader<http://www.paraview.org/ParaView3/Doc/Nightly/html/classvtkFileSeriesReader.html#details> for example or the .pvd ,vtkXMLCollectionReader approach.
Are there any plans to pull these type readers into VTK?
What are your suggestions here?
Gerrick
From: Berk Geveci [mailto:berk.geveci at kitware.com]
Sent: Monday, May 13, 2013 7:30 PM
To: Gerrick Bivins
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] multiblock time series file writing
Hi Gerrick,
The time support that is in the single dataset XML writers was never extended to support multi-block dataset. There are several ways of doing what you want. The simplest would be to write out a time series (1 vtm file per time step) and then use a reader that can handle that. Before I get into more details, what are you trying to accomplish? What will you do with the time series?
-berk
On Mon, May 13, 2013 at 5:33 PM, Gerrick Bivins <Gerrick.Bivins at halliburton.com<mailto:Gerrick.Bivins at halliburton.com>> wrote:
Hi All,
After seeing a post this morning about "Seperation of <Points> and <Cells> datablock from UnstructuredGrid (.vtu) files<http://vtk.1045678.n5.nabble.com/Separation-of-lt-Points-gt-and-lt-Cells-gt-datablocks-from-Unstructured-Grid-vtu-files-td5720669.html>",
I thought it might be possible to use this to write out MultiBlock/Composite files temporally . Unfortunately, it looks like the settings
from the root CompositeDataWriter aren't passed to the data writers for the leaves. It also seems to ignore putting the
"TimeValues" type information in the meta file (root xml file for the multiblock dataset).
For the leaves, the settings issue causes problems with the writing of those blocks:
1)Time information is not present
2) written files are invalid xml as the file begins with a broken offset tag something like:
offset="6468764"0"?>
Issue 2 can be seen by simply attempting to write out an xml multiblock file.
I worked around it by setting the code writer to Binary mode explicitly.
Are these bugs or known limitations of multiblock format?
Gerrick
________________________________
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130514/a9345a78/attachment.htm>
More information about the vtkusers
mailing list