Dear Paraview developers,
I am trying to generate Finite Element results in the XDMF format (share mesh over time series data). To evaluate my results I heavily rely on cell sets to process the data of specific regions. To that end I tried to include a “Set” section in the XDMF-file which “lives” also in the original shared mesh to hopefully be available for every time data element. However, when I import the XDMF-file Paraview crashes without any warnings.
Here is the minimal example file:
<Xdmf xmlns:ns0="http://www.w3.org/2003/XInclude" Version="3.0">
<Domain>
<Grid Name="mesh" GridType="Uniform">
<Geometry GeometryType="XY">
<DataItem DataType="Float" Dimensions="8 2" Format="XML">
0.0000000000000000e+00 0.0000000000000000e+00
1.0000000000000000e+00 0.0000000000000000e+00
2.0000000000000000e+00 5.0000000000000000e-01
1.0000000000000000e+00 1.0000000000000000e+00
0.0000000000000000e+00 1.0000000000000000e+00
-1.0000000000000000e+00 1.0000000000000000e+00
-2.0000000000000000e+00 5.0000000000000000e-01
-1.0000000000000000e+00 0.0000000000000000e+00
</DataItem>
</Geometry>
<Topology TopologyType="Mixed" NumberOfElements="4">
<DataItem DataType="Int" Dimensions="18" Format="XML">
5 0 1 3 4
5 0 4 5 7
4 1 2 3
4 5 6 7
</DataItem>
</Topology>
<Attribute Name="ELE SETS" Center="Cell" AttributeType="Matrix">
<DataItem Format="XML" Dimensions="4 5">
1 0 1 0 1
1 0 0 1 1
0 1 0 1 1
0 1 1 0 1
</DataItem>
</Attribute>
<Set Name="Quads" SetType="Cell">
<DataItem Format="XML" Dimensions="2" >
0 1
</DataItem>
<Attribute Name="Example" Center="Cell">
<DataItem Format="XML" Dimensions="2" >
0 0
</DataItem>
</Attribute>
</Set>
<Set Name="Tris" SetType="Cell">
<DataItem Format="XML" Dimensions="2" >
2 3
</DataItem>
<Attribute Name="Example" Center="Cell">
<DataItem Format="XML" Dimensions="2" >
1 1
</DataItem>
</Attribute>
</Set>
<Set Name="All" SetType="Cell">
<DataItem Format="XML" Dimensions="4" >
0 1 2 3
</DataItem>
<Attribute Name="Example" Center="Cell">
<DataItem Format="XML" Dimensions="4" >
0 0 0 0
</DataItem>
</Attribute>
</Set>
</Grid>
<Grid Name="TimeSeries_meshio" GridType="Collection" CollectionType="Temporal">
<Grid>
<ns0:include xpointer="xpointer(//Grid[@Name="mesh"]/*[self::Topology or self::Geometry])" />
<Time Value="0.0" />
<Attribute Name="phi" AttributeType="Scalar" Center="Cell">
<DataItem DataType="Int" Dimensions="4" Format="XML" Precision="8">
1
2
3
4
</DataItem>
</Attribute>
</Grid>
<Grid>
<ns0:include xpointer="xpointer(//Grid[@Name="mesh"]/*[self::Topology or self::Geometry])" />
<Time Value="0.1" />
<Attribute Name="phi" AttributeType="Scalar" Center="Cell">
<DataItem DataType="Float" Dimensions="4" Format="XML" Precision="8">
5.0000000000000000e-01
8.0000000000000004e-01
1.2000000000000000e+00
2.2e+00
</DataItem>
</Attribute>
</Grid>
</Grid>
</Domain>
</Xdmf>
I would be grateful for any help.