mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1544 Fracture : Add function used to compute perforation length coords
This commit is contained in:
@@ -132,6 +132,28 @@ void RimWellPathFracture::loadDataAndUpdate()
|
||||
updateAzimuthBasedOnWellAzimuthAngle();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<cvf::Vec3d> RimWellPathFracture::perforationLengthCenterLineCoords() const
|
||||
{
|
||||
std::vector<cvf::Vec3d> wellPathCoords;
|
||||
|
||||
RimWellPath* wellPath = nullptr;
|
||||
this->firstAncestorOrThisOfType(wellPath);
|
||||
if (wellPath && wellPath->wellPathGeometry())
|
||||
{
|
||||
double startMd = m_measuredDepth - perforationLength() / 2.0;
|
||||
double endMd = m_measuredDepth + perforationLength() / 2.0;
|
||||
|
||||
auto coordsAndMd = wellPath->wellPathGeometry()->clippedPointSubset(startMd, endMd);
|
||||
|
||||
wellPathCoords = coordsAndMd.first;
|
||||
}
|
||||
|
||||
return wellPathCoords;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user