mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2279 Fishbones. Default spacing is now 12.5. Place fishbone near well path end if no coordinates are specified
This commit is contained in:
parent
171c065326
commit
1d3a31d61f
@ -52,7 +52,7 @@ void RicNewFishbonesSubsAtMeasuredDepthFeature::onActionTriggered(bool isChecked
|
||||
RimFishbonesMultipleSubs* obj = new RimFishbonesMultipleSubs;
|
||||
wellPath->fishbonesCollection()->appendFishbonesSubs(obj);
|
||||
|
||||
obj->setMeasuredDepthAndCount(wellPathSelItem->m_measuredDepth, 24, 1);
|
||||
obj->setMeasuredDepthAndCount(wellPathSelItem->m_measuredDepth, 12.5, 13);
|
||||
|
||||
|
||||
RicNewFishbonesSubsFeature::askUserToSetUsefulScaling(wellPath->fishbonesCollection());
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RigWellPath.h"
|
||||
|
||||
#include "RimProject.h"
|
||||
#include "RimFishboneWellPathCollection.h"
|
||||
#include "RimFishbonesCollection.h"
|
||||
@ -41,6 +43,11 @@
|
||||
|
||||
CAF_CMD_SOURCE_INIT(RicNewFishbonesSubsFeature, "RicNewFishbonesSubsFeature");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double getWellPathTipMd(RimWellPath* wellPath);
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -56,6 +63,12 @@ void RicNewFishbonesSubsFeature::onActionTriggered(bool isChecked)
|
||||
RimFishbonesMultipleSubs* obj = new RimFishbonesMultipleSubs;
|
||||
fishbonesCollection->appendFishbonesSubs(obj);
|
||||
|
||||
double wellPathTipMd = getWellPathTipMd(wellPath);
|
||||
if (wellPathTipMd != NAN)
|
||||
{
|
||||
obj->setMeasuredDepthAndCount(wellPathTipMd - 150 - 100, 12.5, 13);
|
||||
}
|
||||
|
||||
RicNewFishbonesSubsFeature::askUserToSetUsefulScaling(fishbonesCollection);
|
||||
|
||||
|
||||
@ -177,3 +190,17 @@ void RicNewFishbonesSubsFeature::askUserToSetUsefulScaling(RimFishbonesCollectio
|
||||
RiuMainWindow::instance()->updateScaleValue();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double getWellPathTipMd(RimWellPath* wellPath)
|
||||
{
|
||||
RigWellPath* geometry = wellPath ? wellPath->wellPathGeometry() : nullptr;
|
||||
|
||||
if (geometry && !geometry->m_measuredDepths.empty())
|
||||
{
|
||||
return geometry->m_measuredDepths.back();
|
||||
}
|
||||
return NAN;
|
||||
}
|
||||
|
@ -94,8 +94,8 @@ RimFishbonesMultipleSubs::RimFishbonesMultipleSubs()
|
||||
CAF_PDM_InitField(&m_subsLocationMode, "SubsLocationMode", caf::AppEnum<LocationType>(FB_SUB_COUNT_END), "Location Defined By", "", "", "");
|
||||
CAF_PDM_InitField(&m_rangeStart, "RangeStart", 100.0, "Start MD [m]", "", "", "");
|
||||
CAF_PDM_InitField(&m_rangeEnd, "RangeEnd", 250.0, "End MD [m]", "", "", "");
|
||||
CAF_PDM_InitField(&m_rangeSubSpacing, "RangeSubSpacing", 13.0, "Spacing [m]", "", "", "");
|
||||
CAF_PDM_InitField(&m_rangeSubCount, "RangeSubCount", 25, "Number of Subs", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&m_rangeSubSpacing, "RangeSubSpacing", "Spacing [m]", "", "", "");
|
||||
CAF_PDM_InitField(&m_rangeSubCount, "RangeSubCount", 13, "Number of Subs", "", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_subsOrientationMode, "SubsOrientationMode", caf::AppEnum<LateralsOrientationType>(FB_LATERAL_ORIENTATION_RANDOM), "Orientation", "", "", "");
|
||||
|
||||
@ -355,7 +355,6 @@ void RimFishbonesMultipleSubs::setUnitSystemSpecificDefaults()
|
||||
{
|
||||
if (wellPath->unitSystem() == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_rangeSubSpacing = 13;
|
||||
m_lateralLength = "11";
|
||||
m_lateralBuildAngle = 6.0;
|
||||
m_lateralTubingDiameter = 8;
|
||||
@ -365,7 +364,6 @@ void RimFishbonesMultipleSubs::setUnitSystemSpecificDefaults()
|
||||
}
|
||||
else if (wellPath->unitSystem() == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_rangeSubSpacing = 42;
|
||||
m_lateralLength = "36";
|
||||
m_lateralBuildAngle = 1.83;
|
||||
m_lateralTubingDiameter = 0.31;
|
||||
|
Loading…
Reference in New Issue
Block a user