mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#2615 Compaction. Fixed compaction calculation expression
This commit is contained in:
1 parent
c2c7671b2e
commit
d44ffbc1b5
1 file changed
+5
-1
@@ -1490,7 +1490,11 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::calculateCompactionValues
|
||||
}
|
||||
}
|
||||
|
||||
compactionFrame[n] = u3Frames->frameData(t)[closestRefNodeIdx] - u3Frames->frameData(t)[n];
|
||||
cvf::Vec3f currentNodeCoord = part->nodes().coordinates[n];
|
||||
if(currentNodeCoord.z() >= refElement.intersectionPoint.z())
|
||||
compactionFrame[n] = -(u3Frames->frameData(t)[n] - u3Frames->frameData(t)[closestRefNodeIdx]);
|
||||
else
|
||||
compactionFrame[n] = -(u3Frames->frameData(t)[closestRefNodeIdx] - u3Frames->frameData(t)[n]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user