mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2118 Fracture : Improve detection of Stimplan cell intersected by well path
This commit is contained in:
parent
d277a08d29
commit
7a10087c01
@ -188,10 +188,12 @@ cvf::ref<RigFractureGrid> RigStimPlanFractureDefinition::createFractureGrid(int
|
||||
stimPlanCell.setConductivityValue(cvf::UNDEFINED_DOUBLE);
|
||||
}
|
||||
|
||||
// The well path is intersecting the fracture at origo in the fracture coordinate system
|
||||
// Find the Stimplan cell where the well path is intersecting
|
||||
|
||||
if ( cellPolygon[0].x() < 0.0 && cellPolygon[1].x() > 0.0 )
|
||||
if ( cellPolygon[0].x() <= 0.0 && cellPolygon[1].x() >= 0.0 )
|
||||
{
|
||||
if ( cellPolygon[1].y() > 0.0 && cellPolygon[2].y() < 0.0 )
|
||||
if ( cellPolygon[1].y() >= 0.0 && cellPolygon[2].y() <= 0.0 )
|
||||
{
|
||||
wellCenterStimPlanCellIJ = std::make_pair(stimPlanCell.getI(), stimPlanCell.getJ());
|
||||
RiaLogging::debug(QString("Setting wellCenterStimPlanCell at cell %1, %2").
|
||||
|
Loading…
Reference in New Issue
Block a user