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>