mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fault Reactivation: Export stress with negative sign.
Expected by Abaqus.
This commit is contained in:
parent
bd085617e4
commit
926a9ac850
@ -91,14 +91,14 @@ double RimFaultReactivationDataAccessorStress::valueAtPosition( const cvf::Vec3d
|
|||||||
auto [porBar, extractionPos] = calculatePorBar( topPosition, m_gradient, gridPart );
|
auto [porBar, extractionPos] = calculatePorBar( topPosition, m_gradient, gridPart );
|
||||||
if ( std::isinf( porBar ) ) return porBar;
|
if ( std::isinf( porBar ) ) return porBar;
|
||||||
double s33 = extractStressValue( StressType::S33, extractionPos, gridPart );
|
double s33 = extractStressValue( StressType::S33, extractionPos, gridPart );
|
||||||
return RiaEclipseUnitTools::barToPascal( s33 - porBar );
|
return -RiaEclipseUnitTools::barToPascal( s33 - porBar );
|
||||||
}
|
}
|
||||||
else if ( m_property == RimFaultReactivation::Property::StressBottom )
|
else if ( m_property == RimFaultReactivation::Property::StressBottom )
|
||||||
{
|
{
|
||||||
auto [porBar, extractionPos] = calculatePorBar( bottomPosition, m_gradient, gridPart );
|
auto [porBar, extractionPos] = calculatePorBar( bottomPosition, m_gradient, gridPart );
|
||||||
if ( std::isinf( porBar ) ) return porBar;
|
if ( std::isinf( porBar ) ) return porBar;
|
||||||
double s33 = extractStressValue( StressType::S33, extractionPos, gridPart );
|
double s33 = extractStressValue( StressType::S33, extractionPos, gridPart );
|
||||||
return RiaEclipseUnitTools::barToPascal( s33 - porBar );
|
return -RiaEclipseUnitTools::barToPascal( s33 - porBar );
|
||||||
}
|
}
|
||||||
else if ( m_property == RimFaultReactivation::Property::DepthTop )
|
else if ( m_property == RimFaultReactivation::Property::DepthTop )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user