Nicolaos, I don't know what you did wrong, but here is a file that works. Alan
<?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-node-scalar" AttributeType="Scalar" Center="Node"> <DataItem Dimensions="1 2 2" NumberType="Float"> 1.0 -1.0 1.0 -1.0 </DataItem> </Attribute> <Attribute Name="Velocity-cell-scalar" AttributeType="Scalar" Center="Cell"> <DataItem Dimensions="1" NumberType="Float"> 2.0 </DataItem> </Attribute> <Attribute Name="Velocity-vector" AttributeType="Vector" Center="Node"> <DataItem Dimensions="1 2 2 3" NumberType="Float"> 1.0 -1.0 1.0 -1.0 1.0 2.0 3.0 4.0 1.0 -2.0 3.0 -4.0 </DataItem> </Attribute> </Grid> </Domain> </Xdmf> From: [email protected] [mailto:[email protected]] On Behalf Of Nikolaos Beratlis Sent: Tuesday, August 20, 2013 10:39 AM To: [email protected] Subject: [EXTERNAL] [Paraview] Help with reading vectors from XDMF 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
_______________________________________________ Powered by 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
