mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#9620 Pressure/depth data: add user interface.
This commit is contained in:
1 parent
10187a934c
commit
1eac9f8a1f
24 files changed
+883
-15
No files matched your search
@@ -161,6 +161,9 @@ RimWellLogRftCurve::RimWellLogRftCurve()
|
||||
CAF_PDM_InitFieldNoDefault( &m_observedFmuRftData, "ObservedFmuRftData", "Observed FMU RFT Data" );
|
||||
m_observedFmuRftData.uiCapability()->setUiTreeChildrenHidden( true );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_pressureDepthData, "PressureDepthData", "Pressure Depth Data" );
|
||||
m_pressureDepthData.uiCapability()->setUiTreeChildrenHidden( true );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_timeStep, "TimeStep", "Time Step" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_wellName, "WellName", "Well Name" );
|
||||
@@ -320,6 +323,22 @@ RimObservedFmuRftData* RimWellLogRftCurve::observedFmuRftData() const
|
||||
return m_observedFmuRftData;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogRftCurve::setPressureDepthData( RimPressureDepthData* observedFmuRftData )
|
||||
{
|
||||
m_pressureDepthData = observedFmuRftData;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimPressureDepthData* RimWellLogRftCurve::pressureDepthData() const
|
||||
{
|
||||
return m_pressureDepthData;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -671,6 +690,12 @@ void RimWellLogRftCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
||||
unitSystem = RiaDefines::EclipseUnitSystem::UNITS_METRIC;
|
||||
perPointLabels = this->perPointLabels();
|
||||
}
|
||||
else if ( m_pressureDepthData )
|
||||
{
|
||||
// TODO: Read unit system for pressure data
|
||||
unitSystem = RiaDefines::EclipseUnitSystem::UNITS_METRIC;
|
||||
// perPointLabels = this->perPointLabels();
|
||||
}
|
||||
else
|
||||
{
|
||||
CVF_ASSERT( false && "Need to have either an eclipse result case, a summary case or an ensemble" );
|
||||
@@ -1002,6 +1027,11 @@ RifReaderRftInterface* RimWellLogRftCurve::rftReader() const
|
||||
return m_observedFmuRftData()->rftReader();
|
||||
}
|
||||
|
||||
if ( m_pressureDepthData() )
|
||||
{
|
||||
return m_pressureDepthData()->rftReader();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -1278,6 +1308,12 @@ std::vector<double> RimWellLogRftCurve::measuredDepthValues()
|
||||
return values;
|
||||
}
|
||||
|
||||
if ( m_pressureDepthData && !m_ensemble && !m_summaryCase )
|
||||
{
|
||||
// Pressure depth data does not have MD
|
||||
return {};
|
||||
}
|
||||
|
||||
std::vector<double> measuredDepthForCells;
|
||||
|
||||
RigEclipseWellLogExtractor* eclExtractor = extractor();
|
||||
|
||||
Reference in new issue
Block a user