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 isDiffusive() const;
61 bool hasPRECSALT() const;
62
63 bool operator==(const SimulationConfig& data) const;
64 static bool rst_cmp(const SimulationConfig& full_config,
65 const SimulationConfig& rst_config);
66
67 template<class Serializer>
68 void serializeOp(Serializer& serializer)
69 {
70 serializer(m_ThresholdPressure);
71 serializer(m_bcconfig);
72 serializer(m_rock_config);
73 serializer(this->m_datum_depth);
74 serializer(m_useCPR);
75 serializer(m_useNONNC);
76 serializer(m_DISGAS);
77 serializer(m_DISGASW);
78 serializer(m_VAPOIL);
79 serializer(m_VAPWAT);
80 serializer(m_isThermal);
81 serializer(m_diffuse);
82 serializer(m_PRECSALT);
83 }
84
85 private:
86 friend class EclipseState;
87
88 ThresholdPressure m_ThresholdPressure{};
89 BCConfig m_bcconfig{};
90 RockConfig m_rock_config{};
91 DatumDepth m_datum_depth{};
92 bool m_useCPR{false};
93 bool m_useNONNC{false};
94 bool m_DISGAS{false};
95 bool m_DISGASW{false};
96 bool m_VAPOIL{false};
97 bool m_VAPWAT{false};
98 bool m_isThermal{false};
99 bool m_diffuse{false};
100 bool m_PRECSALT{false};
101 };
102
103} // namespace Opm
104
105#endif // OPM_SIMULATION_CONFIG_HPP
Definition BCConfig.hpp:36
Definition Deck.hpp:49
Definition EclipseState.hpp:63
Definition FieldPropsManager.hpp:42
Definition RockConfig.hpp:33
Class for (de-)serializing.
Definition Serializer.hpp:84
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