2012-05-18 09:45:23 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
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
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2012-05-18 09:45:23 +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
|
|
|
//
|
2012-05-18 09:45:23 +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>
|
2012-05-18 09:45:23 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
|
|
|
|
#include <QDateTime>
|
2019-09-06 10:40:57 +02:00
|
|
|
#include <QStringList>
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2018-09-07 05:17:11 +02:00
|
|
|
#include "ert/ecl_well/well_info.hpp"
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2024-06-18 13:03:48 +02:00
|
|
|
#include "RifEclipseReportKeywords.h"
|
2013-01-30 14:13:50 +01:00
|
|
|
#include "RifReaderInterface.h"
|
|
|
|
|
|
2012-05-18 09:45:23 +02:00
|
|
|
//==================================================================================================
|
|
|
|
|
//
|
|
|
|
|
// Abstract class for results access
|
|
|
|
|
//
|
|
|
|
|
//==================================================================================================
|
2012-06-26 16:10:41 +02:00
|
|
|
class RifEclipseRestartDataAccess : public cvf::Object
|
2012-05-18 09:45:23 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2024-06-18 13:03:48 +02:00
|
|
|
RifEclipseRestartDataAccess(){};
|
|
|
|
|
~RifEclipseRestartDataAccess() override{};
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual bool open() = 0;
|
|
|
|
|
virtual void setRestartFiles( const QStringList& fileSet ) = 0;
|
|
|
|
|
virtual void close() = 0;
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2023-02-26 10:48:40 +01:00
|
|
|
virtual void setTimeSteps( const std::vector<QDateTime>& timeSteps ){};
|
|
|
|
|
virtual size_t timeStepCount() = 0;
|
|
|
|
|
virtual void timeSteps( std::vector<QDateTime>* timeSteps, std::vector<double>* daysSinceSimulationStart ) = 0;
|
|
|
|
|
virtual std::vector<int> reportNumbers() = 0;
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2024-06-18 13:03:48 +02:00
|
|
|
virtual std::vector<RifEclipseKeywordValueCount> keywordValueCounts() = 0;
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual bool results( const QString& resultName, size_t timeStep, size_t gridCount, std::vector<double>* values ) = 0;
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual bool dynamicNNCResults( const ecl_grid_type* grid,
|
|
|
|
|
size_t timeStep,
|
|
|
|
|
std::vector<double>* waterFlux,
|
|
|
|
|
std::vector<double>* oilFlux,
|
|
|
|
|
std::vector<double>* gasFlux ) = 0;
|
2017-06-26 10:25:08 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual void readWellData( well_info_type* well_info, bool importCompleteMswData ) = 0;
|
|
|
|
|
virtual int readUnitsType() = 0;
|
2017-11-10 09:43:51 +01:00
|
|
|
|
|
|
|
|
virtual std::set<RiaDefines::PhaseType> availablePhases() const = 0;
|
2020-04-06 12:15:28 +02:00
|
|
|
|
|
|
|
|
virtual void updateFromGridCount( size_t gridCount ){};
|
2012-05-18 09:45:23 +02:00
|
|
|
};
|