mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 18:01:08 -06:00
#1487 - pre-proto - Moving private functions to private, removing some functions / parameters not in use.
This commit is contained in:
parent
38315f7bc2
commit
7420c069c7
@ -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;
|
||||
@ -895,7 +895,7 @@ void RimStimPlanFractureTemplate::setupStimPlanCells()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::vector<RigStimPlanFracTemplateCell>& RimStimPlanFractureTemplate::getStimPlanCells()
|
||||
const std::vector<RigStimPlanFracTemplateCell>& RimStimPlanFractureTemplate::getStimPlanCells() const
|
||||
{
|
||||
return m_stimPlanCells;
|
||||
}
|
||||
|
@ -56,6 +56,8 @@ public:
|
||||
caf::PdmField<bool> showStimPlanMesh;
|
||||
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly) override;
|
||||
void loadDataAndUpdate();
|
||||
|
||||
void setFileName(const QString& fileName);
|
||||
const QString& fileName();
|
||||
@ -65,40 +67,26 @@ public:
|
||||
std::vector<cvf::Vec3f> fracturePolygon(RimDefines::UnitSystem fractureUnit);
|
||||
void sortPolygon(std::vector<cvf::Vec3f> &polygon);
|
||||
|
||||
size_t stimPlanGridNumberOfRows() const;
|
||||
size_t stimPlanGridNumberOfColums() const;
|
||||
|
||||
|
||||
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;
|
||||
|
||||
void getStimPlanDataAsPolygonsAndValues(std::vector<std::vector<cvf::Vec3d> > &cellsAsPolygons, std::vector<double> ¶meterValue, const QString& resultName, const QString& unitName, size_t timeStepIndex);
|
||||
void setupStimPlanCells();
|
||||
const std::vector<RigStimPlanFracTemplateCell>& getStimPlanCells();
|
||||
std::vector<cvf::Vec3d> getStimPlanRowPolygon(size_t i);
|
||||
std::vector<cvf::Vec3d> getStimPlanColPolygon(size_t j);
|
||||
|
||||
std::pair<size_t, size_t> getStimPlanCellAtWellCenter();
|
||||
|
||||
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)
|
||||
|
||||
|
||||
|
||||
|
||||
void loadDataAndUpdate(); //TODO: Update m_stimPlanCells
|
||||
void setDefaultsBasedOnXMLfile();
|
||||
std::vector<std::vector<double>> getDataAtTimeIndex(const QString& resultName, const QString& unitName, size_t timeStepIndex) const;
|
||||
std::vector<std::vector<double>> getMirroredDataAtTimeIndex(const QString& resultName, const QString& unitName, size_t timeStepIndex) const;
|
||||
|
||||
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly) override;
|
||||
void setupStimPlanCells();
|
||||
const std::vector<RigStimPlanFracTemplateCell>& getStimPlanCells() const;
|
||||
size_t getGlobalIndexFromIJ(size_t i, size_t j) const;
|
||||
const RigStimPlanFracTemplateCell& stimPlanCellFromIndex(size_t index) const;
|
||||
size_t stimPlanGridNumberOfRows() const;
|
||||
size_t stimPlanGridNumberOfColums() const;
|
||||
|
||||
std::pair<size_t, size_t> getStimPlanCellAtWellCenter();
|
||||
|
||||
|
||||
//Functions used by upscaling only
|
||||
void getStimPlanDataAsPolygonsAndValues(std::vector<std::vector<cvf::Vec3d> > &cellsAsPolygons, std::vector<double> ¶meterValue, const QString& resultName, const QString& unitName, size_t timeStepIndex);
|
||||
std::vector<cvf::Vec3d> getStimPlanRowPolygon(size_t i);
|
||||
std::vector<cvf::Vec3d> getStimPlanColPolygon(size_t j);
|
||||
|
||||
protected:
|
||||
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering);
|
||||
@ -114,6 +102,9 @@ private:
|
||||
static QString getAttributeValueString(QXmlStreamReader &xmlStream, QString parameterName);
|
||||
void getGriddingValues(QXmlStreamReader &xmlStream, std::vector<double>& gridValues, size_t& startNegValues);
|
||||
std::vector<std::vector<double>> getAllDepthDataAtTimeStep(QXmlStreamReader &xmlStream, size_t startingNegValuesXs);
|
||||
std::vector<std::vector<double>> getMirroredDataAtTimeIndex(const QString& resultName, const QString& unitName, size_t timeStepIndex) const;
|
||||
std::vector<double> getNegAndPosXcoords() const;
|
||||
std::vector<double> adjustedDepthCoordsAroundWellPathPosition() const;
|
||||
|
||||
bool numberOfParameterValuesOK(std::vector<std::vector<double>> propertyValuesAtTimestep);
|
||||
bool setPropertyForPolygonDefault();
|
||||
|
@ -44,15 +44,6 @@ RigStimPlanFracTemplateCell::~RigStimPlanFracTemplateCell()
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigStimPlanFracTemplateCell::setTransmissibilityInFracture(double valueHorizontal, double valueVertical)
|
||||
{
|
||||
m_transmissibilityInFractureHorizontal = valueHorizontal;
|
||||
m_transmissibilityInFractureVertical = valueVertical;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -37,18 +37,15 @@ public:
|
||||
|
||||
virtual ~RigStimPlanFracTemplateCell();
|
||||
|
||||
std::vector<cvf::Vec3d> getPolygon() const { return m_polygon; }
|
||||
const std::vector<cvf::Vec3d>& getPolygon() const { return m_polygon; }
|
||||
double getConductivtyValue() const { return m_concutivityValue; }
|
||||
double getDisplayValue() { return m_displayValue; }
|
||||
size_t getI() const { return m_i; }
|
||||
size_t getJ() const { return m_j; }
|
||||
double getVerticalTransmissibilityInFracture() { return m_transmissibilityInFractureVertical; }
|
||||
double getHorizontalTransmissibilityInFracture() { return m_transmissibilityInFractureHorizontal; }
|
||||
|
||||
|
||||
void setConductivityValue(double cond) { m_concutivityValue = cond; }
|
||||
void setDisplayValue(double value) { m_displayValue = value; };
|
||||
void setTransmissibilityInFracture(double valueHorizontal, double valueVertical);
|
||||
|
||||
double cellSizeX() const;
|
||||
double cellSizeZ() const;
|
||||
@ -59,7 +56,4 @@ private:
|
||||
size_t m_i;
|
||||
size_t m_j;
|
||||
|
||||
double m_transmissibilityInFractureVertical;
|
||||
double m_transmissibilityInFractureHorizontal;
|
||||
|
||||
};
|
||||
};
|
||||
|
@ -64,8 +64,7 @@ class RigStimPlanFracTemplateCell{
|
||||
double m_conductivityValue;
|
||||
size_t m_i;
|
||||
size_t m_j;
|
||||
double m_transmissibilityInFractureVertical;
|
||||
double m_transmissibilityInFractureHorizontal;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user