Fault reactivation: use values from GeoMech grid for stress.

No longer snapping to the fake well path along the border between the parts.
This commit is contained in:
Kristian Bendiksen
2024-01-31 21:20:08 +01:00
parent 9fea0853fd
commit 89f90ee9a9
4 changed files with 76 additions and 36 deletions

View File

@@ -114,6 +114,16 @@ double RimFaultReactivationDataAccessorPorePressure::valueAtPosition( const cvf:
auto [value, pos] =
RimFaultReactivationDataAccessorWellLogExtraction::calculatePorBar( intersections, values, position, m_defaultPorePressureGradient );
if ( pos.isUndefined() )
{
auto cellIdx = m_mainGrid->findReservoirCellIndexFromPoint( position );
if ( cellIdx != cvf::UNDEFINED_SIZE_T )
{
double valueFromEclipse = m_resultAccessor->cellScalar( cellIdx );
if ( !std::isinf( valueFromEclipse ) ) return RiaEclipseUnitTools::barToPascal( valueFromEclipse );
}
}
return RiaEclipseUnitTools::barToPascal( value );
}