2018-06-07 10:50:32 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2023-09-25 12:45:47 +02:00
|
|
|
// Copyright (C) 2023- Equinor ASA
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2018-06-07 10:50:32 +02: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 10:40:57 +02:00
|
|
|
//
|
2018-06-07 10:50:32 +02: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 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-06-07 10:50:32 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2023-09-25 12:45:47 +02:00
|
|
|
#include "RiaDateTimeDefines.h"
|
|
|
|
|
#include "RiaDefines.h"
|
|
|
|
|
|
2018-06-07 10:50:32 +02:00
|
|
|
#include "RifSummaryReaderInterface.h"
|
|
|
|
|
|
2023-09-25 12:45:47 +02:00
|
|
|
#include "RimSummaryCase.h"
|
|
|
|
|
|
2023-08-21 07:12:08 +02:00
|
|
|
class RifEclipseSummaryAddress;
|
2018-06-07 10:50:32 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2018-06-07 10:50:32 +02:00
|
|
|
//==================================================================================================
|
2023-09-25 12:45:47 +02:00
|
|
|
class RimEnsembleCrossPlotStatisticsCase : public RimSummaryCase, public RifSummaryReaderInterface
|
2018-06-07 10:50:32 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2023-09-25 12:45:47 +02:00
|
|
|
void calculate( const std::vector<RimSummaryCase*>& sumCases,
|
|
|
|
|
const RifEclipseSummaryAddress& inputAddressX,
|
|
|
|
|
const RifEclipseSummaryAddress& inputAddressY,
|
|
|
|
|
bool includeIncompleteCurves,
|
|
|
|
|
int binCount,
|
2023-09-28 14:32:32 +02:00
|
|
|
int realizationCountThreshold );
|
2023-09-25 12:45:47 +02:00
|
|
|
|
|
|
|
|
bool hasP10Data() const;
|
|
|
|
|
bool hasP50Data() const;
|
|
|
|
|
bool hasP90Data() const;
|
|
|
|
|
bool hasMeanData() const;
|
|
|
|
|
|
|
|
|
|
QString caseName() const override;
|
|
|
|
|
void createSummaryReaderInterface() override;
|
|
|
|
|
RifSummaryReaderInterface* summaryReader() override;
|
|
|
|
|
RiaDefines::EclipseUnitSystem unitSystem() const override;
|
2018-06-07 10:50:32 +02:00
|
|
|
|
2023-09-29 17:52:31 +02:00
|
|
|
std::vector<time_t> timeSteps( const RifEclipseSummaryAddress& resultAddress ) const override;
|
|
|
|
|
std::pair<bool, std::vector<double>> values( const RifEclipseSummaryAddress& resultAddress ) const override;
|
|
|
|
|
std::string unitName( const RifEclipseSummaryAddress& resultAddress ) const override;
|
2019-07-25 07:38:46 +02:00
|
|
|
|
2018-06-07 10:50:32 +02:00
|
|
|
private:
|
2023-09-25 12:45:47 +02:00
|
|
|
void clearData();
|
2018-06-07 10:50:32 +02:00
|
|
|
|
|
|
|
|
private:
|
2023-09-25 12:45:47 +02:00
|
|
|
std::vector<double> m_p10Data;
|
|
|
|
|
std::vector<double> m_p50Data;
|
|
|
|
|
std::vector<double> m_p90Data;
|
|
|
|
|
std::vector<double> m_meanData;
|
|
|
|
|
|
|
|
|
|
RifEclipseSummaryAddress m_adrX;
|
|
|
|
|
RifEclipseSummaryAddress m_adrY;
|
|
|
|
|
|
|
|
|
|
std::vector<double> m_binnedXValues;
|
|
|
|
|
|
|
|
|
|
caf::PdmPointer<RimSummaryCase> m_firstSummaryCase;
|
2018-06-07 10:50:32 +02:00
|
|
|
};
|