#1858 Rename WellPathIntersectionInfo classes

This commit is contained in:
Jacob Støren 2017-12-12 13:53:02 +01:00
parent 3a1939d460
commit b15664cfc5
10 changed files with 34 additions and 22 deletions

View File

@ -182,7 +182,7 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneImportedLate
double diameter = wellPath->fishbonesCollection()->wellPathCollection()->holeDiameter(unitSystem);
for (const RimFishboneWellPath* fishbonesPath : wellPath->fishbonesCollection()->wellPathCollection()->wellPaths())
{
std::vector<WellPathCellIntersectionInfo> intersectedCells = RigWellPathIntersectionTools::findCellsIntersectedByPath(settings.caseToApply->eclipseCaseData(),
std::vector<EclipseWellPathCellIntersectionInfo> intersectedCells = RigWellPathIntersectionTools::findCellsIntersectedByPath(settings.caseToApply->eclipseCaseData(),
fishbonesPath->coordinates(),
fishbonesPath->measuredDepths());
for (auto& cell : intersectedCells)
@ -219,7 +219,7 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findMainWellBoreParts(st
std::pair< std::vector<cvf::Vec3d>, std::vector<double> > fishbonePerfWellPathCoords = wellPath->wellPathGeometry()->clippedPointSubset(wellPath->fishbonesCollection()->startMD(),
wellPathEndMD);
std::vector<WellPathCellIntersectionInfo> intersectedCellsIntersectionInfo = RigWellPathIntersectionTools::findCellsIntersectedByPath(settings.caseToApply->eclipseCaseData(),
std::vector<EclipseWellPathCellIntersectionInfo> intersectedCellsIntersectionInfo = RigWellPathIntersectionTools::findCellsIntersectedByPath(settings.caseToApply->eclipseCaseData(),
fishbonePerfWellPathCoords.first,
fishbonePerfWellPathCoords.second);

View File

@ -718,7 +718,7 @@ std::vector<RigCompletionData> RicWellPathExportCompletionDataFeature::generateP
using namespace std;
pair<vector<cvf::Vec3d>, vector<double> > perforationPointsAndMD = wellPath->wellPathGeometry()->clippedPointSubset(interval->startMD(), interval->endMD());
std::vector<WellPathCellIntersectionInfo> intersectedCells = RigWellPathIntersectionTools::findCellsIntersectedByPath(settings.caseToApply->eclipseCaseData(),
std::vector<EclipseWellPathCellIntersectionInfo> intersectedCells = RigWellPathIntersectionTools::findCellsIntersectedByPath(settings.caseToApply->eclipseCaseData(),
perforationPointsAndMD.first,
perforationPointsAndMD.second);
for (auto& cell : intersectedCells)
@ -880,7 +880,7 @@ void RicWellPathExportCompletionDataFeature::assignLateralIntersections(const Ri
lateralMDs.push_back(coordMD.second);
}
std::vector<WellPathCellIntersectionInfo> intersections = RigWellPathIntersectionTools::findCellsIntersectedByPath(caseToApply->eclipseCaseData(),
std::vector<EclipseWellPathCellIntersectionInfo> intersections = RigWellPathIntersectionTools::findCellsIntersectedByPath(caseToApply->eclipseCaseData(),
lateralCoords,
lateralMDs);

View File

@ -360,7 +360,7 @@ public:
RigEclipseWellLogExtractor* eclExtractor = findWellLogExtractor(wellPathName, eclCase);
if (!eclExtractor) return;
std::vector<CellIntersectionInfo> intersections = eclExtractor->intersectionInfo();
std::vector<WellPathCellIntersectionInfo> intersections = eclExtractor->intersectionInfo();
for (size_t wpExIdx = 0; wpExIdx < intersections.size(); wpExIdx++)
{
@ -452,7 +452,7 @@ public:
if (!eclExtractor) return;
std::vector<CellIntersectionInfo> intersections = eclExtractor->intersectionInfo();
std::vector<WellPathCellIntersectionInfo> intersections = eclExtractor->intersectionInfo();
for (size_t wpExIdx = 0; wpExIdx < intersections.size(); wpExIdx++)
{

View File

@ -556,7 +556,7 @@ bool RimWellLogRftCurve::createWellPathIdxToRftFileIdxMapping()
if (!eclExtractor) return false;
std::vector<CellIntersectionInfo> intersections = eclExtractor->intersectionInfo();
std::vector<WellPathCellIntersectionInfo> intersections = eclExtractor->intersectionInfo();
if (intersections.empty()) return false;
std::map<size_t, size_t> globCellIndicesToIndexInWell;

View File

@ -137,9 +137,21 @@ void RigEclipseWellLogExtractor::curveData(const RigResultAccessor* resultAccess
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<WellPathCellIntersectionInfo> RigEclipseWellLogExtractor::cellIntersectionInfo()
std::vector<EclipseWellPathCellIntersectionInfo> RigEclipseWellLogExtractor::cellIntersectionInfo()
{
std::vector<WellPathCellIntersectionInfo> cellIntersectionInfos;
//std::vector<CellIntersectionInfo> intersectionInfos = this->intersectionInfo();
//
//for (const auto& cellIntersectInfo: intersectionInfos)
//{
// cvf::Vec3d internalCellLengths;
// internalCellLengths = RigWellPathIntersectionTools::calculateLengthInCell(m_caseData->mainGrid(),
// cellIntersectInfo.globCellIndex,
// cellIntersectInfo.startPoint,
// cellIntersectInfo.endPoint);
//
//}
std::vector<EclipseWellPathCellIntersectionInfo> cellIntersectionInfos;
if (m_intersections.size() > 1)
{
@ -158,7 +170,7 @@ std::vector<WellPathCellIntersectionInfo> RigEclipseWellLogExtractor::cellInters
m_intersections[cpIdx],
m_intersections[cpIdx+1]);
cellIntersectionInfos.push_back(WellPathCellIntersectionInfo(cellIdx1,
cellIntersectionInfos.push_back(EclipseWellPathCellIntersectionInfo(cellIdx1,
m_intersections[cpIdx],
m_intersections[cpIdx+1],
internalCellLengths));

View File

@ -25,7 +25,7 @@ class RigEclipseCaseData;
class RigWellPath;
class RigResultAccessor;
struct WellPathCellIntersectionInfo;
struct EclipseWellPathCellIntersectionInfo;
namespace cvf {
class BoundingBox;
@ -42,7 +42,7 @@ public:
void curveData(const RigResultAccessor* resultAccessor, std::vector<double>* values );
const RigEclipseCaseData* caseData() { return m_caseData.p();}
std::vector<WellPathCellIntersectionInfo> cellIntersectionInfo();
std::vector<EclipseWellPathCellIntersectionInfo> cellIntersectionInfo();
const std::vector<size_t>& intersectedCellsGlobIdx();
protected:

View File

@ -43,16 +43,16 @@ RigWellLogExtractor::~RigWellLogExtractor()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<CellIntersectionInfo> RigWellLogExtractor::intersectionInfo() const
std::vector<WellPathCellIntersectionInfo> RigWellLogExtractor::intersectionInfo() const
{
std::vector<CellIntersectionInfo> infoVector;
std::vector<WellPathCellIntersectionInfo> infoVector;
if (m_intersectedCellsGlobIdx.empty()) return infoVector;
for (size_t i = 0; i < m_intersectedCellsGlobIdx.size() - 1; i=i+2)
{
CVF_ASSERT(m_intersectedCellsGlobIdx[i] == m_intersectedCellsGlobIdx[i + 1]);
CellIntersectionInfo cellInfo;
WellPathCellIntersectionInfo cellInfo;
cellInfo.globCellIndex = m_intersectedCellsGlobIdx[i];
cellInfo.startPoint = m_intersections[i];

View File

@ -35,7 +35,7 @@
//==================================================================================================
///
//==================================================================================================
struct CellIntersectionInfo
struct WellPathCellIntersectionInfo
{
size_t globCellIndex;
cvf::Vec3d startPoint;
@ -63,7 +63,7 @@ public:
const RigWellPath* wellPathData() { return m_wellPath.p();}
std::vector<CellIntersectionInfo> intersectionInfo() const;
std::vector<WellPathCellIntersectionInfo> intersectionInfo() const;
protected:
static void insertIntersectionsInMap(const std::vector<HexIntersectionInfo> &intersections,

View File

@ -34,11 +34,11 @@
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<WellPathCellIntersectionInfo> RigWellPathIntersectionTools::findCellsIntersectedByPath(const RigEclipseCaseData* caseData,
std::vector<EclipseWellPathCellIntersectionInfo> RigWellPathIntersectionTools::findCellsIntersectedByPath(const RigEclipseCaseData* caseData,
const std::vector<cvf::Vec3d>& pathCoords,
const std::vector<double>& pathMds)
{
std::vector<WellPathCellIntersectionInfo> intersectionInfos;
std::vector<EclipseWellPathCellIntersectionInfo> intersectionInfos;
const RigMainGrid* grid = caseData->mainGrid();
if (pathCoords.size() < 2) return intersectionInfos;

View File

@ -33,9 +33,9 @@ class RigEclipseCaseData;
//==================================================================================================
///
//==================================================================================================
struct WellPathCellIntersectionInfo
struct EclipseWellPathCellIntersectionInfo
{
WellPathCellIntersectionInfo(size_t globReservoirCellIndex,
EclipseWellPathCellIntersectionInfo(size_t globReservoirCellIndex,
cvf::Vec3d startPoint,
cvf::Vec3d endPoint,
cvf::Vec3d internalCellLengths)
@ -57,7 +57,7 @@ struct WellPathCellIntersectionInfo
class RigWellPathIntersectionTools
{
public:
static std::vector<WellPathCellIntersectionInfo> findCellsIntersectedByPath(const RigEclipseCaseData* caseData,
static std::vector<EclipseWellPathCellIntersectionInfo> findCellsIntersectedByPath(const RigEclipseCaseData* caseData,
const std::vector<cvf::Vec3d>& pathCoords,
const std::vector<double>& pathMds);