Clean up names for MswExportInfo class hierarchy

This commit is contained in:
Gaute Lindkvist
2018-08-20 14:56:02 +02:00
parent 5c635fa42d
commit 2ad935d39f
7 changed files with 228 additions and 233 deletions

View File

@@ -188,7 +188,7 @@ void RicExportFishbonesWellSegmentsFeature::exportWellSegments(const RimWellPath
return;
}
RicMultiSegmentWellExportInfo exportInfo = RicWellPathExportCompletionDataFeatureImpl::generateFishbonesMswExportInfo(settings.caseToApply, wellPath, fishbonesSubs);
RicMswExportInfo exportInfo = RicWellPathExportCompletionDataFeatureImpl::generateFishbonesMswExportInfo(settings.caseToApply, wellPath, fishbonesSubs);
QTextStream stream(&exportFile);
RifEclipseDataTableFormatter formatter(stream);

View File

@@ -77,7 +77,7 @@ void RicExportFracturesWellSegmentsFeature::exportWellSegments(const RimWellPath
return;
}
RicMultiSegmentWellExportInfo exportInfo = RicWellPathExportCompletionDataFeatureImpl::generateFracturesMswExportInfo(settings.caseToApply, wellPath, fractures);
RicMswExportInfo exportInfo = RicWellPathExportCompletionDataFeatureImpl::generateFracturesMswExportInfo(settings.caseToApply, wellPath, fractures);
QTextStream stream(&exportFile);
RifEclipseDataTableFormatter formatter(stream);

View File

@@ -169,19 +169,19 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneLateralsWell
// Generate data
const RigEclipseCaseData* caseData = settings.caseToApply()->eclipseCaseData();
RicMultiSegmentWellExportInfo exportInfo =
RicMswExportInfo exportInfo =
RicWellPathExportCompletionDataFeatureImpl::generateFishbonesMswExportInfo(settings.caseToApply(), wellPath);
RiaEclipseUnitTools::UnitSystem unitSystem = caseData->unitsType();
bool isMainBore = false;
for (const RicWellSegmentLocation& location : exportInfo.wellSegmentLocations())
for (const RicMswSegment& location : exportInfo.wellSegmentLocations())
{
for (const RicWellSegmentCompletion& completion : location.completions())
for (const RicMswCompletion& completion : location.completions())
{
for (const RicWellSubSegment& segment : completion.subSegments())
for (const RicMswSubSegment& segment : completion.subSegments())
{
for (const RicWellSubSegmentCellIntersection& intersection : segment.intersections())
for (const RicMswSubSegmentCellIntersection& intersection : segment.intersections())
{
double diameter = location.holeDiameter();
QString completionMetaData =
@@ -190,7 +190,7 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneLateralsWell
WellBorePartForTransCalc wellBorePart = WellBorePartForTransCalc(
intersection.lengthsInCell(), diameter / 2.0, location.skinFactor(), isMainBore, completionMetaData);
wellBorePart.intersectionWithWellMeasuredDepth = location.measuredDepth();
wellBorePart.intersectionWithWellMeasuredDepth = location.endMD();
wellBorePart.lateralIndex = completion.index();
wellBorePartsInCells[intersection.globalCellIndex()].push_back(wellBorePart);

View File

@@ -6,26 +6,24 @@
#include <algorithm>
#include <limits>
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicWellSubSegmentCellIntersection::RicWellSubSegmentCellIntersection(const QString& gridName,
size_t globalCellIndex,
const cvf::Vec3st& gridLocalCellIJK,
const cvf::Vec3d& lengthsInCell)
RicMswSubSegmentCellIntersection::RicMswSubSegmentCellIntersection(const QString& gridName,
size_t globalCellIndex,
const cvf::Vec3st& gridLocalCellIJK,
const cvf::Vec3d& lengthsInCell)
: m_gridName(gridName)
, m_globalCellIndex(globalCellIndex)
, m_gridLocalCellIJK(gridLocalCellIJK)
, m_lengthsInCell(lengthsInCell)
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const QString& RicWellSubSegmentCellIntersection::gridName() const
const QString& RicMswSubSegmentCellIntersection::gridName() const
{
return m_gridName;
}
@@ -33,7 +31,7 @@ const QString& RicWellSubSegmentCellIntersection::gridName() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
size_t RicWellSubSegmentCellIntersection::globalCellIndex() const
size_t RicMswSubSegmentCellIntersection::globalCellIndex() const
{
return m_globalCellIndex;
}
@@ -41,7 +39,7 @@ size_t RicWellSubSegmentCellIntersection::globalCellIndex() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
cvf::Vec3st RicWellSubSegmentCellIntersection::gridLocalCellIJK() const
cvf::Vec3st RicMswSubSegmentCellIntersection::gridLocalCellIJK() const
{
return m_gridLocalCellIJK;
}
@@ -49,7 +47,7 @@ cvf::Vec3st RicWellSubSegmentCellIntersection::gridLocalCellIJK() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const cvf::Vec3d& RicWellSubSegmentCellIntersection::lengthsInCell() const
const cvf::Vec3d& RicMswSubSegmentCellIntersection::lengthsInCell() const
{
return m_lengthsInCell;
}
@@ -57,10 +55,7 @@ const cvf::Vec3d& RicWellSubSegmentCellIntersection::lengthsInCell() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicWellSubSegment::RicWellSubSegment(double startMD,
double deltaMD,
double startTVD,
double deltaTVD)
RicMswSubSegment::RicMswSubSegment(double startMD, double deltaMD, double startTVD, double deltaTVD)
: m_startMD(startMD)
, m_deltaMD(deltaMD)
, m_startTVD(startTVD)
@@ -73,7 +68,7 @@ RicWellSubSegment::RicWellSubSegment(double startMD,
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicWellSubSegment::startMD() const
double RicMswSubSegment::startMD() const
{
return m_startMD;
}
@@ -81,7 +76,7 @@ double RicWellSubSegment::startMD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicWellSubSegment::deltaMD() const
double RicMswSubSegment::deltaMD() const
{
return m_deltaMD;
}
@@ -89,7 +84,7 @@ double RicWellSubSegment::deltaMD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicWellSubSegment::startTVD() const
double RicMswSubSegment::startTVD() const
{
return m_startTVD;
}
@@ -97,7 +92,7 @@ double RicWellSubSegment::startTVD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicWellSubSegment::deltaTVD() const
double RicMswSubSegment::deltaTVD() const
{
return m_deltaTVD;
}
@@ -105,7 +100,7 @@ double RicWellSubSegment::deltaTVD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
int RicWellSubSegment::segmentNumber() const
int RicMswSubSegment::segmentNumber() const
{
return m_segmentNumber;
}
@@ -113,7 +108,7 @@ int RicWellSubSegment::segmentNumber() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
int RicWellSubSegment::attachedSegmentNumber() const
int RicMswSubSegment::attachedSegmentNumber() const
{
return m_attachedSegmentNumber;
}
@@ -121,7 +116,7 @@ int RicWellSubSegment::attachedSegmentNumber() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellSubSegment::setSegmentNumber(int segmentNumber)
void RicMswSubSegment::setSegmentNumber(int segmentNumber)
{
m_segmentNumber = segmentNumber;
}
@@ -129,7 +124,7 @@ void RicWellSubSegment::setSegmentNumber(int segmentNumber)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellSubSegment::setAttachedSegmentNumber(int attachedSegmentNumber)
void RicMswSubSegment::setAttachedSegmentNumber(int attachedSegmentNumber)
{
m_attachedSegmentNumber = attachedSegmentNumber;
}
@@ -137,7 +132,7 @@ void RicWellSubSegment::setAttachedSegmentNumber(int attachedSegmentNumber)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellSubSegment::addIntersection(const RicWellSubSegmentCellIntersection& intersection)
void RicMswSubSegment::addIntersection(const RicMswSubSegmentCellIntersection& intersection)
{
m_intersections.push_back(intersection);
}
@@ -145,7 +140,7 @@ void RicWellSubSegment::addIntersection(const RicWellSubSegmentCellIntersection&
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const std::vector<RicWellSubSegmentCellIntersection>& RicWellSubSegment::intersections() const
const std::vector<RicMswSubSegmentCellIntersection>& RicMswSubSegment::intersections() const
{
return m_intersections;
}
@@ -153,7 +148,7 @@ const std::vector<RicWellSubSegmentCellIntersection>& RicWellSubSegment::interse
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RicWellSubSegmentCellIntersection>& RicWellSubSegment::intersections()
std::vector<RicMswSubSegmentCellIntersection>& RicMswSubSegment::intersections()
{
return m_intersections;
}
@@ -161,10 +156,10 @@ std::vector<RicWellSubSegmentCellIntersection>& RicWellSubSegment::intersections
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicWellSegmentCompletion::RicWellSegmentCompletion(RigCompletionData::CompletionType completionType,
const QString& label,
size_t index /* = cvf::UNDEFINED_SIZE_T */,
int branchNumber /*= 0*/)
RicMswCompletion::RicMswCompletion(RigCompletionData::CompletionType completionType,
const QString& label,
size_t index /* = cvf::UNDEFINED_SIZE_T */,
int branchNumber /*= 0*/)
: m_completionType(completionType)
, m_label(label)
, m_index(index)
@@ -175,7 +170,7 @@ RicWellSegmentCompletion::RicWellSegmentCompletion(RigCompletionData::Completion
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RigCompletionData::CompletionType RicWellSegmentCompletion::completionType() const
RigCompletionData::CompletionType RicMswCompletion::completionType() const
{
return m_completionType;
}
@@ -183,7 +178,7 @@ RigCompletionData::CompletionType RicWellSegmentCompletion::completionType() con
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const QString& RicWellSegmentCompletion::label() const
const QString& RicMswCompletion::label() const
{
return m_label;
}
@@ -191,7 +186,7 @@ const QString& RicWellSegmentCompletion::label() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
size_t RicWellSegmentCompletion::index() const
size_t RicMswCompletion::index() const
{
return m_index;
}
@@ -199,7 +194,7 @@ size_t RicWellSegmentCompletion::index() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
int RicWellSegmentCompletion::branchNumber() const
int RicMswCompletion::branchNumber() const
{
return m_branchNumber;
}
@@ -207,7 +202,7 @@ int RicWellSegmentCompletion::branchNumber() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellSegmentCompletion::setBranchNumber(int branchNumber)
void RicMswCompletion::setBranchNumber(int branchNumber)
{
m_branchNumber = branchNumber;
}
@@ -215,7 +210,7 @@ void RicWellSegmentCompletion::setBranchNumber(int branchNumber)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellSegmentCompletion::addSubSegment(const RicWellSubSegment& subSegment)
void RicMswCompletion::addSubSegment(const RicMswSubSegment& subSegment)
{
m_subSegments.push_back(subSegment);
}
@@ -223,7 +218,7 @@ void RicWellSegmentCompletion::addSubSegment(const RicWellSubSegment& subSegment
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RicWellSubSegment>& RicWellSegmentCompletion::subSegments()
std::vector<RicMswSubSegment>& RicMswCompletion::subSegments()
{
return m_subSegments;
}
@@ -231,7 +226,7 @@ std::vector<RicWellSubSegment>& RicWellSegmentCompletion::subSegments()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const std::vector<RicWellSubSegment>& RicWellSegmentCompletion::subSegments() const
const std::vector<RicMswSubSegment>& RicMswCompletion::subSegments() const
{
return m_subSegments;
}
@@ -239,24 +234,24 @@ const std::vector<RicWellSubSegment>& RicWellSegmentCompletion::subSegments() co
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicMswWellSegment::RicMswWellSegment(const QString& label,
double startMD,
double endMD,
double startTVD,
double endTVD,
size_t subIndex,
int segmentNumber /*= -1*/)
RicMswSegment::RicMswSegment(const QString& label,
double startMD,
double endMD,
double startTVD,
double endTVD,
size_t subIndex,
int segmentNumber /*= -1*/)
: m_label(label)
, m_startMD(startMD)
, m_endMD(endMD)
, m_startTVD(startTVD)
, m_endTVD(endTVD)
, m_effectiveDiameter(0.15)
, m_holeDiameter(RicMultiSegmentWellExportInfo::defaultDoubleValue())
, m_holeDiameter(RicMswExportInfo::defaultDoubleValue())
, m_openHoleRoughnessFactor(5.0e-5)
, m_skinFactor(RicMultiSegmentWellExportInfo::defaultDoubleValue())
, m_icdFlowCoefficient(RicMultiSegmentWellExportInfo::defaultDoubleValue())
, m_icdArea(RicMultiSegmentWellExportInfo::defaultDoubleValue())
, m_skinFactor(RicMswExportInfo::defaultDoubleValue())
, m_icdFlowCoefficient(RicMswExportInfo::defaultDoubleValue())
, m_icdArea(RicMswExportInfo::defaultDoubleValue())
, m_subIndex(subIndex)
, m_segmentNumber(segmentNumber)
{
@@ -265,7 +260,7 @@ RicMswWellSegment::RicMswWellSegment(const QString& label,
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RicMswWellSegment::label() const
QString RicMswSegment::label() const
{
return m_label;
}
@@ -273,7 +268,7 @@ QString RicMswWellSegment::label() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::startMD() const
double RicMswSegment::startMD() const
{
return m_startMD;
}
@@ -281,7 +276,7 @@ double RicMswWellSegment::startMD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::endMD() const
double RicMswSegment::endMD() const
{
return m_endMD;
}
@@ -289,7 +284,7 @@ double RicMswWellSegment::endMD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::deltaMD() const
double RicMswSegment::deltaMD() const
{
return m_endMD - m_startMD;
}
@@ -297,7 +292,7 @@ double RicMswWellSegment::deltaMD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::startTVD() const
double RicMswSegment::startTVD() const
{
return m_startTVD;
}
@@ -305,7 +300,7 @@ double RicMswWellSegment::startTVD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::endTVD() const
double RicMswSegment::endTVD() const
{
return m_endTVD;
}
@@ -313,7 +308,7 @@ double RicMswWellSegment::endTVD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::deltaTVD() const
double RicMswSegment::deltaTVD() const
{
return m_endTVD - m_startTVD;
}
@@ -321,7 +316,7 @@ double RicMswWellSegment::deltaTVD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::effectiveDiameter() const
double RicMswSegment::effectiveDiameter() const
{
return m_effectiveDiameter;
}
@@ -329,7 +324,7 @@ double RicMswWellSegment::effectiveDiameter() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::holeDiameter() const
double RicMswSegment::holeDiameter() const
{
return m_holeDiameter;
}
@@ -337,7 +332,7 @@ double RicMswWellSegment::holeDiameter() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::openHoleRoughnessFactor() const
double RicMswSegment::openHoleRoughnessFactor() const
{
return m_openHoleRoughnessFactor;
}
@@ -345,7 +340,7 @@ double RicMswWellSegment::openHoleRoughnessFactor() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::skinFactor() const
double RicMswSegment::skinFactor() const
{
return m_skinFactor;
}
@@ -353,7 +348,7 @@ double RicMswWellSegment::skinFactor() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::icdFlowCoefficient() const
double RicMswSegment::icdFlowCoefficient() const
{
return m_icdFlowCoefficient;
}
@@ -361,7 +356,7 @@ double RicMswWellSegment::icdFlowCoefficient() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMswWellSegment::icdArea() const
double RicMswSegment::icdArea() const
{
return m_icdArea;
}
@@ -369,7 +364,7 @@ double RicMswWellSegment::icdArea() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
size_t RicMswWellSegment::subIndex() const
size_t RicMswSegment::subIndex() const
{
return m_subIndex;
}
@@ -377,7 +372,7 @@ size_t RicMswWellSegment::subIndex() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
int RicMswWellSegment::segmentNumber() const
int RicMswSegment::segmentNumber() const
{
return m_segmentNumber;
}
@@ -385,7 +380,7 @@ int RicMswWellSegment::segmentNumber() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const std::vector<RicWellSegmentCompletion>& RicMswWellSegment::completions() const
const std::vector<RicMswCompletion>& RicMswSegment::completions() const
{
return m_completions;
}
@@ -393,7 +388,7 @@ const std::vector<RicWellSegmentCompletion>& RicMswWellSegment::completions() co
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RicWellSegmentCompletion>& RicMswWellSegment::completions()
std::vector<RicMswCompletion>& RicMswSegment::completions()
{
return m_completions;
}
@@ -401,7 +396,7 @@ std::vector<RicWellSegmentCompletion>& RicMswWellSegment::completions()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMswWellSegment::setEffectiveDiameter(double effectiveDiameter)
void RicMswSegment::setEffectiveDiameter(double effectiveDiameter)
{
m_effectiveDiameter = effectiveDiameter;
}
@@ -409,7 +404,7 @@ void RicMswWellSegment::setEffectiveDiameter(double effectiveDiameter)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMswWellSegment::setHoleDiameter(double holeDiameter)
void RicMswSegment::setHoleDiameter(double holeDiameter)
{
m_holeDiameter = holeDiameter;
}
@@ -417,7 +412,7 @@ void RicMswWellSegment::setHoleDiameter(double holeDiameter)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMswWellSegment::setOpenHoleRoughnessFactor(double roughnessFactor)
void RicMswSegment::setOpenHoleRoughnessFactor(double roughnessFactor)
{
m_openHoleRoughnessFactor = roughnessFactor;
}
@@ -425,7 +420,7 @@ void RicMswWellSegment::setOpenHoleRoughnessFactor(double roughnessFactor)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMswWellSegment::setSkinFactor(double skinFactor)
void RicMswSegment::setSkinFactor(double skinFactor)
{
m_skinFactor = skinFactor;
}
@@ -433,7 +428,7 @@ void RicMswWellSegment::setSkinFactor(double skinFactor)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMswWellSegment::setIcdFlowCoefficient(double icdFlowCoefficient)
void RicMswSegment::setIcdFlowCoefficient(double icdFlowCoefficient)
{
m_icdFlowCoefficient = icdFlowCoefficient;
}
@@ -441,7 +436,7 @@ void RicMswWellSegment::setIcdFlowCoefficient(double icdFlowCoefficient)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMswWellSegment::setIcdArea(double icdArea)
void RicMswSegment::setIcdArea(double icdArea)
{
m_icdArea = icdArea;
}
@@ -449,7 +444,7 @@ void RicMswWellSegment::setIcdArea(double icdArea)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMswWellSegment::setSegmentNumber(int segmentNumber)
void RicMswSegment::setSegmentNumber(int segmentNumber)
{
m_segmentNumber = segmentNumber;
}
@@ -457,7 +452,7 @@ void RicMswWellSegment::setSegmentNumber(int segmentNumber)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMswWellSegment::addCompletion(const RicWellSegmentCompletion& completion)
void RicMswSegment::addCompletion(const RicMswCompletion& completion)
{
m_completions.push_back(completion);
}
@@ -465,7 +460,7 @@ void RicMswWellSegment::addCompletion(const RicWellSegmentCompletion& completion
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RicMswWellSegment::operator<(const RicMswWellSegment& rhs) const
bool RicMswSegment::operator<(const RicMswSegment& rhs) const
{
return startMD() < rhs.startMD();
}
@@ -473,15 +468,15 @@ bool RicMswWellSegment::operator<(const RicMswWellSegment& rhs) const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicMultiSegmentWellExportInfo::RicMultiSegmentWellExportInfo(const RimWellPath* wellPath,
RiaEclipseUnitTools::UnitSystem unitSystem,
double initialMD,
const QString& lengthAndDepthText,
const QString& pressureDropText)
RicMswExportInfo::RicMswExportInfo(const RimWellPath* wellPath,
RiaEclipseUnitTools::UnitSystem unitSystem,
double initialMD,
const QString& lengthAndDepthText,
const QString& pressureDropText)
: m_wellPath(wellPath)
, m_initialMD(initialMD)
, m_unitSystem(unitSystem)
, m_topWellBoreVolume(RicMultiSegmentWellExportInfo::defaultDoubleValue())
, m_topWellBoreVolume(RicMswExportInfo::defaultDoubleValue())
, m_linerDiameter(0.15)
, m_roughnessFactor(5.0e-5)
, m_lengthAndDepthText(lengthAndDepthText)
@@ -493,7 +488,7 @@ RicMultiSegmentWellExportInfo::RicMultiSegmentWellExportInfo(const RimWellPath*
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMultiSegmentWellExportInfo::setTopWellBoreVolume(double topWellBoreVolume)
void RicMswExportInfo::setTopWellBoreVolume(double topWellBoreVolume)
{
m_topWellBoreVolume = topWellBoreVolume;
}
@@ -501,7 +496,7 @@ void RicMultiSegmentWellExportInfo::setTopWellBoreVolume(double topWellBoreVolum
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMultiSegmentWellExportInfo::setLinerDiameter(double linerDiameter)
void RicMswExportInfo::setLinerDiameter(double linerDiameter)
{
m_linerDiameter = linerDiameter;
}
@@ -509,7 +504,7 @@ void RicMultiSegmentWellExportInfo::setLinerDiameter(double linerDiameter)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMultiSegmentWellExportInfo::setRoughnessFactor(double roughnessFactor)
void RicMswExportInfo::setRoughnessFactor(double roughnessFactor)
{
m_roughnessFactor = roughnessFactor;
}
@@ -517,7 +512,7 @@ void RicMultiSegmentWellExportInfo::setRoughnessFactor(double roughnessFactor)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMultiSegmentWellExportInfo::setHasSubGridIntersections(bool subGridIntersections)
void RicMswExportInfo::setHasSubGridIntersections(bool subGridIntersections)
{
m_hasSubGridIntersections = subGridIntersections;
}
@@ -525,7 +520,7 @@ void RicMultiSegmentWellExportInfo::setHasSubGridIntersections(bool subGridInter
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMultiSegmentWellExportInfo::addWellSegmentLocation(const RicMswWellSegment& location)
void RicMswExportInfo::addWellSegmentLocation(const RicMswSegment& location)
{
m_wellSegmentLocations.push_back(location);
}
@@ -533,7 +528,7 @@ void RicMultiSegmentWellExportInfo::addWellSegmentLocation(const RicMswWellSegme
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicMultiSegmentWellExportInfo::sortLocations()
void RicMswExportInfo::sortLocations()
{
std::sort(m_wellSegmentLocations.begin(), m_wellSegmentLocations.end());
}
@@ -541,7 +536,7 @@ void RicMultiSegmentWellExportInfo::sortLocations()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const RimWellPath* RicMultiSegmentWellExportInfo::wellPath() const
const RimWellPath* RicMswExportInfo::wellPath() const
{
return m_wellPath;
}
@@ -549,7 +544,7 @@ const RimWellPath* RicMultiSegmentWellExportInfo::wellPath() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMultiSegmentWellExportInfo::initialMD() const
double RicMswExportInfo::initialMD() const
{
return m_initialMD;
}
@@ -557,7 +552,7 @@ double RicMultiSegmentWellExportInfo::initialMD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMultiSegmentWellExportInfo::initialTVD() const
double RicMswExportInfo::initialTVD() const
{
return -m_wellPath->wellPathGeometry()->interpolatedPointAlongWellPath(m_initialMD).z();
}
@@ -565,7 +560,7 @@ double RicMultiSegmentWellExportInfo::initialTVD() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RiaEclipseUnitTools::UnitSystem RicMultiSegmentWellExportInfo::unitSystem() const
RiaEclipseUnitTools::UnitSystem RicMswExportInfo::unitSystem() const
{
return m_unitSystem;
}
@@ -573,7 +568,7 @@ RiaEclipseUnitTools::UnitSystem RicMultiSegmentWellExportInfo::unitSystem() cons
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMultiSegmentWellExportInfo::topWellBoreVolume() const
double RicMswExportInfo::topWellBoreVolume() const
{
return m_topWellBoreVolume;
}
@@ -581,7 +576,7 @@ double RicMultiSegmentWellExportInfo::topWellBoreVolume() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMultiSegmentWellExportInfo::linerDiameter() const
double RicMswExportInfo::linerDiameter() const
{
return m_linerDiameter;
}
@@ -589,7 +584,7 @@ double RicMultiSegmentWellExportInfo::linerDiameter() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMultiSegmentWellExportInfo::roughnessFactor() const
double RicMswExportInfo::roughnessFactor() const
{
return m_roughnessFactor;
}
@@ -597,7 +592,7 @@ double RicMultiSegmentWellExportInfo::roughnessFactor() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RicMultiSegmentWellExportInfo::lengthAndDepthText() const
QString RicMswExportInfo::lengthAndDepthText() const
{
return m_lengthAndDepthText;
}
@@ -605,7 +600,7 @@ QString RicMultiSegmentWellExportInfo::lengthAndDepthText() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RicMultiSegmentWellExportInfo::pressureDropText() const
QString RicMswExportInfo::pressureDropText() const
{
return m_pressureDropText;
}
@@ -613,7 +608,7 @@ QString RicMultiSegmentWellExportInfo::pressureDropText() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RicMultiSegmentWellExportInfo::hasSubGridIntersections() const
bool RicMswExportInfo::hasSubGridIntersections() const
{
return m_hasSubGridIntersections;
}
@@ -621,7 +616,7 @@ bool RicMultiSegmentWellExportInfo::hasSubGridIntersections() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RicMultiSegmentWellExportInfo::defaultDoubleValue()
double RicMswExportInfo::defaultDoubleValue()
{
return std::numeric_limits<double>::infinity();
}
@@ -629,7 +624,7 @@ double RicMultiSegmentWellExportInfo::defaultDoubleValue()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const std::vector<RicMswWellSegment>& RicMultiSegmentWellExportInfo::wellSegmentLocations() const
const std::vector<RicMswSegment>& RicMswExportInfo::wellSegmentLocations() const
{
return m_wellSegmentLocations;
}
@@ -637,7 +632,7 @@ const std::vector<RicMswWellSegment>& RicMultiSegmentWellExportInfo::wellSegment
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RicMswWellSegment>& RicMultiSegmentWellExportInfo::wellSegmentLocations()
std::vector<RicMswSegment>& RicMswExportInfo::wellSegmentLocations()
{
return m_wellSegmentLocations;
}

View File

@@ -33,13 +33,13 @@ class RimFishbonesMultipleSubs;
//==================================================================================================
///
//==================================================================================================
class RicWellSubSegmentCellIntersection
class RicMswSubSegmentCellIntersection
{
public:
RicWellSubSegmentCellIntersection(const QString& gridName, // Pass in empty string for main grid
size_t globalCellIndex,
const cvf::Vec3st& gridLocalCellIJK,
const cvf::Vec3d& lengthsInCell);
RicMswSubSegmentCellIntersection(const QString& gridName, // Pass in empty string for main grid
size_t globalCellIndex,
const cvf::Vec3st& gridLocalCellIJK,
const cvf::Vec3d& lengthsInCell);
const QString& gridName() const;
size_t globalCellIndex() const;
cvf::Vec3st gridLocalCellIJK() const;
@@ -54,13 +54,13 @@ private:
//==================================================================================================
///
//==================================================================================================
class RicWellSubSegment
class RicMswSubSegment
{
public:
RicWellSubSegment(double startMD,
double deltaMD,
double startTVD,
double deltaTVD);
RicMswSubSegment(double startMD,
double deltaMD,
double startTVD,
double deltaTVD);
double startMD() const;
double deltaMD() const;
@@ -72,10 +72,10 @@ public:
void setSegmentNumber(int segmentNumber);
void setAttachedSegmentNumber(int attachedSegmentNumber);
void addIntersection(const RicWellSubSegmentCellIntersection& intersection);
void addIntersection(const RicMswSubSegmentCellIntersection& intersection);
const std::vector<RicWellSubSegmentCellIntersection>& intersections() const;
std::vector<RicWellSubSegmentCellIntersection>& intersections();
const std::vector<RicMswSubSegmentCellIntersection>& intersections() const;
std::vector<RicMswSubSegmentCellIntersection>& intersections();
private:
@@ -86,49 +86,49 @@ private:
int m_segmentNumber;
int m_attachedSegmentNumber;
std::vector<RicWellSubSegmentCellIntersection> m_intersections;
std::vector<RicMswSubSegmentCellIntersection> m_intersections;
};
//==================================================================================================
///
//==================================================================================================
class RicWellSegmentCompletion
class RicMswCompletion
{
public:
RicWellSegmentCompletion(RigCompletionData::CompletionType completionType, const QString& label, size_t index = cvf::UNDEFINED_SIZE_T, int branchNumber = cvf::UNDEFINED_INT);
RicMswCompletion(RigCompletionData::CompletionType completionType, const QString& label, size_t index = cvf::UNDEFINED_SIZE_T, int branchNumber = cvf::UNDEFINED_INT);
RigCompletionData::CompletionType completionType() const;
const QString& label() const;
size_t index() const;
int branchNumber() const;
void setBranchNumber(int branchNumber);
RigCompletionData::CompletionType completionType() const;
const QString& label() const;
size_t index() const;
int branchNumber() const;
void setBranchNumber(int branchNumber);
void addSubSegment(const RicWellSubSegment& subSegment);
void addSubSegment(const RicMswSubSegment& subSegment);
std::vector<RicWellSubSegment>& subSegments();
const std::vector<RicWellSubSegment>& subSegments() const;
std::vector<RicMswSubSegment>& subSegments();
const std::vector<RicMswSubSegment>& subSegments() const;
private:
RigCompletionData::CompletionType m_completionType;
QString m_label;
size_t m_index;
int m_branchNumber;
std::vector<RicWellSubSegment> m_subSegments;
RigCompletionData::CompletionType m_completionType;
QString m_label;
size_t m_index;
int m_branchNumber;
std::vector<RicMswSubSegment> m_subSegments;
};
//==================================================================================================
///
//==================================================================================================
class RicMswWellSegment
class RicMswSegment
{
public:
RicMswWellSegment(const QString& label,
double startMD,
double endMD,
double startTVD,
double endTVD,
size_t subIndex = cvf::UNDEFINED_SIZE_T,
int segmentNumber = -1);
RicMswSegment(const QString& label,
double startMD,
double endMD,
double startTVD,
double endTVD,
size_t subIndex = cvf::UNDEFINED_SIZE_T,
int segmentNumber = -1);
QString label() const;
@@ -149,8 +149,8 @@ public:
size_t subIndex() const;
int segmentNumber() const;
const std::vector<RicWellSegmentCompletion>& completions() const;
std::vector<RicWellSegmentCompletion>& completions();
const std::vector<RicMswCompletion>& completions() const;
std::vector<RicMswCompletion>& completions();
void setEffectiveDiameter(double effectiveDiameter);
void setHoleDiameter(double holeDiameter);
@@ -159,9 +159,9 @@ public:
void setIcdFlowCoefficient(double icdFlowCoefficient);
void setIcdArea(double icdArea);
void setSegmentNumber(int segmentNumber);
void addCompletion(const RicWellSegmentCompletion& completion);
void addCompletion(const RicMswCompletion& completion);
bool operator<(const RicMswWellSegment& rhs) const;
bool operator<(const RicMswSegment& rhs) const;
private:
QString m_label;
@@ -180,24 +180,24 @@ private:
size_t m_subIndex;
int m_segmentNumber;
std::vector<RicWellSegmentCompletion> m_completions;
std::vector<RicMswCompletion> m_completions;
};
class RicMultiSegmentWellExportInfo
class RicMswExportInfo
{
public:
RicMultiSegmentWellExportInfo(const RimWellPath* wellPath,
RiaEclipseUnitTools::UnitSystem unitSystem,
double initialMD,
const QString& lengthAndDepthText,
const QString& pressureDropText);
RicMswExportInfo(const RimWellPath* wellPath,
RiaEclipseUnitTools::UnitSystem unitSystem,
double initialMD,
const QString& lengthAndDepthText,
const QString& pressureDropText);
void setTopWellBoreVolume(double topWellBoreVolume);
void setLinerDiameter(double linerDiameter);
void setRoughnessFactor(double roughnessFactor);
void setHasSubGridIntersections(bool subGridIntersections);
void addWellSegmentLocation(const RicMswWellSegment& location);
void addWellSegmentLocation(const RicMswSegment& location);
void sortLocations();
const RimWellPath* wellPath() const;
@@ -212,20 +212,19 @@ public:
bool hasSubGridIntersections() const;
static double defaultDoubleValue();
const std::vector<RicMswWellSegment>& wellSegmentLocations() const;
std::vector<RicMswWellSegment>& wellSegmentLocations();
const std::vector<RicMswSegment>& wellSegmentLocations() const;
std::vector<RicMswSegment>& wellSegmentLocations();
private:
const RimWellPath* m_wellPath;
RiaEclipseUnitTools::UnitSystem m_unitSystem;
double m_initialMD;
double m_topWellBoreVolume;
double m_linerDiameter;
double m_roughnessFactor;
QString m_lengthAndDepthText;
QString m_pressureDropText;
bool m_hasSubGridIntersections;
std::vector<RicMswWellSegment> m_wellSegmentLocations;
const RimWellPath* m_wellPath;
RiaEclipseUnitTools::UnitSystem m_unitSystem;
double m_initialMD;
double m_topWellBoreVolume;
double m_linerDiameter;
double m_roughnessFactor;
QString m_lengthAndDepthText;
QString m_pressureDropText;
bool m_hasSubGridIntersections;
std::vector<RicMswSegment> m_wellSegmentLocations;
};

View File

@@ -404,7 +404,7 @@ std::vector<RigCompletionData>
///
//--------------------------------------------------------------------------------------------------
void RicWellPathExportCompletionDataFeatureImpl::generateWelsegsTable(RifEclipseDataTableFormatter& formatter,
const RicMultiSegmentWellExportInfo& exportInfo)
const RicMswExportInfo& exportInfo)
{
formatter.keyword("WELSEGS");
@@ -425,7 +425,7 @@ void RicWellPathExportCompletionDataFeatureImpl::generateWelsegsTable(RifEclipse
formatter.add(exportInfo.wellPath()->name());
formatter.add(startTVD);
formatter.add(startMD);
formatter.addValueOrDefaultMarker(exportInfo.topWellBoreVolume(), RicMultiSegmentWellExportInfo::defaultDoubleValue());
formatter.addValueOrDefaultMarker(exportInfo.topWellBoreVolume(), RicMswExportInfo::defaultDoubleValue());
formatter.add(exportInfo.lengthAndDepthText());
formatter.add(exportInfo.pressureDropText());
@@ -449,7 +449,7 @@ void RicWellPathExportCompletionDataFeatureImpl::generateWelsegsTable(RifEclipse
{
formatter.comment("Main stem");
for (const RicMswWellSegment& location : exportInfo.wellSegmentLocations())
for (const RicMswSegment& location : exportInfo.wellSegmentLocations())
{
double depth = 0;
double length = 0;
@@ -485,14 +485,14 @@ void RicWellPathExportCompletionDataFeatureImpl::generateWelsegsTable(RifEclipse
formatter.comment("Laterals");
formatter.comment("Diam: MSW - Tubing Radius");
formatter.comment("Rough: MSW - Open Hole Roughness Factor");
for (const RicMswWellSegment& location : exportInfo.wellSegmentLocations())
for (const RicMswSegment& location : exportInfo.wellSegmentLocations())
{
if (location.completions().empty())
{
continue;
}
for (const RicWellSegmentCompletion& completion : location.completions())
for (const RicMswCompletion& completion : location.completions())
{
if (completion.completionType() == RigCompletionData::ICD) // Found ICD
{
@@ -519,7 +519,7 @@ void RicWellPathExportCompletionDataFeatureImpl::generateWelsegsTable(RifEclipse
{
formatter.comment(QString("%1 connected to %2").arg(completion.label()).arg(location.label()));
}
for (const RicWellSubSegment& subSegment : completion.subSegments())
for (const RicMswSubSegment& subSegment : completion.subSegments())
{
double depth = 0;
double length = 0;
@@ -556,7 +556,7 @@ void RicWellPathExportCompletionDataFeatureImpl::generateWelsegsTable(RifEclipse
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellPathExportCompletionDataFeatureImpl::generateCompsegTables(RifEclipseDataTableFormatter& formatter, const RicMultiSegmentWellExportInfo& exportInfo)
void RicWellPathExportCompletionDataFeatureImpl::generateCompsegTables(RifEclipseDataTableFormatter& formatter, const RicMswExportInfo& exportInfo)
{
generateCompsegTable(formatter, exportInfo, false);
if (exportInfo.hasSubGridIntersections())
@@ -568,9 +568,9 @@ void RicWellPathExportCompletionDataFeatureImpl::generateCompsegTables(RifEclips
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellPathExportCompletionDataFeatureImpl::generateCompsegTable(RifEclipseDataTableFormatter& formatter,
const RicMultiSegmentWellExportInfo& exportInfo,
bool exportSubGridIntersections)
void RicWellPathExportCompletionDataFeatureImpl::generateCompsegTable(RifEclipseDataTableFormatter& formatter,
const RicMswExportInfo& exportInfo,
bool exportSubGridIntersections)
{
if (exportSubGridIntersections)
{
@@ -608,20 +608,20 @@ void RicWellPathExportCompletionDataFeatureImpl::generateCompsegTable(RifEclipse
formatter.header(allHeaders);
}
for (const RicMswWellSegment& location : exportInfo.wellSegmentLocations())
for (const RicMswSegment& location : exportInfo.wellSegmentLocations())
{
double startMD = location.startMD();
for (const RicWellSegmentCompletion& completion : location.completions())
for (const RicMswCompletion& completion : location.completions())
{
for (const RicWellSubSegment& segment : completion.subSegments())
for (const RicMswSubSegment& segment : completion.subSegments())
{
if (completion.completionType() == RigCompletionData::ICD)
{
startMD = segment.startMD();
}
for (const RicWellSubSegmentCellIntersection& intersection : segment.intersections())
for (const RicMswSubSegmentCellIntersection& intersection : segment.intersections())
{
bool isSubGridIntersection = !intersection.gridName().isEmpty();
if (isSubGridIntersection == exportSubGridIntersections)
@@ -650,7 +650,7 @@ void RicWellPathExportCompletionDataFeatureImpl::generateCompsegTable(RifEclipse
///
//--------------------------------------------------------------------------------------------------
void RicWellPathExportCompletionDataFeatureImpl::generateWsegvalvTable(RifEclipseDataTableFormatter& formatter,
const RicMultiSegmentWellExportInfo& exportInfo)
const RicMswExportInfo& exportInfo)
{
{
formatter.keyword("WSEGVALV");
@@ -662,9 +662,9 @@ void RicWellPathExportCompletionDataFeatureImpl::generateWsegvalvTable(RifEclips
};
formatter.header(header);
}
for (const RicMswWellSegment& location : exportInfo.wellSegmentLocations())
for (const RicMswSegment& location : exportInfo.wellSegmentLocations())
{
for (const RicWellSegmentCompletion& completion : location.completions())
for (const RicMswCompletion& completion : location.completions())
{
if (completion.completionType() == RigCompletionData::ICD)
{
@@ -1214,9 +1214,9 @@ std::vector<RigCompletionData> RicWellPathExportCompletionDataFeatureImpl::gener
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicMultiSegmentWellExportInfo
RicWellPathExportCompletionDataFeatureImpl::generateFishbonesMswExportInfo(const RimEclipseCase* caseToApply,
const RimWellPath* wellPath)
RicMswExportInfo
RicWellPathExportCompletionDataFeatureImpl::generateFishbonesMswExportInfo(const RimEclipseCase* caseToApply,
const RimWellPath* wellPath)
{
std::vector<RimFishbonesMultipleSubs*> fishbonesSubs;
@@ -1237,18 +1237,19 @@ RicMultiSegmentWellExportInfo
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::generateFishbonesMswExportInfo(
RicMswExportInfo
RicWellPathExportCompletionDataFeatureImpl::generateFishbonesMswExportInfo(
const RimEclipseCase* caseToApply,
const RimWellPath* wellPath,
const std::vector<RimFishbonesMultipleSubs*>& fishbonesSubs)
{
RiaEclipseUnitTools::UnitSystem unitSystem = caseToApply->eclipseCaseData()->unitsType();
RicMultiSegmentWellExportInfo exportInfo(wellPath,
unitSystem,
wellPath->fishbonesCollection()->startMD(),
wellPath->fishbonesCollection()->lengthAndDepth().text(),
wellPath->fishbonesCollection()->pressureDrop().text());
RicMswExportInfo exportInfo(wellPath,
unitSystem,
wellPath->fishbonesCollection()->startMD(),
wellPath->fishbonesCollection()->lengthAndDepth().text(),
wellPath->fishbonesCollection()->pressureDrop().text());
exportInfo.setLinerDiameter(wellPath->fishbonesCollection()->linerDiameter(unitSystem));
exportInfo.setRoughnessFactor(wellPath->fishbonesCollection()->roughnessFactor(unitSystem));
@@ -1264,8 +1265,8 @@ RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::genera
double startTVD = -position.z();
double endTVD = -endPosition.z();
RicMswWellSegment location =
RicMswWellSegment(subs->generatedName(), startMD, endMD, startTVD, endTVD, sub.subIndex);
RicMswSegment location =
RicMswSegment(subs->generatedName(), startMD, endMD, startTVD, endTVD, sub.subIndex);
location.setEffectiveDiameter(subs->effectiveDiameter(unitSystem));
location.setHoleDiameter(subs->holeDiameter(unitSystem));
location.setOpenHoleRoughnessFactor(subs->openHoleRoughnessFactor(unitSystem));
@@ -1275,15 +1276,15 @@ RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::genera
location.setIcdArea(icdOrificeRadius * icdOrificeRadius * cvf::PI_D * subs->icdCount());
// Add completion for ICD
RicWellSegmentCompletion icdCompletion(RigCompletionData::ICD, QString("ICD"));
RicWellSubSegment icdSegment(endMD, 0.1, -endPosition.z(), 0.0);
RicMswCompletion icdCompletion(RigCompletionData::ICD, QString("ICD"));
RicMswSubSegment icdSegment(endMD, 0.1, -endPosition.z(), 0.0);
icdCompletion.addSubSegment(icdSegment);
location.addCompletion(icdCompletion);
for (size_t lateralIndex : sub.lateralIndices)
{
QString label = QString("Lateral %1").arg(lateralIndex);
location.addCompletion(RicWellSegmentCompletion(RigCompletionData::FISHBONES, label, lateralIndex));
location.addCompletion(RicMswCompletion(RigCompletionData::FISHBONES, label, lateralIndex));
}
assignFishbonesLateralIntersections(caseToApply, subs, &location, &foundSubGridIntersections);
@@ -1304,7 +1305,7 @@ RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::genera
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::generateFracturesMswExportInfo(RimEclipseCase* caseToApply, const RimWellPath* wellPath)
RicMswExportInfo RicWellPathExportCompletionDataFeatureImpl::generateFracturesMswExportInfo(RimEclipseCase* caseToApply, const RimWellPath* wellPath)
{
std::vector<RimWellPathFracture*> fractures;
@@ -1325,7 +1326,7 @@ RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::genera
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::generateFracturesMswExportInfo(RimEclipseCase* caseToApply, const RimWellPath* wellPath, const std::vector<RimWellPathFracture*>& fractures)
RicMswExportInfo RicWellPathExportCompletionDataFeatureImpl::generateFracturesMswExportInfo(RimEclipseCase* caseToApply, const RimWellPath* wellPath, const std::vector<RimWellPathFracture*>& fractures)
{
const RigMainGrid* grid = caseToApply->eclipseCaseData()->mainGrid();
@@ -1347,7 +1348,7 @@ RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::genera
initialMD = intersections.front().startMD;
}
RicMultiSegmentWellExportInfo exportInfo(wellPath,
RicMswExportInfo exportInfo(wellPath,
unitSystem,
initialMD,
QString("INC"),
@@ -1374,7 +1375,7 @@ RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::genera
size_t i = 0u, j = 0u, k = 0u;
localGrid->ijkFromCellIndex(localGridIdx, &i, &j, &k);
QString label = QString("Main stem segment %1").arg(++mainBoreSegment);
RicMswWellSegment location(label, cellIntInfo.startMD, cellIntInfo.endMD, startTVD, endTVD);
RicMswSegment location(label, cellIntInfo.startMD, cellIntInfo.endMD, startTVD, endTVD);
// Check if fractures are to be assigned to current main bore segment
for (RimWellPathFracture* fracture : fractures)
@@ -1418,14 +1419,14 @@ RicMultiSegmentWellExportInfo RicWellPathExportCompletionDataFeatureImpl::genera
//--------------------------------------------------------------------------------------------------
void RicWellPathExportCompletionDataFeatureImpl::assignFishbonesLateralIntersections(const RimEclipseCase* caseToApply,
const RimFishbonesMultipleSubs* fishbonesSubs,
RicMswWellSegment* location,
RicMswSegment* location,
bool* foundSubGridIntersections)
{
CVF_ASSERT(foundSubGridIntersections != nullptr);
const RigMainGrid* grid = caseToApply->eclipseCaseData()->mainGrid();
for (RicWellSegmentCompletion& completion : location->completions())
for (RicMswCompletion& completion : location->completions())
{
if (completion.completionType() != RigCompletionData::FISHBONES)
{
@@ -1471,12 +1472,12 @@ void RicWellPathExportCompletionDataFeatureImpl::assignFishbonesLateralIntersect
size_t i = 0u, j = 0u, k = 0u;
localGrid->ijkFromCellIndex(localGridIdx, &i, &j, &k);
RicWellSubSegment subSegment (previousExitMD,
RicMswSubSegment subSegment (previousExitMD,
cellIntInfo.endMD - previousExitMD,
previousExitTVD,
cellIntInfo.endPoint.z() - previousExitTVD);
RicWellSubSegmentCellIntersection intersection(gridName,
RicMswSubSegmentCellIntersection intersection(gridName,
cellIntInfo.globCellIndex,
cvf::Vec3st(i, j, k),
cellIntInfo.intersectionLengthsInCellCS);
@@ -1495,14 +1496,14 @@ void RicWellPathExportCompletionDataFeatureImpl::assignFishbonesLateralIntersect
void RicWellPathExportCompletionDataFeatureImpl::assignFractureIntersections(const RimEclipseCase* caseToApply,
const RimWellPathFracture* fracture,
const std::vector<RigCompletionData>& completionData,
RicMswWellSegment* location,
RicMswSegment* location,
bool* foundSubGridIntersections)
{
CVF_ASSERT(foundSubGridIntersections != nullptr);
const RigMainGrid* grid = caseToApply->eclipseCaseData()->mainGrid();
double fractureMD = fracture->fractureMD();
RicWellSegmentCompletion fractureCompletion(RigCompletionData::FRACTURE, fracture->name());
RicMswCompletion fractureCompletion(RigCompletionData::FRACTURE, fracture->name());
double position = fracture->fractureMD();
double width = fracture->fractureTemplate()->computeFractureWidth(fracture);
@@ -1513,7 +1514,7 @@ void RicWellPathExportCompletionDataFeatureImpl::assignFractureIntersections(con
width = perforationLength;
}
RicWellSubSegment subSegment(position,
RicMswSubSegment subSegment(position,
width,
0.0,
0.0);
@@ -1523,7 +1524,7 @@ void RicWellPathExportCompletionDataFeatureImpl::assignFractureIntersections(con
const RigCompletionDataGridCell& cell = compIntersection.completionDataGridCell();
cvf::Vec3st localIJK(cell.localCellIndexI(), cell.localCellIndexJ(), cell.localCellIndexK());
RicWellSubSegmentCellIntersection intersection(cell.lgrName(),
RicMswSubSegmentCellIntersection intersection(cell.lgrName(),
cell.globalCellIndex(),
localIJK,
cvf::Vec3d::ZERO);
@@ -1537,12 +1538,12 @@ void RicWellPathExportCompletionDataFeatureImpl::assignFractureIntersections(con
///
//--------------------------------------------------------------------------------------------------
void RicWellPathExportCompletionDataFeatureImpl::assignBranchAndSegmentNumbers(const RimEclipseCase* caseToApply,
RicMswWellSegment* location,
RicMswSegment* location,
int* branchNum,
int* segmentNum)
{
int icdSegmentNumber = cvf::UNDEFINED_INT;
for (RicWellSegmentCompletion& completion : location->completions())
for (RicMswCompletion& completion : location->completions())
{
if (completion.completionType() != RigCompletionData::ICD)
{
@@ -1578,16 +1579,16 @@ void RicWellPathExportCompletionDataFeatureImpl::assignBranchAndSegmentNumbers(c
///
//--------------------------------------------------------------------------------------------------
void RicWellPathExportCompletionDataFeatureImpl::assignBranchAndSegmentNumbers(const RimEclipseCase* caseToApply,
RicMultiSegmentWellExportInfo* exportInfo)
RicMswExportInfo* exportInfo)
{
int segmentNumber = 1;
int branchNumber = 1;
// First loop over the locations so that each segment on the main stem is an incremental number
for (RicMswWellSegment& location : exportInfo->wellSegmentLocations())
for (RicMswSegment& location : exportInfo->wellSegmentLocations())
{
location.setSegmentNumber(++segmentNumber);
for (RicWellSegmentCompletion& completion : location.completions())
for (RicMswCompletion& completion : location.completions())
{
if (completion.completionType() == RigCompletionData::ICD)
{
@@ -1598,7 +1599,7 @@ void RicWellPathExportCompletionDataFeatureImpl::assignBranchAndSegmentNumbers(c
}
// Then assign branch and segment numbers to each completion sub segment
for (RicMswWellSegment& location : exportInfo->wellSegmentLocations())
for (RicMswSegment& location : exportInfo->wellSegmentLocations())
{
assignBranchAndSegmentNumbers(caseToApply, &location, &branchNumber, &segmentNumber);
}

View File

@@ -47,17 +47,17 @@ class RicWellPathExportCompletionDataFeatureImpl
{
public:
static RicMultiSegmentWellExportInfo generateFishbonesMswExportInfo(const RimEclipseCase* caseToApply,
static RicMswExportInfo generateFishbonesMswExportInfo(const RimEclipseCase* caseToApply,
const RimWellPath* wellPath);
static RicMultiSegmentWellExportInfo generateFishbonesMswExportInfo(const RimEclipseCase* caseToApply,
static RicMswExportInfo generateFishbonesMswExportInfo(const RimEclipseCase* caseToApply,
const RimWellPath* wellPath,
const std::vector<RimFishbonesMultipleSubs*>& fishbonesSubs);
static RicMultiSegmentWellExportInfo generateFracturesMswExportInfo(RimEclipseCase* caseToApply,
static RicMswExportInfo generateFracturesMswExportInfo(RimEclipseCase* caseToApply,
const RimWellPath* wellPath);
static RicMultiSegmentWellExportInfo generateFracturesMswExportInfo(RimEclipseCase* caseToApply,
static RicMswExportInfo generateFracturesMswExportInfo(RimEclipseCase* caseToApply,
const RimWellPath* wellPath,
const std::vector<RimWellPathFracture*>& fractures);
@@ -88,14 +88,14 @@ public:
size_t timeStepIndex);
static void generateWelsegsTable(RifEclipseDataTableFormatter& formatter,
const RicMultiSegmentWellExportInfo& exportInfo);
const RicMswExportInfo& exportInfo);
static void generateCompsegTables(RifEclipseDataTableFormatter& formatter,
const RicMultiSegmentWellExportInfo& exportInfo);
const RicMswExportInfo& exportInfo);
static void generateCompsegTable(RifEclipseDataTableFormatter& formatter,
const RicMultiSegmentWellExportInfo& exportInfo,
const RicMswExportInfo& exportInfo,
bool exportSubGridIntersections);
static void generateWsegvalvTable(RifEclipseDataTableFormatter& formatter,
const RicMultiSegmentWellExportInfo& exportInfo);
const RicMswExportInfo& exportInfo);
private:
static double calculateTransmissibilityAsEclipseDoes(RimEclipseCase* eclipseCase,
@@ -134,21 +134,21 @@ private:
static void assignFishbonesLateralIntersections(const RimEclipseCase* caseToApply,
const RimFishbonesMultipleSubs* fishbonesSubs,
RicMswWellSegment* location,
RicMswSegment* location,
bool* foundSubGridIntersections);
static void assignFractureIntersections(const RimEclipseCase* caseToApply,
const RimWellPathFracture* fracture,
const std::vector<RigCompletionData>& completionData,
RicMswWellSegment* location,
RicMswSegment* location,
bool* foundSubGridIntersections);
static void assignBranchAndSegmentNumbers(const RimEclipseCase* caseToApply,
RicMswWellSegment* location,
int* branchNum,
int* segmentNum);
static void assignBranchAndSegmentNumbers(const RimEclipseCase* caseToApply,
RicMultiSegmentWellExportInfo* exportInfo);
RicMswSegment* location,
int* branchNum,
int* segmentNum);
static void assignBranchAndSegmentNumbers(const RimEclipseCase* caseToApply,
RicMswExportInfo* exportInfo);
static void appendCompletionData(std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>* completionData,
const std::vector<RigCompletionData>& data);