mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9620 Pressure/depth data: add user interface.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RimPressureDepthData.h"
|
||||
#include "RimWellLogCurve.h"
|
||||
|
||||
#include "RifEclipseRftAddress.h"
|
||||
@@ -38,6 +39,7 @@ class RimObservedFmuRftData;
|
||||
class RimSummaryCase;
|
||||
class RimSummaryCaseCollection;
|
||||
class RimWellPath;
|
||||
class RimPressureDepthData;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@@ -91,6 +93,9 @@ public:
|
||||
void setObservedFmuRftData( RimObservedFmuRftData* observedFmuRftData );
|
||||
RimObservedFmuRftData* observedFmuRftData() const;
|
||||
|
||||
void setPressureDepthData( RimPressureDepthData* observedFmuRftData );
|
||||
RimPressureDepthData* pressureDepthData() const;
|
||||
|
||||
void setRftAddress( RifEclipseRftAddress address );
|
||||
RifEclipseRftAddress rftAddress() const;
|
||||
|
||||
@@ -149,6 +154,7 @@ private:
|
||||
caf::PdmPtrField<RimSummaryCase*> m_summaryCase;
|
||||
caf::PdmPtrField<RimSummaryCaseCollection*> m_ensemble;
|
||||
caf::PdmPtrField<RimObservedFmuRftData*> m_observedFmuRftData;
|
||||
caf::PdmPtrField<RimPressureDepthData*> m_pressureDepthData;
|
||||
caf::PdmField<QDateTime> m_timeStep;
|
||||
caf::PdmField<QString> m_wellName;
|
||||
caf::PdmField<int> m_branchIndex;
|
||||
|
||||
Reference in New Issue
Block a user