mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-26 21:27:15 -05:00
* #14319 Compute all pending ensemble contour maps in one sweep over realizations * #14319 Initialize result definition and open primary case before building contour map grid * Contour Map: Compute histogram from map projection values to show correct sample count in overlay info * #14319 Add comments describing the realization sweep and grid caching Document why the realization loop is the outer loop, when a realization case is closed again after processing, and that the contour map grid doubles as the "statistics computed" flag in ensureResultsComputed().
62 lines
2.2 KiB
C++
62 lines
2.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2026 Equinor ASA
|
|
//
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
//
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
// for more details.
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#include "RiaPorosityModel.h"
|
|
|
|
#include <QString>
|
|
|
|
#include <set>
|
|
#include <vector>
|
|
|
|
class RigActiveCellInfo;
|
|
class RigMainGrid;
|
|
class RimCaseCollection;
|
|
class RimEclipseCase;
|
|
class RimEclipseStatisticsCase;
|
|
class RimFormationNames;
|
|
class RimStatisticsContourMap;
|
|
|
|
class RimReservoirGridEnsembleBase
|
|
{
|
|
public:
|
|
enum class GridModeType
|
|
{
|
|
SHARED_GRID,
|
|
INDIVIDUAL_GRIDS
|
|
};
|
|
|
|
virtual ~RimReservoirGridEnsembleBase() = default;
|
|
|
|
virtual QString ensembleName() const = 0;
|
|
virtual GridModeType gridMode() const = 0;
|
|
virtual std::vector<RimEclipseCase*> sourceCases() const = 0;
|
|
virtual RimEclipseCase* mainCase() = 0;
|
|
|
|
virtual RigMainGrid* mainGrid();
|
|
virtual RigActiveCellInfo* unionOfActiveCells( RiaDefines::PorosityModelType porosityType );
|
|
virtual void computeUnionOfActiveCells();
|
|
virtual std::set<RimEclipseCase*> casesInViews() const;
|
|
virtual RimCaseCollection* statisticsCaseCollection() const;
|
|
virtual RimFormationNames* activeFormationNames() const;
|
|
virtual void addStatisticsContourMap( RimStatisticsContourMap* statisticsContourMap ) {}
|
|
virtual std::vector<RimStatisticsContourMap*> statisticsContourMaps() const { return {}; }
|
|
virtual RimEclipseStatisticsCase* createAndAppendStatisticsCase();
|
|
};
|