Hi all,
I want to use xdmf files to load temporal datas saved as raw data.
To get an example, I loaded my data into paraview and saved it as a .xmf file.
This file works fine but the geometry/topology part is repeated everywhere. As it’s doesn’t change in time, I’ll like to have a cleaner file with a single definition of the geometry/topology.
To have a template, I tried to check the “mesh static over time” at save but paraview crashes with this error message:
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
HDF5-DIAG: Error detected in HDF5 (1.10.5) thread 0:
#000: ../../src/H5S.c line 921 in H5Sget_simple_extent_ndims(): not a dataspace
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.5) thread 0:
#000: ../../src/H5S.c line 1013 in H5Sget_simple_extent_dims(): not a dataspace
major: Invalid arguments to routine
minor: Inappropriate type
Loguru caught a signal: SIGSEGV
Stack trace:
3 0x7ffc7c5da7c0 [0x7ffc7c5da7c0]
2 0x7ff573fcdde6 xdmf2::XdmfDataDesc::GetShapeAsString() + 70
1 0x7ff573fcb715 xdmf2::XdmfDataDesc::GetShape(long long*) + 85
0 0x7ff5a0458b50 /lib64/libc.so.6(+0x4eb50) [0x7ff5a0458b50]
( 19.580s) [paraview ] :0 FATL| Signal: SIGSEGV
Erreur de segmentation (core dumped)
I tried to manually change things in the .xmf file using xi:include, but paraview crashes with a segmentation core when I load the file
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2003/XInclude" Version="2.2">
<Domain>
<Geometry id="geom" GridType="Uniform">
<Topology TopologyType="3DCORECTMesh" Dimensions="51 41 31"/>
<Geometry GeometryType="ORIGIN_DXDYDZ">
<DataItem Name="Origin" Dimensions="3" NumberType="Float" Precision="4" Format="XML">
0 0 0
</DataItem>
<DataItem Name="Spacing" Dimensions="3" NumberType="Float" Precision="4" Format="XML">
2e-05 2e-05 2e-05
</DataItem>
</Geometry>
</Geometry>
<Grid Name="raw_data" GridType="Collection" CollectionType="Temporal">
<xi:include href="#geom" />
<Grid GridType="Uniform">
<Time TimeType="Single" Value="0"/>
<Attribute Name="TempTotal" Active="1" AttributeType="Scalar" Center="Cell">
<DataItem Dimensions="50 40 30" NumberType="Float" Precision="4" Format="HDF">raw_data.h5:/Block_0_t000000/Cell/TempTotal</DataItem>
</Attribute>
</Grid>
<Grid GridType="Uniform">
<Time TimeType="Single" Value="0.0015"/>
<Attribute Name="TempTotal" Active="1" AttributeType="Scalar" Center="Cell">
<DataItem Dimensions="50 40 30" NumberType="Float" Precision="4" Format="HDF">raw_data.h5:/Block_0_t0.0015/Cell/TempTotal</DataItem>
</Attribute>
</Grid>
<Grid GridType="Uniform">
<Time TimeType="Single" Value="0.003"/>
<Attribute Name="TempTotal" Active="1" AttributeType="Scalar" Center="Cell">
<DataItem Dimensions="50 40 30" NumberType="Float" Precision="4" Format="HDF">raw_data.h5:/Block_0_t00.003/Cell/TempTotal</DataItem>
</Attribute>
</Grid>
</Grid>
</Domain>
</Xdmf>
Here is the error received :
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
Test_regroup.xmf:17: element include: XInclude error : Invalid fragment identifier in URI Test_regroup.xmf#geom use the xpointer attribute
I also tried on a 5.12 version a get the same behavior.
If anyone know how to solve it, it would be great !
Thank you by advance for any help !
You’ll find a sample dataset attached.
Working_file.xmf (2.4 KB)
raw_data.h5 (711.1 KB)