[Paraview] Adding time averaged field to XDMF temporal collection

Guillaume Simon gsimon at lanl.gov
Thu Apr 25 21:28:50 EDT 2013


Hi,
I try to add a time averaged field to the XDMF reader of a temporal 
collection.
I done something like in the example below.
That work not to bad there is just a problem: for example looking at the 
value on the surface the field surface will not be collored property 
according to the color legend.
But the iso-surface will work and  be colored properly.
Please is somebody known where can come from this problem and how to fix it?
Cheers,
G

  
<?xml  version="1.0"  ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf  xmlns:xi="http://www.w3.org/2001/XInclude"  Version="2.0">
<Domain>
     <Topology  name="topo"  TopologyType="3DCoRectMesh"
         Dimensions="100 500 500">
     </Topology>
     <Geometry  name="geo"  Type="ORIGIN_DXDYDZ">
         <!-- Origin -->
         <DataItem  Format="XML"  Dimensions="3">
         0.0 0.0 0.0
         </DataItem>
         <!-- DxDyDz -->
         <DataItem  Format="XML"  Dimensions="3">
         1.0 1.0 1.0
         </DataItem>
     </Geometry>
  
    <Grid  Name="Avg"  GridType="Uniform">
             <Topology  Reference="/Xdmf/Domain/Topology[1]"/>
             <Geometry  Reference="/Xdmf/Domain/Geometry[1]"/>
             <Attribute  Name="UfAvg"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     UfAvg.bin
                 </DataItem>
             </Attribute>
     </Grid>

     <Grid  Name="TimeSeries"  GridType="Collection"  CollectionType="Temporal">
         <Time  TimeType="HyperSlab">
             <DataItem  Format="XML"  NumberType="Float"  Dimensions="3">
             0.0 1.0 2
             </DataItem>
         </Time>
  
         <Grid  Name="T1"  GridType="Uniform">
             <Topology  Reference="/Xdmf/Domain/Topology[1]"/>
             <Geometry  Reference="/Xdmf/Domain/Geometry[1]"/>
             <Attribute  Name="CLOUDf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     CLOUDf01.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="Pf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     Pf01.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="TCf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     TCf01.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="Uf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     Uf01.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="Vf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     Vf01.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="Wf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     Wf01.bin
                 </DataItem>
             </Attribute>
         </Grid>
  
         <Grid  Name="T2"  GridType="Uniform">
             <Topology  Reference="/Xdmf/Domain/Topology[1]"/>
             <Geometry  Reference="/Xdmf/Domain/Geometry[1]"/>
             <Attribute  Name="CLOUDf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     CLOUDf02.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="Pf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     Pf02.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="TCf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     TCf02.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="Uf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     Uf02.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="Vf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     Vf02.bin
                 </DataItem>
             </Attribute>
             <Attribute  Name="Wf"  Center="Node">
                 <DataItem  Format="Binary"  
                  DataType="Float"  Precision="4"  Endian="Big"
                  Dimensions="100 500 500">
                     Wf02.bin
                 </DataItem>
             </Attribute>
         </Grid>
  
     </Grid>
</Domain>
</Xdmf>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130425/4b562d82/attachment-0001.htm>


More information about the ParaView mailing list