mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#1618 Showing well path direction in read only field. Also updating azimuth angle of wellpath / simwell to avoid negative angles and instead have angles 0-360deg.
This commit is contained in:
1 parent
2ed872e8fc
commit
2501264013
4 files changed
+16
No files matched your search
@@ -100,6 +100,9 @@ RimFracture::RimFracture(void)
|
|||||||
|
|
||||||
CAF_PDM_InitField(&stimPlanTimeIndexToPlot, "timeIndexToPlot", 0, "StimPlan Time Step", "", "", "");
|
CAF_PDM_InitField(&stimPlanTimeIndexToPlot, "timeIndexToPlot", 0, "StimPlan Time Step", "", "", "");
|
||||||
|
|
||||||
|
//TODO:
|
||||||
|
CAF_PDM_InitField(&m_wellPathAzimuth, "WellPathAzimuth", 0.0, "Well Path Azimuth", "", "", "");
|
||||||
|
|
||||||
m_fracturePartMgr = new RivWellFracturePartMgr(this);
|
m_fracturePartMgr = new RivWellFracturePartMgr(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -348,6 +351,8 @@ QList<caf::PdmOptionItemInfo> RimFracture::calculateValueOptions(const caf::PdmF
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
|
void RimFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
|
||||||
{
|
{
|
||||||
|
m_wellPathAzimuth.uiCapability()->setUiReadOnly(true);
|
||||||
|
|
||||||
if (m_fractureUnit() == RiaEclipseUnitTools::UNITS_METRIC)
|
if (m_fractureUnit() == RiaEclipseUnitTools::UNITS_METRIC)
|
||||||
{
|
{
|
||||||
wellDiameter.uiCapability()->setUiName("Well Diameter [m]");
|
wellDiameter.uiCapability()->setUiName("Well Diameter [m]");
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ protected:
|
|||||||
caf::PdmPtrField<RimFractureTemplate*> m_fractureTemplate;
|
caf::PdmPtrField<RimFractureTemplate*> m_fractureTemplate;
|
||||||
caf::PdmProxyValueField<cvf::Vec3d> m_uiAnchorPosition;
|
caf::PdmProxyValueField<cvf::Vec3d> m_uiAnchorPosition;
|
||||||
caf::PdmField< RiaEclipseUnitTools::UnitSystemType > m_fractureUnit;
|
caf::PdmField< RiaEclipseUnitTools::UnitSystemType > m_fractureUnit;
|
||||||
|
caf::PdmField<double> m_wellPathAzimuth;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
caf::PdmField<cvf::Vec3d> m_anchorPosition;
|
caf::PdmField<cvf::Vec3d> m_anchorPosition;
|
||||||
|
|||||||
@@ -111,6 +111,8 @@ double RimSimWellFracture::wellAzimuthAtFracturePosition()
|
|||||||
{
|
{
|
||||||
updateBranchGeometry();
|
updateBranchGeometry();
|
||||||
double simWellAzimuth = m_branchCenterLines[m_branchIndex].simWellAzimuthAngle(fracturePosition());
|
double simWellAzimuth = m_branchCenterLines[m_branchIndex].simWellAzimuthAngle(fracturePosition());
|
||||||
|
if (simWellAzimuth < 0) simWellAzimuth += 360;
|
||||||
|
|
||||||
return simWellAzimuth;
|
return simWellAzimuth;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,6 +180,7 @@ void RimSimWellFracture::updateFracturePositionFromLocation()
|
|||||||
this->firstAncestorOrThisOfType(proj);
|
this->firstAncestorOrThisOfType(proj);
|
||||||
if (proj) proj->createDisplayModelAndRedrawAllViews();
|
if (proj) proj->createDisplayModelAndRedrawAllViews();
|
||||||
}
|
}
|
||||||
|
m_wellPathAzimuth = wellAzimuthAtFracturePosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -194,6 +197,7 @@ void RimSimWellFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrderi
|
|||||||
locationGroup->add(&m_location);
|
locationGroup->add(&m_location);
|
||||||
locationGroup->add(&m_branchIndex);
|
locationGroup->add(&m_branchIndex);
|
||||||
locationGroup->add(&azimuth);
|
locationGroup->add(&azimuth);
|
||||||
|
locationGroup->add(&m_wellPathAzimuth);
|
||||||
locationGroup->add(&dip);
|
locationGroup->add(&dip);
|
||||||
locationGroup->add(&tilt);
|
locationGroup->add(&tilt);
|
||||||
|
|
||||||
|
|||||||
@@ -129,6 +129,9 @@ double RimWellPathFracture::wellAzimuthAtFracturePosition()
|
|||||||
|
|
||||||
RigWellPath* wellPathGeometry = wellPath->wellPathGeometry();
|
RigWellPath* wellPathGeometry = wellPath->wellPathGeometry();
|
||||||
double wellPathAzimuth = wellPathGeometry->wellPathAzimuthAngle(fracturePosition());
|
double wellPathAzimuth = wellPathGeometry->wellPathAzimuthAngle(fracturePosition());
|
||||||
|
|
||||||
|
if (wellPathAzimuth < 0) wellPathAzimuth += 360;
|
||||||
|
|
||||||
return wellPathAzimuth;
|
return wellPathAzimuth;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,6 +153,8 @@ void RimWellPathFracture::updatePositionFromMeasuredDepth()
|
|||||||
positionAlongWellpath = wellPathGeometry->interpolatedPointAlongWellPath(m_measuredDepth());
|
positionAlongWellpath = wellPathGeometry->interpolatedPointAlongWellPath(m_measuredDepth());
|
||||||
|
|
||||||
this->setAnchorPosition(positionAlongWellpath);
|
this->setAnchorPosition(positionAlongWellpath);
|
||||||
|
m_wellPathAzimuth = wellAzimuthAtFracturePosition();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -165,6 +170,7 @@ void RimWellPathFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrder
|
|||||||
caf::PdmUiGroup* locationGroup = uiOrdering.addNewGroup("Location / Orientation");
|
caf::PdmUiGroup* locationGroup = uiOrdering.addNewGroup("Location / Orientation");
|
||||||
locationGroup->add(&m_measuredDepth);
|
locationGroup->add(&m_measuredDepth);
|
||||||
locationGroup->add(&azimuth);
|
locationGroup->add(&azimuth);
|
||||||
|
locationGroup->add(&m_wellPathAzimuth);
|
||||||
locationGroup->add(&dip);
|
locationGroup->add(&dip);
|
||||||
locationGroup->add(&tilt);
|
locationGroup->add(&tilt);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user