mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2615 Compaction. Fixed compaction calculation expression
This commit is contained in:
parent
c2c7671b2e
commit
d44ffbc1b5
@ -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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user