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
|
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.
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// 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 "cvfBase.h"
|
|
|
|
#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-01-17 08:11:02 -06:00
|
|
|
#include <vector>
|
2017-11-10 02:43:51 -06:00
|
|
|
#include <set>
|
2017-01-17 08:11:02 -06:00
|
|
|
|
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:
|
2014-07-30 02:13:47 -05:00
|
|
|
RifReaderInterface() { }
|
|
|
|
virtual ~RifReaderInterface() { }
|
|
|
|
|
|
|
|
bool isFaultImportEnabled();
|
2014-10-24 04:38:47 -05:00
|
|
|
bool isImportOfCompleteMswDataEnabled();
|
2014-07-30 02:13:47 -05:00
|
|
|
bool isNNCsEnabled();
|
2017-04-18 04:32:04 -05:00
|
|
|
const QString faultIncludeFileAbsolutePathPrefix();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2017-01-10 02:51:39 -06:00
|
|
|
virtual bool open(const QString& fileName, RigEclipseCaseData* eclipseCase) = 0;
|
2012-06-26 09:10:41 -05:00
|
|
|
|
2017-08-11 07:05:59 -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-03-05 06:10:26 -06:00
|
|
|
|
2013-12-17 04:37:58 -06:00
|
|
|
void setFilenamesWithFaults(const std::vector<QString>& filenames) { m_filenamesWithFaults = filenames; }
|
|
|
|
std::vector<QString> filenamesWithFaults() { return m_filenamesWithFaults; }
|
|
|
|
|
2017-08-11 00:34:54 -05:00
|
|
|
void setTimeStepFilter(const std::vector<size_t>& fileTimeStepIndices);
|
2017-08-10 06:08:38 -05:00
|
|
|
|
2017-11-10 02:43:51 -06:00
|
|
|
virtual std::set<RiaDefines::PhaseType> availablePhases() const;
|
|
|
|
|
2017-08-10 06:08:38 -05:00
|
|
|
protected:
|
|
|
|
bool isTimeStepIncludedByFilter(size_t timeStepIndex) const;
|
|
|
|
size_t timeStepIndexOnFile(size_t timeStepIndex) const;
|
|
|
|
|
2013-12-17 04:37:58 -06:00
|
|
|
private:
|
2017-08-29 01:27:42 -05:00
|
|
|
const RifReaderSettings* readerSettings() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<QString> m_filenamesWithFaults;
|
2017-08-10 06:08:38 -05:00
|
|
|
|
2017-08-29 01:27:42 -05:00
|
|
|
std::vector<size_t> m_fileTimeStepIndices;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|