mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2389 Fracture: Set perforation length and depth from file values
This commit is contained in:
@@ -42,9 +42,9 @@ RigStimPlanResultFrames::RigStimPlanResultFrames()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigStimPlanFractureDefinition::RigStimPlanFractureDefinition() : m_unitSet(RiaEclipseUnitTools::UNITS_UNKNOWN)
|
||||
RigStimPlanFractureDefinition::RigStimPlanFractureDefinition() :
|
||||
m_unitSet(RiaEclipseUnitTools::UNITS_UNKNOWN), m_topPerfTvd(HUGE_VAL), m_bottomPerfTvd(HUGE_VAL)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -55,6 +55,64 @@ RigStimPlanFractureDefinition::~RigStimPlanFractureDefinition()
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigStimPlanFractureDefinition::setTvdToTopPerf(double topPerfTvd, RiaDefines::DepthUnitType unit)
|
||||
{
|
||||
if (unit == RiaDefines::UNIT_METER)
|
||||
{
|
||||
if (m_unitSet == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_topPerfTvd = RiaEclipseUnitTools::meterToFeet(topPerfTvd);
|
||||
}
|
||||
else if (m_unitSet == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_topPerfTvd = topPerfTvd;
|
||||
}
|
||||
}
|
||||
else if (unit == RiaDefines::UNIT_FEET)
|
||||
{
|
||||
if (m_unitSet == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_topPerfTvd = topPerfTvd;
|
||||
}
|
||||
else if (m_unitSet == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_topPerfTvd = RiaEclipseUnitTools::feetToMeter(topPerfTvd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigStimPlanFractureDefinition::setTvdToBottomPerf(double bottomPerfTvd, RiaDefines::DepthUnitType unit)
|
||||
{
|
||||
if (unit == RiaDefines::UNIT_METER)
|
||||
{
|
||||
if (m_unitSet == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_bottomPerfTvd = RiaEclipseUnitTools::meterToFeet(bottomPerfTvd);
|
||||
}
|
||||
else if (m_unitSet == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_bottomPerfTvd = bottomPerfTvd;
|
||||
}
|
||||
}
|
||||
else if (unit == RiaDefines::UNIT_FEET)
|
||||
{
|
||||
if (m_unitSet == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_bottomPerfTvd = bottomPerfTvd;
|
||||
}
|
||||
else if (m_unitSet == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_bottomPerfTvd = RiaEclipseUnitTools::feetToMeter(bottomPerfTvd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -65,6 +65,11 @@ public:
|
||||
double maxDepth() const { return depths.back(); }
|
||||
size_t depthCount() const { return depths.size(); }
|
||||
|
||||
double topPerfTvd() const { return m_topPerfTvd; }
|
||||
double bottomPerfTvd() const { return m_bottomPerfTvd; }
|
||||
void setTvdToTopPerf(double topPerfTvd, RiaDefines::DepthUnitType unit);
|
||||
void setTvdToBottomPerf(double bottomPerfTvd, RiaDefines::DepthUnitType unit);
|
||||
|
||||
// Grid Geometry
|
||||
|
||||
std::vector<double> getNegAndPosXcoords() const;
|
||||
@@ -128,6 +133,9 @@ private:
|
||||
std::vector<double> m_gridYs;
|
||||
std::vector<double> depths;
|
||||
|
||||
double m_topPerfTvd;
|
||||
double m_bottomPerfTvd;
|
||||
|
||||
std::vector<double> m_timeSteps;
|
||||
std::vector<RigStimPlanResultFrames> m_stimPlanResults;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user