mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user