[Paraview] [Xdmf] XDMF Time value problem
tim.gallagher at gatech.edu
Fri Jul 6 09:07:08 EDT 2012
We've never had any luck getting time series with XDMF to work correctly in Paraview.
However, we create animations all the time. Using the python trace feature, we set up the image using one of the files from the dataset. Then we modify the generated trace file slightly (make it so it's a function that takes in the file number we want, and delete the pipeline at the end so it doesn't blow up memory) and then create the frames through a python driver script.
It's actually very simple and can be done in parallel with either multiple processors generating an image or multiple images being generated simultaneously.
----- Original Message -----
From: "Jens Kleimann" <jk at tp4.rub.de>
To: xdmf at lists.kitware.com, paraview at paraview.org
Sent: Friday, July 6, 2012 8:56:47 AM
Subject: [Xdmf] XDMF Time value problem
I have a collection of XDMF files, each of which contains the state of my simulation at a single instant of time. The goal is to read them into Paraview all at once, and then generate an animation with time as a parameter using the green arrow buttons. Unfortunately, I am having much trouble getting this to work.
A simplified version of my set of files (just XML, no HDF involved to demonstrate the idea and the problem) goes like this: File "timetest_1.xmf" reads:
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" >
<Time Value="0.1" />
<Topology TopologyType="3DCoRectMesh" Dimensions="3 2 2"/>
<DataItem Dimensions="3"> 0.0 0.0 0.0 </DataItem>
<DataItem Dimensions="3"> 0.1 0.2 0.3 </DataItem>
<DataItem Dimensions="2 2 3">
4 3 4 3 1 2 0 0 1 2 3 4
"timetest_2.xmf" looks the same except that the time value is "0.2" and the values in the "numbers" attribute are chosen to be a bit different, and similarly for "timetest_3.xmf". I can load the whole set as "timetest_..xmf" into PV (3.14 64bit Linux, if that should matter), but when I hit play, the time runs from 0.1 to 1 in steps of 0.1 but only showing data from the very first file. The last number field in the animation toolbar never shows anything else than 0. The "Time" information field gives the correct (initial!) time value but an "index" of 0, also when loading the files individually.
Does anyone have a clue what I am doing wrong? Creating animations from my simulation is essential to my application of PV, so I'd be great if someone could have a look at this. For a quick test, the mentioned set of files can be obtained from [http://www.tp4.rub.de/~jk/temp/xdmf_timetest.zip].
Xdmf mailing list
Xdmf at lists.kitware.com
More information about the ParaView