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
|
|
|
|
|
|
2017-11-10 09:43:51 +01:00
|
|
|
#include "RiaDefines.h"
|
2017-08-11 10:25:33 +02:00
|
|
|
#include "RiaPorosityModel.h"
|
2017-08-11 09:59:49 +02:00
|
|
|
|
2012-05-18 09:45:23 +02:00
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
2014-07-30 09:13:47 +02:00
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
|
|
2012-05-18 09:45:23 +02:00
|
|
|
#include <QString>
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
2017-11-10 09:43:51 +01:00
|
|
|
#include <set>
|
2019-09-06 10:40:57 +02:00
|
|
|
#include <vector>
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2017-01-10 09:51:39 +01:00
|
|
|
class RigEclipseCaseData;
|
2014-07-30 09:13:47 +02:00
|
|
|
class RifReaderSettings;
|
|
|
|
|
|
2012-05-18 09:45:23 +02:00
|
|
|
//==================================================================================================
|
|
|
|
|
//
|
|
|
|
|
// Data interface base class
|
|
|
|
|
//
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RifReaderInterface : public cvf::Object
|
|
|
|
|
{
|
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
RifReaderInterface() {}
|
|
|
|
|
~RifReaderInterface() override {}
|
2014-07-30 09:13:47 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
bool isFaultImportEnabled();
|
|
|
|
|
bool isImportOfCompleteMswDataEnabled();
|
|
|
|
|
bool isNNCsEnabled();
|
2020-05-13 14:20:46 +02:00
|
|
|
bool includeInactiveCellsInFaultGeometry();
|
2019-09-06 10:40:57 +02:00
|
|
|
const QString faultIncludeFileAbsolutePathPrefix();
|
2012-05-18 09:45:23 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual bool open( const QString& fileName, RigEclipseCaseData* eclipseCase ) = 0;
|
2013-03-05 13:10:26 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
virtual bool staticResult( const QString& result,
|
|
|
|
|
RiaDefines::PorosityModelType matrixOrFracture,
|
|
|
|
|
std::vector<double>* values ) = 0;
|
|
|
|
|
virtual bool dynamicResult( const QString& result,
|
|
|
|
|
RiaDefines::PorosityModelType matrixOrFracture,
|
|
|
|
|
size_t stepIndex,
|
|
|
|
|
std::vector<double>* values ) = 0;
|
2013-12-17 11:37:58 +01:00
|
|
|
|
2020-02-12 11:13:38 +01:00
|
|
|
void setFilenamesWithFaults( const std::vector<QString>& filenames ) { m_filenamesWithFaults = filenames; }
|
|
|
|
|
std::vector<QString> filenamesWithFaults() { return m_filenamesWithFaults; }
|
2017-08-10 13:08:38 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void setTimeStepFilter( const std::vector<size_t>& fileTimeStepIndices );
|
|
|
|
|
|
|
|
|
|
virtual std::set<RiaDefines::PhaseType> availablePhases() const;
|
2017-11-10 09:43:51 +01:00
|
|
|
|
2020-04-06 12:15:28 +02:00
|
|
|
virtual void updateFromGridCount( size_t gridCount ){};
|
|
|
|
|
|
2017-08-10 13:08:38 +02:00
|
|
|
protected:
|
2019-09-06 10:40:57 +02:00
|
|
|
bool isTimeStepIncludedByFilter( size_t timeStepIndex ) const;
|
|
|
|
|
size_t timeStepIndexOnFile( size_t timeStepIndex ) const;
|
2017-08-10 13:08:38 +02:00
|
|
|
|
2013-12-17 11:37:58 +01:00
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
const RifReaderSettings* readerSettings() const;
|
2017-08-29 08:27:42 +02:00
|
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
std::vector<QString> m_filenamesWithFaults;
|
|
|
|
|
|
|
|
|
|
std::vector<size_t> m_fileTimeStepIndices;
|
2012-05-18 09:45:23 +02:00
|
|
|
};
|