[Paraview] XDMF and structured grid in cylindrical coordinates (curvilinear)
Nikolaos Beratlis
nikos.beratlis at gmail.com
Tue Mar 19 23:04:46 EDT 2013
I am using a 3D structured orthogonal grid in cylindrical coordinates. I
can read the grid as a cartesian grid using the following XDMF file by
specifying TopologyType "3DRectMesh" and GeometryType="VXVYVZ" (see
attached image):
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="2.0">
<Domain>
<Grid Name="mesh" GridType="Uniform">
<Topology TopologyType="3DRectMesh" NumberOfElements="10 4 6"/>
<Geometry GeometryType="VXVYVZ">
<DataItem Dimensions="6" NumberType="Float" Precision="4" Format="XML">
0.0 1.0 2.0 3.0 4.0 5.0
</DataItem>
<DataItem Dimensions="4" NumberType="Float" Precision="4" Format="XML">
0.0 1.5708 3.1415 4.7124
</DataItem>
<DataItem Dimensions="10" NumberType="Float" Precision="4" Format="XML">
0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0
</DataItem>
</Geometry>
</Grid>
</Domain>
</Xdmf>
When I try to read the grid as 3DSMesh which I think corresponds to
curvilinear Paraview crashes.
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="2.0">
<Domain>
<Grid Name="mesh" GridType="Uniform">
<Topology TopologyType="3DSMesh" NumberOfElements="10 4 6"/>
<Geometry GeometryType="VXVYVZ">
<DataItem Dimensions="6" NumberType="Float" Precision="4" Format="XML">
0.0 1.0 2.0 3.0 4.0 5.0
</DataItem>
<DataItem Dimensions="4" NumberType="Float" Precision="4" Format="XML">
0.0 1.5708 3.1415 4.7124
</DataItem>
<DataItem Dimensions="10" NumberType="Float" Precision="4" Format="XML">
0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0
</DataItem>
</Geometry>
</Grid>
</Domain>
</Xdmf>
Is there any way to read a 3D cylindrical grid using three 1D arrays for
the coordinates in each direction?
Thank you,
Nikos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130319/df1a8a1e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cartesian grid.png
Type: image/png
Size: 13094 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130319/df1a8a1e/attachment-0001.png>
More information about the ParaView
mailing list