Fault reactivation: compute and export stress.

This commit is contained in:
Kristian Bendiksen committed 2023-11-27 15:42:47 +01:00
1 parent 9a78e69d52
commit ef90a698b4
20 files changed
+398 -30

No files matched your search

@@ -117,15 +117,26 @@ double RimWellIADataAccess::interpolatedResultValue( QString fieldNa
{
RigFemResultAddress address( resultType, fieldName.toStdString(), componentName.toStdString() );
RigFemPart* femPart = m_caseData->femParts()->part( 0 );
const std::vector<float>& scalarResults = m_caseData->femPartResults()->resultValues( address, 0, timeStep, frameId );
return interpolatedResultValue( femPart, scalarResults, resultType, position );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RimWellIADataAccess::interpolatedResultValue( const RigFemPart* femPart,
const std::vector<float>& scalarResults,
RigFemResultPosEnum resultType,
const cvf::Vec3d& position )
{
int elmIdx = elementIndex( position );
RigFemPart* femPart = m_caseData->femParts()->part( 0 );
RigElementType elmType = femPart->elementType( elmIdx );
const int* elementConn = femPart->connectivities( elmIdx );
int elmNodeCount = RigFemTypes::elementNodeCount( elmType );
const std::vector<float>& scalarResults = m_caseData->femPartResults()->resultValues( address, 0, timeStep, frameId );
std::array<double, 8> nodeResults;
std::array<cvf::Vec3d, 8> nodeCorners;
@@ -28,6 +28,7 @@
class RimGeoMechCase;
class RigGeoMechCaseData;
class RigFemPart;
//==================================================================================================
///
@@ -49,6 +50,11 @@ public:
int timeStep,
int frameId );
double interpolatedResultValue( const RigFemPart* femPart,
const std::vector<float>& scalarResults,
RigFemResultPosEnum resultType,
const cvf::Vec3d& position );
private:
RimGeoMechCase* m_case;
RigGeoMechCaseData* m_caseData;