2015-02-12 16:51:04 +01:00
|
|
|
/*
|
|
|
|
|
Copyright 2015 Statoil ASA.
|
|
|
|
|
|
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
|
|
|
|
|
|
OPM 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.
|
|
|
|
|
|
|
|
|
|
OPM 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 for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef OPM_SIMULATION_CONFIG_HPP
|
|
|
|
|
#define OPM_SIMULATION_CONFIG_HPP
|
|
|
|
|
|
|
|
|
|
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
|
|
|
|
|
|
|
|
|
namespace Opm {
|
|
|
|
|
|
2016-01-15 08:42:57 +01:00
|
|
|
template< typename > class GridProperties;
|
|
|
|
|
|
|
|
|
|
class ThresholdPressure;
|
|
|
|
|
class ParseMode;
|
|
|
|
|
|
2015-02-12 16:51:04 +01:00
|
|
|
class SimulationConfig {
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
2015-08-07 16:30:38 +02:00
|
|
|
SimulationConfig(const ParseMode& parseMode , DeckConstPtr deck, std::shared_ptr<GridProperties<int>> gridProperties);
|
2015-02-12 16:51:04 +01:00
|
|
|
|
2015-08-25 10:06:00 +02:00
|
|
|
std::shared_ptr<const ThresholdPressure> getThresholdPressure() const;
|
2015-08-25 11:45:04 +02:00
|
|
|
bool hasThresholdPressure() const;
|
2015-09-15 16:37:29 +02:00
|
|
|
bool useCPR() const;
|
2015-12-15 13:50:41 +01:00
|
|
|
bool hasDISGAS() const;
|
|
|
|
|
bool hasVAPOIL() const;
|
2015-02-12 16:51:04 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
2015-08-07 16:30:38 +02:00
|
|
|
void initThresholdPressure(const ParseMode& parseMode , DeckConstPtr deck, std::shared_ptr<GridProperties<int>> gridProperties);
|
2015-02-12 16:51:04 +01:00
|
|
|
|
2016-01-15 08:42:57 +01:00
|
|
|
std::shared_ptr< const ThresholdPressure > m_ThresholdPressure;
|
2015-09-15 16:37:29 +02:00
|
|
|
bool m_useCPR;
|
2015-12-15 13:50:41 +01:00
|
|
|
bool m_DISGAS;
|
|
|
|
|
bool m_VAPOIL;
|
2015-02-12 16:51:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2015-08-24 14:24:53 +02:00
|
|
|
|
2015-02-12 16:51:04 +01:00
|
|
|
typedef std::shared_ptr<SimulationConfig> SimulationConfigPtr;
|
|
|
|
|
typedef std::shared_ptr<const SimulationConfig> SimulationConfigConstPtr;
|
|
|
|
|
|
|
|
|
|
} //namespace Opm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|