Files
ResInsight/ApplicationLibCode/UnitTests/TestData/RifVtkReader/partial-00000.vtu
T
Kristian Bendiksen 5fa48d6e60 VTK GeoMech: handle partial stress/strain tensor rows
List only the S_VTK/E_VTK components that have data, and require the
complete tensor for the derived S/E results. Guard against too few
values in the tensor rows. Add tests for strain and partial data.
2026-10-24 13:59:38 +02:00

50 lines
1.7 KiB
XML

<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="2" NumberOfPoints="12">
<PointData>
<DataArray type="Float32" Name="disp" NumberOfComponents="3" format="ascii">
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
</DataArray>
</PointData>
<CellData>
<DataArray type="Float32" Name="Stress" NumberOfComponents="1" format="ascii">
100.0 200.0
</DataArray>
<DataArray type="Float32" Name="stress[0]" NumberOfComponents="3" format="ascii">
11 12 13 111 112 113
</DataArray>
<DataArray type="Float32" Name="strain[1]" NumberOfComponents="3" format="ascii">
0.12 0.22 0.23 1.12 1.22 1.23
</DataArray>
<DataArray type="Float32" Name="strain[2]" NumberOfComponents="3" format="ascii">
0.13 0.23 0.33 1.13 1.23 1.33
</DataArray>
</CellData>
<Points>
<DataArray type="Float32" Name="Coordinates" NumberOfComponents="3" format="ascii">
0 0 0 1 0 0 2 0 0
0 1 0 1 1 0 2 1 0
0 0 1 1 0 1 2 0 1
0 1 1 1 1 1 2 1 1
</DataArray>
</Points>
<Cells>
<DataArray type="Int32" Name="connectivity" NumberOfComponents="1" format="ascii">
0 1 4 3 6 7 10 9
1 2 5 4 7 8 11 10
</DataArray>
<DataArray type="Int32" Name="offsets" NumberOfComponents="1" format="ascii">
8 16
</DataArray>
<DataArray type="UInt8" Name="types" NumberOfComponents="1" format="ascii">
12 12
</DataArray>
</Cells>
</Piece>
</UnstructuredGrid>
</VTKFile>