mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
OPM Flow writes each symmetric tensor as three cell arrays "stress[0]", "stress[1]", "stress[2]", the rows (Si1, Si2, Si3). The reader took "stress[0]" as (S11, S22, S33) and "stress[1]" as (S12, S13, S23), so S22, S33 and S13 held the wrong components and "stress[2]" was ignored. Read the upper triangle from the three rows. Coordinates are imported with z negated; S13/S23 and E13/E23 now change sign with it, as U3 already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.8 KiB
XML
50 lines
1.8 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.1 0.2 0.3 0.1 0.2 0.3 0.1 0.2 0.3
|
|
0.1 0.2 0.3 0.1 0.2 0.3 0.1 0.2 0.3
|
|
0.1 0.2 0.3 0.1 0.2 0.3 0.1 0.2 0.3
|
|
0.1 0.2 0.3 0.1 0.2 0.3 0.1 0.2 0.3
|
|
</DataArray>
|
|
</PointData>
|
|
<CellData>
|
|
<DataArray type="Float32" Name="Stress" NumberOfComponents="1" format="ascii">
|
|
150.0 250.0
|
|
</DataArray>
|
|
<DataArray type="Float32" Name="stress[0]" NumberOfComponents="3" format="ascii">
|
|
11 12 13 111 112 113
|
|
</DataArray>
|
|
<DataArray type="Float32" Name="stress[1]" NumberOfComponents="3" format="ascii">
|
|
12 22 23 112 122 123
|
|
</DataArray>
|
|
<DataArray type="Float32" Name="stress[2]" NumberOfComponents="3" format="ascii">
|
|
13 23 33 113 123 133
|
|
</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>
|