[Paraview] time series with Xdmf-Files

Eric E. Monson emonson at cs.duke.edu
Mon Nov 10 09:38:31 EST 2008


Hello Natalie,

I don't know if this will be helpful (since you already have all of  
those XMF files), but the standard way of doing the time animation  
with Xdmf and ParaView is to have all of the time steps in one XMF  
file as a "temporal collection". Each time step in the file could  
refer to a separate HDF5 file for its data. There are ways of enabling  
animation for a series of files using a time-unaware reader in  
ParaView, but I think it would be easier to write a script to combine  
all of your XMF files together into the time-aware format that is  
supported by Xdmf.

I'll put an example below.
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group

==================
<Xdmf>
	<Domain Name="MSI">
		<Grid Name="CellTime" GridType="Collection" CollectionType="Temporal">

			<Grid Name="Cells" GridType="Uniform">
				<Time Value="0.00" />
				<Topology TopologyType="Polyvertex" NodesPerElement="100">
				</Topology>
				<Geometry GeometryType="XYZ">
					<DataItem DataType="Float" Dimensions="100 3" Format="HDF">
						fiber_run3.h5:/iter00/cells/position
					</DataItem>
				</Geometry>
				<Attribute AttributeType="Scalar" Center="Node" Name="CellType">
					<DataItem DataType="Int" Dimensions="100 1" Format="HDF">
						fiber_run3.h5:/iter00/cells/numtype
					</DataItem>
				</Attribute>
			</Grid>

			<Grid Name="Cells" GridType="Uniform">
				<Time Value="0.01" />
				<Topology TopologyType="Polyvertex" NodesPerElement="100">
				</Topology>
				<Geometry GeometryType="XYZ">
					<DataItem DataType="Float" Dimensions="100 3" Format="HDF">
						fiber_run3.h5:/iter01/cells/position
					</DataItem>
				</Geometry>
				<Attribute AttributeType="Scalar" Center="Node" Name="CellType">
					<DataItem DataType="Int" Dimensions="100 1" Format="HDF">
						fiber_run3.h5:/iter01/cells/numtype
					</DataItem>
				</Attribute>
			</Grid>

			<Grid Name="Cells" GridType="Uniform">
				<Time Value="0.02" />
				<Topology TopologyType="Polyvertex" NodesPerElement="100">
				</Topology>
				<Geometry GeometryType="XYZ">
					<DataItem DataType="Float" Dimensions="100 3" Format="HDF">
						fiber_run3.h5:/iter02/cells/position
					</DataItem>
				</Geometry>
				<Attribute AttributeType="Scalar" Center="Node" Name="CellType">
					<DataItem DataType="Int" Dimensions="100 1" Format="HDF">
						fiber_run3.h5:/iter02/cells/numtype
					</DataItem>
				</Attribute>
			</Grid>

		</Grid>
	</Domain>
</Xdmf>


On Nov 10, 2008, at 5:34 AM, Natalie Happenhofer wrote:

> Hi!
> I have a lot of Xdmf - Files which I would like to animate as a  
> video in paraview. For every Time Step I have a separate .xmf -File  
> and a corresponding .h5 file. Does anyone know how to do that?
>
> thx a lot,
> NH
>
> Express yourself instantly with MSN Messenger! MSN  
> Messenger_______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081110/9bb8b1ec/attachment.htm>


More information about the ParaView mailing list