SimulationConfig.hpp
Go to the documentation of this file.
1/*
2 Copyright 2015 Statoil ASA.
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef OPM_SIMULATION_CONFIG_HPP
21#define OPM_SIMULATION_CONFIG_HPP
22
26
27namespace Opm {
28
29 class Deck;
30 class FieldPropsManager;
31
33
34 public:
35
37 SimulationConfig(bool restart,
38 const Deck& deck,
39 const FieldPropsManager& fp);
40
42
43 const RockConfig& rock_config() const;
45 const BCConfig& bcconfig() const;
47 bool useCPR() const;
48 bool hasDISGAS() const;
49 bool hasVAPOIL() const;
50 bool isThermal() const;
51
52 bool operator==(const SimulationConfig& data) const;
53
54 template<class Serializer>
55 void serializeOp(Serializer& serializer)
56 {
57 m_ThresholdPressure.serializeOp(serializer);
58 m_bcconfig.serializeOp(serializer);
59 m_rock_config.serializeOp(serializer);
60 serializer(m_useCPR);
61 serializer(m_DISGAS);
62 serializer(m_VAPOIL);
63 serializer(m_isThermal);
64 }
65
66 private:
67 ThresholdPressure m_ThresholdPressure;
68 BCConfig m_bcconfig;
69 RockConfig m_rock_config;
70 bool m_useCPR;
71 bool m_DISGAS;
72 bool m_VAPOIL;
73 bool m_isThermal;
74 };
75
76} //namespace Opm
77
78
79
80#endif
Definition: BCConfig.hpp:49
void serializeOp(Serializer &serializer)
Definition: BCConfig.hpp:96
Definition: Deck.hpp:115
Definition: FieldPropsManager.hpp:33
Definition: RockConfig.hpp:31
void serializeOp(Serializer &serializer)
Definition: RockConfig.hpp:77
Definition: Serializer.hpp:38
Definition: SimulationConfig.hpp:32
const BCConfig & bcconfig() const
const ThresholdPressure & getThresholdPressure() const
void serializeOp(Serializer &serializer)
Definition: SimulationConfig.hpp:55
SimulationConfig(bool restart, const Deck &deck, const FieldPropsManager &fp)
bool useThresholdPressure() const
static SimulationConfig serializeObject()
bool hasDISGAS() const
bool isThermal() const
bool hasVAPOIL() const
bool operator==(const SimulationConfig &data) const
const RockConfig & rock_config() const
Definition: ThresholdPressure.hpp:32
void serializeOp(Serializer &serializer)
Definition: ThresholdPressure.hpp:79
Definition: A.hpp:4
static std::string data()
Definition: exprtk.hpp:40022