[Paraview] [EXTERNAL] Help with reading vectors from XDMF

Scott, W Alan wascott at sandia.gov
Tue Aug 20 19:12:48 EDT 2013


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: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Nikolaos Beratlis
Sent: Tuesday, August 20, 2013 10:39 AM
To: paraview at paraview.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130820/700b7c68/attachment-0001.htm>


More information about the ParaView mailing list