Enhances dual porosity result display and plotting

Improves the handling and display of dual porosity results by:

- Adds an option to display a dual porosity label in the UI tree, clarifying the porosity model being used.
- Adjusts the K index calculation for the fracture porosity model in relative permeability plots, ensuring correct indexing.
- Adds a warning message when plotting relative permeability curves for fracture cells since it is not fully supported.
- Replaces direct checks for dual-porosity results with checks against the main grid to determine dual porosity for UI element display.
This commit is contained in:
Magne Sjaastad committed 2026-02-20 09:27:20 +01:00
1 parent 33bf89d196
commit 441a0d4338
9 files changed
+78 -24

No files matched your search

@@ -27,6 +27,7 @@
#include "RigEclipseCaseData.h"
#include "RigFlowDiagResults.h"
#include "RigFormationNames.h"
#include "RigMainGrid.h"
#include "RimCellEdgeColors.h"
#include "RimEclipseCase.h"
@@ -110,6 +111,8 @@ void RimEclipseCellColors::fieldChangedByUi( const caf::PdmFieldHandle* changedF
}
}
updateUiTreeName();
if ( m_reservoirView ) m_reservoirView->scheduleCreateDisplayModelAndRedraw();
}
@@ -210,6 +213,7 @@ void RimEclipseCellColors::initAfterRead()
changeLegendConfig( resultVariable() );
updateUiTreeName();
updateIconState();
}
@@ -248,6 +252,15 @@ void RimEclipseCellColors::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeO
uiTreeOrdering.skipRemainingChildren( true );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEclipseCellColors::loadResult()
{
RimEclipseResultDefinition::loadResult();
updateUiTreeName();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -280,6 +293,21 @@ void RimEclipseCellColors::setAdditionalUiTreeObjects( const std::vector<caf::Pd
m_additionalUiTreeObjects = objects;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEclipseCellColors::updateUiTreeName()
{
QString name = "Cell Result";
if ( showDualPorosityLabel() && m_eclipseCase && m_eclipseCase->mainGrid() && m_eclipseCase->mainGrid()->isDualPorosity() )
{
QString porosityModelText = caf::AppEnum<RiaDefines::PorosityModelType>::uiText( porosityModel() );
name += " [" + porosityModelText + "]";
}
uiCapability()->setUiName( name );
uiCapability()->updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------