6365 additional stimplan xml parameters (#7318)

* #6365 StimPlan XML: Parse formation dip and fracture orientation.
* #6365 Fracture: Use formation dip and fracture orientation from XML.
* #6365 Fracture: Compare case insensitive, use enum class

Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
This commit is contained in:
Kristian Bendiksen
2021-02-02 14:29:17 +01:00
committed by GitHub
parent 88b7a5807d
commit 751ebf7eb6
9 changed files with 673 additions and 30 deletions

View File

@@ -52,6 +52,8 @@ RigStimPlanFractureDefinition::RigStimPlanFractureDefinition()
, m_bottomPerfTvd( HUGE_VAL )
, m_topPerfMd( HUGE_VAL )
, m_bottomPerfMd( HUGE_VAL )
, m_formationDip( HUGE_VAL )
, m_orientation( Orientation::UNDEFINED )
{
}
@@ -733,3 +735,35 @@ size_t findMirrorXIndex( std::vector<double> xs )
return mirrorIndex;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RigStimPlanFractureDefinition::formationDip() const
{
return m_formationDip;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigStimPlanFractureDefinition::setFormationDip( double formationDip )
{
m_formationDip = formationDip;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RigStimPlanFractureDefinition::Orientation RigStimPlanFractureDefinition::orientation() const
{
return m_orientation;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigStimPlanFractureDefinition::setOrientation( RigStimPlanFractureDefinition::Orientation orientation )
{
m_orientation = orientation;
}

View File

@@ -56,6 +56,13 @@ class RigStimPlanFractureDefinition : public cvf::Object
public:
static const double THRESHOLD_VALUE;
enum class Orientation
{
UNDEFINED,
TRANSVERSE,
LONGITUDINAL
};
RigStimPlanFractureDefinition();
~RigStimPlanFractureDefinition() override;
@@ -75,6 +82,12 @@ public:
void setMdToTopPerf( double topPerfMd );
void setMdToBottomPerf( double bottomPerfMd );
double formationDip() const;
void setFormationDip( double formationDip );
Orientation orientation() const;
void setOrientation( Orientation orientation );
cvf::cref<RigFractureGrid> createFractureGrid( const QString& resultName,
int activeTimeStepIndex,
double xScaleFactor,
@@ -148,4 +161,7 @@ private:
double m_bottomPerfTvd;
double m_topPerfMd;
double m_bottomPerfMd;
double m_formationDip;
Orientation m_orientation;
};