#1618 Fixing bug in well path angle calculation + corresponding update to fracture azimuth angle. Calculating difference between well path and fracture angle and displaying warning if less than 10 deg.

This commit is contained in:
astridkbjorke
2017-06-27 14:11:55 +02:00
parent 2501264013
commit 2625ce6ea9
6 changed files with 58 additions and 15 deletions

View File

@@ -98,11 +98,11 @@ void RimWellPathFracture::updateAzimuthFromFractureTemplate()
double wellPathAzimuth = wellAzimuthAtFracturePosition();
if (orientation == RimFractureTemplate::TRANSVERSE_WELL_PATH)
if (orientation == RimFractureTemplate::ALONG_WELL_PATH)
{
azimuth = wellPathAzimuth;
}
if (orientation == RimFractureTemplate::ALONG_WELL_PATH)
else if (orientation == RimFractureTemplate::TRANSVERSE_WELL_PATH)
{
if (wellPathAzimuth + 90 < 360) azimuth = wellPathAzimuth + 90;
else azimuth = wellPathAzimuth - 90;
@@ -154,7 +154,7 @@ void RimWellPathFracture::updatePositionFromMeasuredDepth()
this->setAnchorPosition(positionAlongWellpath);
m_wellPathAzimuth = wellAzimuthAtFracturePosition();
setWellFractureAzimuthDiffAndWarning();
}
//--------------------------------------------------------------------------------------------------
@@ -171,6 +171,8 @@ void RimWellPathFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrder
locationGroup->add(&m_measuredDepth);
locationGroup->add(&azimuth);
locationGroup->add(&m_wellPathAzimuth);
locationGroup->add(&m_wellFractureAzimuthDiff);
locationGroup->add(&m_wellFractureAzimuthAngleWarning);
locationGroup->add(&dip);
locationGroup->add(&tilt);
@@ -184,6 +186,7 @@ void RimWellPathFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrder
caf::PdmUiGroup* fractureCenterGroup = uiOrdering.addNewGroup("Fracture Center Info");
fractureCenterGroup->add(&m_uiAnchorPosition);
}
//--------------------------------------------------------------------------------------------------