2013-02-14 08:27:35 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-23 08:04:57 -05:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2013-02-14 08:27:35 -06:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2013-02-14 08:27:35 -06:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2013-02-14 08:27:35 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
#include "RiaDefines.h"
|
2017-02-24 04:07:15 -06:00
|
|
|
|
2018-05-23 08:08:55 -05:00
|
|
|
#include "RimEclipseCase.h"
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafAppEnum.h"
|
2013-02-14 08:27:35 -06:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
2017-02-24 04:07:15 -06:00
|
|
|
#include "cvfCollection.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cvfObject.h"
|
2013-02-14 08:27:35 -06:00
|
|
|
|
2013-03-02 08:32:38 -06:00
|
|
|
class RigMainGrid;
|
2017-10-13 06:44:53 -05:00
|
|
|
class RigSimWellData;
|
2018-05-23 08:08:55 -05:00
|
|
|
class RimEclipseResultDefinition;
|
|
|
|
class RimEclipseStatisticsCaseCollection;
|
|
|
|
class RimIdenticalGridCaseGroup;
|
2013-02-15 01:44:45 -06:00
|
|
|
|
2013-02-14 08:27:35 -06:00
|
|
|
//==================================================================================================
|
|
|
|
//
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2013-02-14 08:27:35 -06:00
|
|
|
//
|
|
|
|
//==================================================================================================
|
2015-06-25 04:57:41 -05:00
|
|
|
class RimEclipseStatisticsCase : public RimEclipseCase
|
2013-02-14 08:27:35 -06:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2015-06-25 04:57:41 -05:00
|
|
|
RimEclipseStatisticsCase();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimEclipseStatisticsCase() override;
|
2013-02-14 08:27:35 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setMainGrid( RigMainGrid* mainGrid );
|
2013-03-02 08:32:38 -06:00
|
|
|
|
2013-04-02 08:20:55 -05:00
|
|
|
void computeStatistics();
|
2013-04-08 05:16:38 -05:00
|
|
|
bool hasComputedStatistics() const;
|
2013-04-05 06:29:47 -05:00
|
|
|
void clearComputedStatistics();
|
2016-08-11 01:51:32 -05:00
|
|
|
void computeStatisticsAndUpdateViews();
|
2013-04-05 06:29:47 -05:00
|
|
|
|
2013-12-20 07:45:04 -06:00
|
|
|
void updateConnectedEditorsAndReservoirViews();
|
|
|
|
|
2018-10-18 12:45:57 -05:00
|
|
|
bool openEclipseGridFile() override;
|
|
|
|
void reloadEclipseGridFile() override;
|
2013-03-02 08:32:38 -06:00
|
|
|
|
2018-05-23 08:08:55 -05:00
|
|
|
RimCaseCollection* parentStatisticsCaseCollection() const;
|
2013-02-15 01:44:45 -06:00
|
|
|
|
2013-04-02 09:59:55 -05:00
|
|
|
enum PercentileCalcType
|
|
|
|
{
|
2013-04-05 03:49:39 -05:00
|
|
|
NEAREST_OBSERVATION,
|
2013-04-30 04:36:50 -05:00
|
|
|
HISTOGRAM_ESTIMATED,
|
|
|
|
INTERPOLATED_OBSERVATION
|
2013-04-02 09:59:55 -05:00
|
|
|
};
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> m_calculateEditCommand;
|
2016-11-23 03:23:59 -06:00
|
|
|
|
|
|
|
void populateResultSelectionAfterLoadingGrid();
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2013-02-14 08:27:35 -06:00
|
|
|
private:
|
2016-08-11 01:51:32 -05:00
|
|
|
void scheduleACTIVEGeometryRegenOnReservoirViews();
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
RimIdenticalGridCaseGroup* caseGroup() const;
|
2018-05-23 08:08:55 -05:00
|
|
|
std::vector<RimEclipseCase*> getSourceCases() const;
|
2013-03-02 08:32:38 -06:00
|
|
|
|
2016-11-23 03:23:59 -06:00
|
|
|
void populateResultSelection();
|
2013-04-08 10:02:07 -05:00
|
|
|
|
2013-04-02 09:59:55 -05:00
|
|
|
void updateSelectionListVisibilities();
|
2013-04-03 09:13:49 -05:00
|
|
|
void updateSelectionSummaryLabel();
|
|
|
|
void updatePercentileUiVisibility();
|
2013-04-02 09:59:55 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2022-05-29 06:01:27 -05:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2013-04-03 09:13:49 -05:00
|
|
|
|
2019-12-05 06:53:03 -06:00
|
|
|
void loadSimulationWellDataFromSourceCase();
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineEditorAttribute( const caf::PdmFieldHandle* field,
|
|
|
|
QString uiConfigName,
|
|
|
|
caf::PdmUiEditorAttribute* attribute ) override;
|
2013-04-05 06:29:47 -05:00
|
|
|
|
2018-05-23 08:08:55 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<caf::AppEnum<RiaDefines::ResultCatType>> m_resultType;
|
|
|
|
caf::PdmField<caf::AppEnum<RiaDefines::PorosityModelType>> m_porosityModel;
|
2013-04-02 09:59:55 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<QString> m_selectionSummary;
|
2013-04-03 09:13:49 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<std::vector<QString>> m_selectedDynamicProperties;
|
|
|
|
caf::PdmField<std::vector<QString>> m_selectedStaticProperties;
|
|
|
|
caf::PdmField<std::vector<QString>> m_selectedGeneratedProperties;
|
|
|
|
caf::PdmField<std::vector<QString>> m_selectedInputProperties;
|
2013-04-02 09:59:55 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<std::vector<QString>> m_selectedFractureDynamicProperties;
|
|
|
|
caf::PdmField<std::vector<QString>> m_selectedFractureStaticProperties;
|
|
|
|
caf::PdmField<std::vector<QString>> m_selectedFractureGeneratedProperties;
|
|
|
|
caf::PdmField<std::vector<QString>> m_selectedFractureInputProperties;
|
2013-04-02 09:59:55 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> m_calculatePercentiles;
|
|
|
|
caf::PdmField<caf::AppEnum<PercentileCalcType>> m_percentileCalculationType;
|
|
|
|
caf::PdmField<double> m_lowPercentile;
|
|
|
|
caf::PdmField<double> m_midPercentile;
|
|
|
|
caf::PdmField<double> m_highPercentile;
|
2013-04-02 09:59:55 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<QString> m_wellDataSourceCase;
|
2016-09-01 11:08:51 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> m_useZeroAsInactiveCellValue;
|
2016-11-23 03:23:59 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool m_populateSelectionAfterLoadingGrid;
|
2013-02-14 08:27:35 -06:00
|
|
|
};
|