My Project
Loading...
Searching...
No Matches
SimulationConfig.hpp
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
23#include <opm/input/eclipse/EclipseState/SimulationConfig/BCConfig.hpp>
24#include <opm/input/eclipse/EclipseState/SimulationConfig/DatumDepth.hpp>
25#include <opm/input/eclipse/EclipseState/SimulationConfig/RockConfig.hpp>
26#include <opm/input/eclipse/EclipseState/SimulationConfig/ThresholdPressure.hpp>
27
28namespace Opm {
29
30 class Deck;
31 class FieldPropsManager;
32
33} // namespace Opm
34
35namespace Opm {
36
38 {
39 public:
40 SimulationConfig() = default;
41 SimulationConfig(bool restart,
42 const Deck& deck,
43 const FieldPropsManager& fp);
44
45 static SimulationConfig serializationTestObject();
46
47 const RockConfig& rock_config() const;
48 const ThresholdPressure& getThresholdPressure() const;
49 const BCConfig& bcconfig() const;
50 const DatumDepth& datumDepths() const;
51
52 bool useThresholdPressure() const;
53 bool useCPR() const;
54 bool useNONNC() const;
55 bool hasDISGAS() const;
56 bool hasDISGASW() const;
57 bool hasVAPOIL() const;
58 bool hasVAPWAT() const;
59 bool isThermal() const;
60 bool useEnthalpy() const;
61 bool isDiffusive() const;
62 bool hasPRECSALT() const;
63
64 bool operator==(const SimulationConfig& data) const;
65 static bool rst_cmp(const SimulationConfig& full_config,
66 const SimulationConfig& rst_config);
67
68 template<class Serializer>
69 void serializeOp(Serializer& serializer)
70 {
71 serializer(m_ThresholdPressure);
72 serializer(m_bcconfig);
73 serializer(m_rock_config);
74 serializer(this->m_datum_depth);
75 serializer(m_useCPR);
76 serializer(m_useNONNC);
77 serializer(m_DISGAS);
78 serializer(m_DISGASW);
79 serializer(m_VAPOIL);
80 serializer(m_VAPWAT);
81 serializer(m_isThermal);
82 serializer(m_useEnthalpy);
83 serializer(m_diffuse);
84 serializer(m_PRECSALT);
85 }
86
87 private:
88 friend class EclipseState;
89
90 ThresholdPressure m_ThresholdPressure{};
91 BCConfig m_bcconfig{};
92 RockConfig m_rock_config{};
93 DatumDepth m_datum_depth{};
94 bool m_useCPR{false};
95 bool m_useNONNC{false};
96 bool m_DISGAS{false};
97 bool m_DISGASW{false};
98 bool m_VAPOIL{false};
99 bool m_VAPWAT{false};
100 bool m_isThermal{false};
101 bool m_useEnthalpy{false};
102 bool m_diffuse{false};
103 bool m_PRECSALT{false};
104 };
105
106} // namespace Opm
107
108#endif // OPM_SIMULATION_CONFIG_HPP
Definition BCConfig.hpp:35
Definition Deck.hpp:46
Definition EclipseState.hpp:63
Definition FieldPropsManager.hpp:42
Definition RockConfig.hpp:33
Class for (de-)serializing.
Definition Serializer.hpp:94
Definition SimulationConfig.hpp:38
Definition ThresholdPressure.hpp:34
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30