mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
Add support for Reservoir Grid Ensembles
Introduce RimReservoirGridEnsemble and RimReservoirGridEnsembleBase to manage ensembles of grid-only Eclipse cases. Enable detection of identical grids for shared operations and statistics. Integrate grid ensembles into project structure, UI, and menu system. Refactor statistics and view handling to support both case groups and grid ensembles via a common interface. Add deferred grid loading, robust case referencing, and migration for well data source fields. New features and menu items allow creation and management of grid ensembles from file sets, enabling new workflows for grid-only ensemble analysis.
This commit is contained in:
1 parent
5819c14034
commit
aa3372efce
35 files changed
+1704
-195
No files matched your search
@@ -75,6 +75,7 @@
|
||||
#include "RimPlotWindow.h"
|
||||
#include "RimPltPlotCollection.h"
|
||||
#include "RimPolylinesFromFileAnnotation.h"
|
||||
#include "RimReservoirGridEnsemble.h"
|
||||
#include "RimRftPlotCollection.h"
|
||||
#include "RimSaturationPressurePlotCollection.h"
|
||||
#include "RimScriptCollection.h"
|
||||
@@ -716,6 +717,30 @@ void RimProject::assignIdToCaseGroup( RimIdenticalGridCaseGroup* caseGroup )
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimProject::assignIdToCaseGroup( RimReservoirGridEnsemble* gridEnsemble )
|
||||
{
|
||||
if ( gridEnsemble )
|
||||
{
|
||||
std::vector<RimIdenticalGridCaseGroup*> identicalCaseGroups = descendantsIncludingThisOfType<RimIdenticalGridCaseGroup>();
|
||||
std::vector<RimReservoirGridEnsemble*> gridEnsembles = descendantsIncludingThisOfType<RimReservoirGridEnsemble>();
|
||||
|
||||
for ( RimIdenticalGridCaseGroup* existingCaseGroup : identicalCaseGroups )
|
||||
{
|
||||
m_nextValidCaseGroupId = std::max( m_nextValidCaseGroupId, existingCaseGroup->groupId() + 1 );
|
||||
}
|
||||
|
||||
for ( RimReservoirGridEnsemble* existingEnsemble : gridEnsembles )
|
||||
{
|
||||
m_nextValidCaseGroupId = std::max( m_nextValidCaseGroupId, existingEnsemble->groupId() + 1 );
|
||||
}
|
||||
|
||||
gridEnsemble->setGroupId( m_nextValidCaseGroupId++ );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1507,6 +1532,7 @@ void RimProject::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, Q
|
||||
{
|
||||
if ( oilField->analysisModels() ) uiTreeOrdering.add( oilField->analysisModels() );
|
||||
}
|
||||
uiTreeOrdering.add( &m_ensembleFileSetCollection );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user