[Paraview] Help with reading vectors from XDMF
Nikolaos Beratlis
nikos.beratlis at gmail.com
Tue Aug 20 12:39:27 EDT 2013
I want to read a XDMF file with an orthogonal structured grid and a vector
attribute. I have the following example file:
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2003/XInclude" Version="2.2">
<Information Name="MetaData" Value="ID-23454"/>
<Domain>
<Grid Name="Eulerian Grid" GridType="Uniform">
<Topology TopologyType="3DRectMesh" NumberOfElements=" 1 2
2"/>
<Geometry GeometryType="VXVYVZ">
<DataItem Dimensions="2" NumberType="Float" Format="XML">
0.0 1.0
</DataItem>
<DataItem Dimensions="2" NumberType="Float" Format="XML">
0.0 1.0
</DataItem>
<DataItem Dimensions="1" NumberType="Float" Format="XML">
0.0
</DataItem>
</Geometry>
<Attribute Name="Velocity" AttributeType="Vector" Center="Cell">
<DataItem Dimensions=" 1 2 2 3" Function="JOIN($0, $1, $2)"
ItemType="Function">
<DataItem Dimensions="1 2 2" NumberType="Float" Format="XML">
1.0 -1.0 1.0 -1.0
</DataItem>
<DataItem Dimensions="1 2 2" NumberType="Float" Format="XML">
1.0 -1.0 1.0 -1.0
</DataItem>
<DataItem Dimensions="1 2 2" NumberType="Float" Format="XML">
0.0 0.0 0.0 0.0
</DataItem>
</DataItem>
</Attribute>
</Grid>
</Domain>
</Xdmf>
However Paraview reads it wrong, the values of the velocity in the
information window range from -1e+299 to 1e299. Where is the mistake that
causes Paraview to read the wrong values?
Thank you,
Nikos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130820/03ed1cd8/attachment.htm>
More information about the ParaView
mailing list