mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
Fault reactivation: compute and export stress.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user