My Project
Loading...
Searching...
No Matches
Co2StoreConfig.hpp
1/*
2 Copyright 2024 Norce.
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#ifndef OPM_PARSER_CO2STORECONFIG_HPP
20#define OPM_PARSER_CO2STORECONFIG_HPP
21
22#include <cstddef>
23#include <vector>
24#include <string>
25
26namespace Opm {
27
28class Deck;
29
31 public:
32
33 enum class SaltMixingType {
34 NONE, // Pure water
35 MICHAELIDES, // MICHAELIDES 1971 (default)
36 };
37
38 enum class LiquidMixingType {
39 NONE, // Pure water
40 IDEAL, // Ideal mixing
41 DUANSUN, // Add heat of dissolution for CO2 according to Fig. 6 in Duan and Sun 2003. (kJ/kg) (default)
42 };
43
44 enum class GasMixingType {
45 NONE, // Pure co2 (default)
46 IDEAL, // Ideal mixing
47 };
48
50
51 explicit Co2StoreConfig(const Deck& deck);
52
53 template<class Serializer>
54 void serializeOp(Serializer& serializer)
55 {
56 serializer(brine_type);
57 serializer(liquid_type);
58 serializer(gas_type);
59 }
60 bool operator==(const Co2StoreConfig& other) const;
61
62 SaltMixingType brine_type;
63 LiquidMixingType liquid_type;
64 GasMixingType gas_type;
65
66 private:
67
68 SaltMixingType string2enumSalt(const std::string& input) const;
69 LiquidMixingType string2enumLiquid(const std::string& input) const;
70 GasMixingType string2enumGas(const std::string& input) const;
71 };
72}
73
74#endif // OPM_PARSER_CO2STORECONFIG_HPP
Definition Co2StoreConfig.hpp:30
Definition Deck.hpp:49
Class for (de-)serializing.
Definition Serializer.hpp:84
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30