[Paraview] order of components XDMF tensors paraview

Felipe Bordeu felipe.bordeu at ec-nantes.fr
Fri Oct 8 12:29:03 EDT 2010


with this exemple you can find the correct order.

for tensor6 the order is 0 1 2 1 3 4 2 4 5 so like in a matrix
0 1 2
1 3 4
2 4 6

I am pretty sure that for tensor the order is  0 1 2 3 4 5 6 7 8
0 1 2
3 4 5
6 7 8

but you have to check

<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="2.0" xmlns:xi="http://www.w3.org/2001/XInclude" >
<Domain Name="ASCII.xdmf">
<Grid Name="Domain 1x1x1" >
<Topology TopologyType="Quadrilateral" NumberOfElements="1" >
<DataItem  Format="XML" NumberType="int" Dimensions="1 6">
  0 1 2 3
</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem  Format="XML" NumberType="Float" Dimensions="6 3">
  0. 0. 0.
  1. 0. 0.
  1. 1. 0.
  0. 1. 0.
</DataItem>
</Geometry>
<Attribute Name="tensor6" Center="Cell"  AttributeType="Tensor6" >
<DataItem  Format="XML" NumberType="Float" Dimensions="1 6">
  0.0000000000000000  1.0000000000000000 2.0000000000000000 
3.0000000000000000 4.0000000000000000 5.0000000000000000
</DataItem>
</Attribute>
<Attribute Name="tensor" Center="Cell"  AttributeType="Tensor" >
<DataItem  Format="XML" NumberType="Float" Dimensions="1 9">
  0.0000000000000000 1 2 3 4 5 6 7 8
</DataItem>
</Attribute>
</Grid>
</Domain>
</Xdmf>

Felipe

On 08/10/2010 17:55, Dan Lussier wrote:
> I have taken to building my vectors in XDMF using the following XML:
>
> <  ---- BUNCH OF SETUP XML>
>
>
> <Attribute Type="Vector" Center="Node" Name="force">
>        <DataItem ItemType="Function" Function="JOIN($0, $1, $2)"
> Dimensions="4000 3">
>                  <DataItem Name="fx" Format="HDF" DataType="Float"
> Dimensions="4000">
>                          test.h5:/fx
>                  </DataItem>
>                  <DataItem Name="fy" Format="HDF" DataType="Float"
> Dimensions="4000">
>                          test.h5:/fy
>                  </DataItem>
>                  <DataItem Name="fz" Format="HDF" DataType="Float"
> Dimensions="4000">
>                        test.h5:/fz
>                </DataItem>
>        </DataItem>
> </Attribute>
>
> So, for cartesian tensors, this is the usual (x,y,z) ordering mapped
> to (comp0, comp1, comp2)
>
> In the case of both symmetric tensors (Type=Tensor6) and non-symmetric
> tensors (Type=Tensor), what ordering should I use?  This type of
> information is not on the XDMF website and I wasn't able to figure it
> out via playing around with visual representation of mock tensors in
> PV itself.
>
> Thanks so much.
>
> Dan
> _______________________________________________
> 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
>    


-- 

Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
Felipe.Bordeu at ec-nantes.fr
Intitut GeM - UMR CNRS 6183
École Centrale de Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------



More information about the ParaView mailing list