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