Files
ResInsight/ApplicationLibCode/ProjectDataModel/RimIdenticalGridCaseGroup.h
T

94 lines
3.0 KiB
C++
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
2014-09-23 15:04:57 +02:00
// Copyright (C) 2011- Statoil ASA
// Copyright (C) 2013- Ceetron Solutions AS
// Copyright (C) 2011-2012 Ceetron AS
//
// 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
2025-09-26 10:26:43 +02:00
#include "RiaPorosityModel.h"
2026-02-13 08:28:34 +01:00
#include "RimReservoirGridEnsembleBase.h"
2015-07-31 18:58:23 +02:00
#include "cafPdmChildField.h"
#include "cafPdmField.h"
#include "cafPdmObject.h"
2015-07-31 18:58:23 +02:00
#include "cvfObject.h"
2015-07-31 18:58:23 +02:00
class RigActiveCellInfo;
class RigMainGrid;
2015-07-31 18:58:23 +02:00
class RimCaseCollection;
class RimEclipseCase;
2015-07-31 18:58:23 +02:00
class RimEclipseStatisticsCase;
//==================================================================================================
//
//
//
//==================================================================================================
2026-02-13 08:28:34 +01:00
class RimIdenticalGridCaseGroup : public caf::PdmObject, public RimReservoirGridEnsembleBase
{
CAF_PDM_HEADER_INIT;
public:
RimIdenticalGridCaseGroup();
~RimIdenticalGridCaseGroup() override;
caf::PdmField<QString> name;
caf::PdmField<int> groupId;
caf::PdmChildField<RimCaseCollection*> caseCollection;
void addCase( RimEclipseCase* reservoir ) override;
void removeCase( RimEclipseCase* reservoir ) override;
bool contains( RimEclipseCase* reservoir ) const;
2023-07-07 10:58:33 +02:00
RimEclipseStatisticsCase* createAndAppendEmptyStatisticsCase();
2026-02-13 08:28:34 +01:00
RimEclipseCase* mainCase() override;
RimCaseCollection* statisticsCaseCollection() const override;
void loadMainCaseAndActiveCellInfo();
2026-02-13 08:28:34 +01:00
RigMainGrid* mainGrid() override;
2026-02-13 08:28:34 +01:00
std::vector<RimEclipseCase*> sourceCases() const override;
RigActiveCellInfo* unionOfActiveCells( RiaDefines::PorosityModelType porosityType ) override;
void computeUnionOfActiveCells() override;
GridModeType gridMode() const override;
QString ensembleName() const override;
static bool isStatisticsCaseCollection( RimCaseCollection* rimCaseCollection );
2013-02-21 10:38:28 +01:00
protected:
caf::PdmFieldHandle* userDescriptionField() override;
2013-02-21 10:38:28 +01:00
private:
void updateMainGridAndActiveCellsForStatisticsCases();
void clearStatisticsResults();
void clearActiveCellUnions();
private:
2026-02-13 08:28:34 +01:00
caf::PdmChildField<RimCaseCollection*> m_statisticsCaseCollection;
RigMainGrid* m_mainGrid;
cvf::ref<RigActiveCellInfo> m_unionOfMatrixActiveCells;
cvf::ref<RigActiveCellInfo> m_unionOfFractureActiveCells;
};