Hello,
I have h5 format data in curvilinear coordinates (r, \theta, z) that I am trying to visualize in paraview. I am using the xdmf script available on this site for curvilinear coordinates: https://github.com/mvanmoer/HDF5_examples/blob/master/curvilineargrids/scalar/scalar.xdmf
I have successfully loaded the rectlinear data before using the scripts that the above github link provides. For the present case, the cylindrical coordinates, I am facing issues. After setting up everything, I get the following error: “H5Dread(): selection+offset not within extent.”
I have a field variable written in file continua_qt.h5 and then I have the coordinate info in the file coordinateNew.h5. The script i use to read these to load in paraview is:
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2003/XInclude" Version="2.2">
<Domain>
<Grid Name="rectilinear_scalar" GridType="Uniform">
<Topology TopologyType="3DSMesh" NumberOfElements="64 64 65" />
<Geometry GeometryType="XYZ">
<DataItem Name="coords" Dimensions="64 64 65 3" NumberType="Float" Precision="4" Format="HDF">
coordinatesNew.h5:/var
</DataItem>
</Geometry>
<Attribute Name="qt" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="64 64 65" NumberType="Float" Precision="4" Format="HDF">
continua_qt.h5:/var
</DataItem>
</Attribute>
</Grid>
</Domain>
</Xdmf>
The files are attached in the attached zip archive
files.zip (2.0 MB)
I would greatly appreciate it If you can take a look at my files and the script. The files I have shared are small for demo purposes and can be easily opened/loaded on a pc.