2012-06-26 09:10:41 -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-06-26 09:10:41 -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-06-26 09:10:41 -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-06-26 09:10:41 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RifReaderInterface.h"
|
|
|
|
#include "RigReservoirBuilderMock.h"
|
|
|
|
|
|
|
|
class RifReaderMockModel : public RifReaderInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RifReaderMockModel();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RifReaderMockModel() override;
|
2012-06-26 09:10:41 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setWorldCoordinates( cvf::Vec3d minWorldCoordinate, cvf::Vec3d maxWorldCoordinate );
|
|
|
|
void setGridPointDimensions( const cvf::Vec3st& gridPointDimensions );
|
|
|
|
void setResultInfo( size_t resultCount, size_t timeStepCount );
|
|
|
|
void enableWellData( bool enableWellData );
|
2012-06-26 09:10:41 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void addLocalGridRefinement( const cvf::Vec3st& minCellPosition,
|
|
|
|
const cvf::Vec3st& maxCellPosition,
|
|
|
|
const cvf::Vec3st& singleCellRefinementFactors );
|
2012-06-26 09:10:41 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool open( const QString& fileName, RigEclipseCaseData* eclipseCase ) override;
|
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
bool staticResult( const QString& result, RiaDefines::PorosityModelType matrixOrFracture, std::vector<double>* values ) override;
|
|
|
|
bool dynamicResult( const QString& result, RiaDefines::PorosityModelType matrixOrFracture, size_t stepIndex, std::vector<double>* values ) override;
|
2012-06-26 09:10:41 -05:00
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
void populateReservoir( RigEclipseCaseData* eclipseCase );
|
|
|
|
bool inputProperty( const QString& propertyName, std::vector<double>* values );
|
2012-06-26 09:10:41 -05:00
|
|
|
|
|
|
|
RigReservoirBuilderMock m_reservoirBuilder;
|
2019-09-06 03:40:57 -05:00
|
|
|
RigEclipseCaseData* m_reservoir;
|
2012-06-26 09:10:41 -05:00
|
|
|
};
|