mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge branch 'dev' into pre-proto
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
RigCompletionData::RigCompletionData(const QString wellName, const IJKCellIndex cellIndex)
|
||||
RigCompletionData::RigCompletionData(const QString wellName, const IJKCellIndex& cellIndex)
|
||||
: m_wellName(wellName),
|
||||
m_cellIndex(cellIndex),
|
||||
m_saturation(HUGE_VAL),
|
||||
|
||||
@@ -91,7 +91,7 @@ struct RigCompletionMetaData {
|
||||
class RigCompletionData : public cvf::Object
|
||||
{
|
||||
public:
|
||||
RigCompletionData(const QString wellName, const IJKCellIndex cellIndex);
|
||||
RigCompletionData(const QString wellName, const IJKCellIndex& cellIndex);
|
||||
~RigCompletionData();
|
||||
RigCompletionData(const RigCompletionData& other);
|
||||
|
||||
|
||||
@@ -39,16 +39,30 @@ RigFisbonesGeometry::RigFisbonesGeometry(RimFishbonesMultipleSubs* fishbonesSub)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<std::pair<cvf::Vec3d, double>> RigFisbonesGeometry::coordsForLateral(size_t subIndex, size_t lateralIndex) const
|
||||
{
|
||||
CVF_ASSERT(subIndex < m_fishbonesSub->locationOfSubs().size());
|
||||
CVF_ASSERT(lateralIndex < m_fishbonesSub->lateralLengths().size());
|
||||
|
||||
bool found = false;
|
||||
for (auto& sub : m_fishbonesSub->installedLateralIndices())
|
||||
{
|
||||
if (sub.subIndex == subIndex)
|
||||
{
|
||||
auto it = std::find(sub.lateralIndices.begin(), sub.lateralIndices.end(), lateralIndex);
|
||||
if (it != sub.lateralIndices.end())
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
CVF_ASSERT(found);
|
||||
|
||||
cvf::Vec3d position;
|
||||
cvf::Vec3d lateralInitialDirection;
|
||||
cvf::Mat4d buildAngleRotationMatrix;
|
||||
|
||||
computeLateralPositionAndOrientation(subIndex, lateralIndex, &position, &lateralInitialDirection, &buildAngleRotationMatrix);
|
||||
|
||||
return computeCoordsAlongLateral(m_fishbonesSub->locationOfSubs()[subIndex], m_fishbonesSub->lateralLengths()[lateralIndex], position, lateralInitialDirection, buildAngleRotationMatrix);
|
||||
return computeCoordsAlongLateral(m_fishbonesSub->measuredDepth(subIndex), m_fishbonesSub->lateralLengths()[lateralIndex], position, lateralInitialDirection, buildAngleRotationMatrix);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -62,7 +76,7 @@ void RigFisbonesGeometry::computeLateralPositionAndOrientation(size_t subIndex,
|
||||
RigWellPath* rigWellPath = wellPath->wellPathGeometry();
|
||||
CVF_ASSERT(rigWellPath);
|
||||
|
||||
double measuredDepth = m_fishbonesSub->locationOfSubs()[subIndex];
|
||||
double measuredDepth = m_fishbonesSub->measuredDepth(subIndex);
|
||||
|
||||
cvf::Vec3d position = rigWellPath->interpolatedPointAlongWellPath(measuredDepth);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user