mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Constifiy some more of StimPlanFractureTemplate
This commit is contained in:
@@ -697,7 +697,7 @@ void RimStimPlanFractureTemplate::fractureGeometry(std::vector<cvf::Vec3f>* node
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<double> RimStimPlanFractureTemplate::getNegAndPosXcoords()
|
||||
std::vector<double> RimStimPlanFractureTemplate::getNegAndPosXcoords() const
|
||||
{
|
||||
std::vector<double> allXcoords;
|
||||
for (const double& xCoord : m_stimPlanFractureDefinitionData->gridXs)
|
||||
@@ -719,7 +719,7 @@ std::vector<double> RimStimPlanFractureTemplate::getNegAndPosXcoords()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<double> RimStimPlanFractureTemplate::adjustedDepthCoordsAroundWellPathPosition()
|
||||
std::vector<double> RimStimPlanFractureTemplate::adjustedDepthCoordsAroundWellPathPosition() const
|
||||
{
|
||||
std::vector<double> depthRelativeToWellPath;
|
||||
|
||||
@@ -735,7 +735,7 @@ std::vector<double> RimStimPlanFractureTemplate::adjustedDepthCoordsAroundWellP
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<double> RimStimPlanFractureTemplate::getStimPlanTimeValues()
|
||||
std::vector<double> RimStimPlanFractureTemplate::getStimPlanTimeValues()
|
||||
{
|
||||
if (m_stimPlanFractureDefinitionData.isNull()) loadDataAndUpdate();
|
||||
return m_stimPlanFractureDefinitionData->timeSteps;
|
||||
@@ -957,7 +957,7 @@ std::pair<size_t, size_t> RimStimPlanFractureTemplate::getStimPlanCellAtWellCent
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RimStimPlanFractureTemplate::getGlobalIndexFromIJ(size_t i, size_t j)
|
||||
size_t RimStimPlanFractureTemplate::getGlobalIndexFromIJ(size_t i, size_t j) const
|
||||
{
|
||||
size_t length_I = stimPlanGridNumberOfRows() - 1;
|
||||
size_t globIndex = j * length_I + i;
|
||||
@@ -1112,7 +1112,7 @@ void RimStimPlanFractureTemplate::sortPolygon(std::vector<cvf::Vec3f> &polygon)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RimStimPlanFractureTemplate::stimPlanGridNumberOfColums()
|
||||
size_t RimStimPlanFractureTemplate::stimPlanGridNumberOfColums() const
|
||||
{
|
||||
return getNegAndPosXcoords().size();
|
||||
}
|
||||
@@ -1120,7 +1120,7 @@ size_t RimStimPlanFractureTemplate::stimPlanGridNumberOfColums()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RimStimPlanFractureTemplate::stimPlanGridNumberOfRows()
|
||||
size_t RimStimPlanFractureTemplate::stimPlanGridNumberOfRows() const
|
||||
{
|
||||
return adjustedDepthCoordsAroundWellPathPosition().size();
|
||||
}
|
||||
|
||||
@@ -65,12 +65,12 @@ public:
|
||||
std::vector<cvf::Vec3f> fracturePolygon(RimDefines::UnitSystem fractureUnit);
|
||||
void sortPolygon(std::vector<cvf::Vec3f> &polygon);
|
||||
|
||||
size_t stimPlanGridNumberOfRows();
|
||||
size_t stimPlanGridNumberOfColums();
|
||||
size_t stimPlanGridNumberOfRows() const;
|
||||
size_t stimPlanGridNumberOfColums() const;
|
||||
|
||||
|
||||
std::vector<double> getNegAndPosXcoords();
|
||||
std::vector<double> adjustedDepthCoordsAroundWellPathPosition();
|
||||
std::vector<double> getNegAndPosXcoords() const;
|
||||
std::vector<double> adjustedDepthCoordsAroundWellPathPosition() const;
|
||||
std::vector<double> getStimPlanTimeValues();
|
||||
std::vector<std::pair<QString, QString> > getStimPlanPropertyNamesUnits() const;
|
||||
void computeMinMax(const QString& resultName, const QString& unitName, double* minValue, double* maxValue) const;
|
||||
@@ -83,8 +83,8 @@ public:
|
||||
|
||||
std::pair<size_t, size_t> getStimPlanCellAtWellCenter();
|
||||
|
||||
size_t getGlobalIndexFromIJ(size_t i, size_t j);
|
||||
const RigStimPlanFracTemplateCell& stimPlanCellFromIndex(size_t index) const;
|
||||
size_t getGlobalIndexFromIJ(size_t i, size_t j) const;
|
||||
const RigStimPlanFracTemplateCell& stimPlanCellFromIndex(size_t index) const;
|
||||
|
||||
//TODO: Functions for finding perforated stimPlanCells
|
||||
//Radial flow: Single cell (at 0,0)
|
||||
|
||||
Reference in New Issue
Block a user