Add support for two Stimplan file formats (#6015)

#5990 XML import : Support two Stimplan file formats
This commit is contained in:
Magne Sjaastad
2020-06-03 18:46:25 +02:00
committed by GitHub
parent 77090bce6a
commit 88ddeddca6
10 changed files with 783 additions and 53 deletions

View File

@@ -46,9 +46,11 @@ const double RigStimPlanFractureDefinition::THRESHOLD_VALUE = 1e-5;
//--------------------------------------------------------------------------------------------------
RigStimPlanFractureDefinition::RigStimPlanFractureDefinition()
: m_unitSet( RiaEclipseUnitTools::UnitSystem::UNITS_UNKNOWN )
, m_xMirrorMode( false )
, m_topPerfTvd( HUGE_VAL )
, m_bottomPerfTvd( HUGE_VAL )
, m_xMirrorMode( false )
, m_topPerfMd( HUGE_VAL )
, m_bottomPerfMd( HUGE_VAL )
{
}
@@ -171,6 +173,38 @@ void RigStimPlanFractureDefinition::setTvdToBottomPerf( double bottomPerfTvd )
m_bottomPerfTvd = bottomPerfTvd;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RigStimPlanFractureDefinition::topPerfMd() const
{
return m_topPerfMd;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RigStimPlanFractureDefinition::bottomPerfMd() const
{
return m_bottomPerfMd;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigStimPlanFractureDefinition::setMdToTopPerf( double topPerfMd )
{
m_topPerfMd = topPerfMd;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigStimPlanFractureDefinition::setMdToBottomPerf( double bottomPerfMd )
{
m_bottomPerfMd = bottomPerfMd;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -64,10 +64,16 @@ public:
size_t yCount() const;
double minDepth() const;
double maxDepth() const;
double topPerfTvd() const;
double bottomPerfTvd() const;
void setTvdToTopPerf( double topPerfTvd );
void setTvdToBottomPerf( double bottomPerfTvd );
double topPerfTvd() const;
double bottomPerfTvd() const;
void setTvdToTopPerf( double topPerfTvd );
void setTvdToBottomPerf( double bottomPerfTvd );
double topPerfMd() const;
double bottomPerfMd() const;
void setMdToTopPerf( double topPerfMd );
void setMdToBottomPerf( double bottomPerfMd );
cvf::ref<RigFractureGrid> createFractureGrid( const QString& resultName,
int activeTimeStepIndex,
@@ -131,4 +137,6 @@ private:
double m_topPerfTvd;
double m_bottomPerfTvd;
double m_topPerfMd;
double m_bottomPerfMd;
};