[Paraview] XDMF Time value problem

Jens Kleimann jk at tp4.rub.de
Fri Jul 6 08:56:47 EDT 2012


Greetings!

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" []>
<Xdmf Version="2.0">
 <Domain>
   <Grid Name="timetest_mesh">
     <Time Value="0.1" />
     <Topology TopologyType="3DCoRectMesh" Dimensions="3 2 2"/>
     <Geometry GeometryType="Origin_DxDyDz">
       <DataItem Dimensions="3"> 0.0 0.0 0.0 </DataItem>
       <DataItem Dimensions="3"> 0.1 0.2 0.3 </DataItem>
     </Geometry>
     <Attribute Name="numbers">
       <DataItem Dimensions="2 2 3">
	 4 3 4 3 1 2  0 0 1 2 3 4
       </DataItem>
     </Attribute>
   </Grid>
 </Domain>
</Xdmf>

"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].

Cheers, Jens.


More information about the ParaView mailing list