mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Import RFT segment data as well log curve (#8449)
Add reader for RFT data using opm-common Extend RFT curve with support for RFT segment data Adjustments related to horizontal well log plots 8581 Well Log Plot : Update of curve appearance does not update plot
This commit is contained in:
@@ -500,7 +500,9 @@ void RimWellRftPlot::updateCurvesInPlot( const std::set<RiaRftPltCurveDefinition
|
||||
auto rftCase = curveDefToAdd.address().eclCase();
|
||||
curve->setEclipseResultCase( dynamic_cast<RimEclipseResultCase*>( rftCase ) );
|
||||
|
||||
RifEclipseRftAddress address( simWellName, curveDefToAdd.timeStep(), RifEclipseRftAddress::PRESSURE );
|
||||
RifEclipseRftAddress address( simWellName,
|
||||
curveDefToAdd.timeStep(),
|
||||
RifEclipseRftAddress::RftWellLogChannelType::PRESSURE );
|
||||
curve->setRftAddress( address );
|
||||
curve->setZOrder( 1 );
|
||||
curve->setSimWellBranchData( m_branchDetection, m_branchIndex );
|
||||
@@ -516,7 +518,7 @@ void RimWellRftPlot::updateCurvesInPlot( const std::set<RiaRftPltCurveDefinition
|
||||
curve->setObservedFmuRftData( observedFmuRftData );
|
||||
RifEclipseRftAddress address( m_wellPathNameOrSimWellName,
|
||||
curveDefToAdd.timeStep(),
|
||||
RifEclipseRftAddress::PRESSURE );
|
||||
RifEclipseRftAddress::RftWellLogChannelType::PRESSURE );
|
||||
curve->setRftAddress( address );
|
||||
curve->setZOrder(
|
||||
RiuQwtPlotCurveDefines::zDepthForIndex( RiuQwtPlotCurveDefines::ZIndex::Z_SINGLE_CURVE_OBSERVED ) );
|
||||
@@ -533,7 +535,7 @@ void RimWellRftPlot::updateCurvesInPlot( const std::set<RiaRftPltCurveDefinition
|
||||
this->findObservedFmuData( m_wellPathNameOrSimWellName, curveDefToAdd.timeStep() ) );
|
||||
RifEclipseRftAddress address( m_wellPathNameOrSimWellName,
|
||||
curveDefToAdd.timeStep(),
|
||||
RifEclipseRftAddress::PRESSURE );
|
||||
RifEclipseRftAddress::RftWellLogChannelType::PRESSURE );
|
||||
curve->setRftAddress( address );
|
||||
curve->setZOrder( 1 );
|
||||
applyCurveAppearance( curve );
|
||||
@@ -551,7 +553,7 @@ void RimWellRftPlot::updateCurvesInPlot( const std::set<RiaRftPltCurveDefinition
|
||||
curveDefToAdd.timeStep() );
|
||||
for ( const auto& rftAddress : rftAddresses )
|
||||
{
|
||||
if ( rftAddress.wellLogChannel() == RifEclipseRftAddress::PRESSURE_P50 )
|
||||
if ( rftAddress.wellLogChannel() == RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_P50 )
|
||||
{
|
||||
// Default statistics curves are P10, P50, P90 and mean
|
||||
// It is not common to use P50 for ensemble RFT, so skip display of P50 to avoid confusion with mean
|
||||
@@ -560,7 +562,7 @@ void RimWellRftPlot::updateCurvesInPlot( const std::set<RiaRftPltCurveDefinition
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( rftAddress.wellLogChannel() != RifEclipseRftAddress::TVD )
|
||||
if ( rftAddress.wellLogChannel() != RifEclipseRftAddress::RftWellLogChannelType::TVD )
|
||||
{
|
||||
auto curve = new RimWellLogRftCurve();
|
||||
plotTrack->addCurve( curve );
|
||||
@@ -1164,13 +1166,13 @@ RiuPlotCurveSymbol::PointSymbolEnum RimWellRftPlot::statisticsCurveSymbolFromAdd
|
||||
{
|
||||
switch ( address.wellLogChannel() )
|
||||
{
|
||||
case RifEclipseRftAddress::PRESSURE_P10:
|
||||
case RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_P10:
|
||||
return RiuPlotCurveSymbol::SYMBOL_TRIANGLE;
|
||||
case RifEclipseRftAddress::PRESSURE_P50:
|
||||
case RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_P50:
|
||||
return RiuPlotCurveSymbol::SYMBOL_DOWN_TRIANGLE;
|
||||
case RifEclipseRftAddress::PRESSURE_P90:
|
||||
case RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_P90:
|
||||
return RiuPlotCurveSymbol::SYMBOL_LEFT_TRIANGLE;
|
||||
case RifEclipseRftAddress::PRESSURE_MEAN:
|
||||
case RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_MEAN:
|
||||
return RiuPlotCurveSymbol::SYMBOL_RIGHT_TRIANGLE;
|
||||
}
|
||||
return RiuPlotCurveSymbol::SYMBOL_RIGHT_TRIANGLE;
|
||||
@@ -1183,13 +1185,13 @@ RiuPlotCurveSymbol::LabelPosition RimWellRftPlot::statisticsLabelPosFromAddress(
|
||||
{
|
||||
switch ( address.wellLogChannel() )
|
||||
{
|
||||
case RifEclipseRftAddress::PRESSURE_P10:
|
||||
case RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_P10:
|
||||
return RiuPlotCurveSymbol::LabelLeftOfSymbol;
|
||||
case RifEclipseRftAddress::PRESSURE_P50:
|
||||
case RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_P50:
|
||||
return RiuPlotCurveSymbol::LabelAboveSymbol;
|
||||
case RifEclipseRftAddress::PRESSURE_P90:
|
||||
case RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_P90:
|
||||
return RiuPlotCurveSymbol::LabelRightOfSymbol;
|
||||
case RifEclipseRftAddress::PRESSURE_MEAN:
|
||||
case RifEclipseRftAddress::RftWellLogChannelType::PRESSURE_MEAN:
|
||||
return RiuPlotCurveSymbol::LabelBelowSymbol;
|
||||
}
|
||||
return RiuPlotCurveSymbol::LabelAboveSymbol;
|
||||
|
||||
Reference in New Issue
Block a user