AquiferConfig.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2020 Equinor
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_AUQIFER_CONFIG_HPP
21#define OPM_AUQIFER_CONFIG_HPP
22
26
27namespace Opm {
28
29class TableManager;
30class EclipseGrid;
31class Deck;
32
34public:
35 AquiferConfig() = default;
36 AquiferConfig(const TableManager& tables, const EclipseGrid& grid, const Deck& deck);
37 AquiferConfig(const Aquifetp& fetp, const AquiferCT& ct, const Aquancon& conn);
38
40
41 bool active() const;
42 const AquiferCT& ct() const;
43 const Aquifetp& fetp() const;
44 const Aquancon& connections() const;
45 bool operator==(const AquiferConfig& other);
46
47 template<class Serializer>
48 void serializeOp(Serializer& serializer)
49 {
50 aquifetp.serializeOp(serializer);
51 aquiferct.serializeOp(serializer);
52 aqconn.serializeOp(serializer);
53 }
54
55private:
56 Aquifetp aquifetp;
57 AquiferCT aquiferct;
58 Aquancon aqconn;
59};
60
61}
62
63#endif
Definition: Aquancon.hpp:41
void serializeOp(Serializer &serializer)
Definition: Aquancon.hpp:94
Definition: AquiferCT.hpp:44
void serializeOp(Serializer &serializer)
Definition: AquiferCT.hpp:122
Definition: AquiferConfig.hpp:33
static AquiferConfig serializeObject()
const Aquifetp & fetp() const
const Aquancon & connections() const
void serializeOp(Serializer &serializer)
Definition: AquiferConfig.hpp:48
AquiferConfig(const TableManager &tables, const EclipseGrid &grid, const Deck &deck)
AquiferConfig()=default
bool operator==(const AquiferConfig &other)
AquiferConfig(const Aquifetp &fetp, const AquiferCT &ct, const Aquancon &conn)
bool active() const
const AquiferCT & ct() const
Definition: Aquifetp.hpp:36
void serializeOp(Serializer &serializer)
Definition: Aquifetp.hpp:80
Definition: Deck.hpp:115
Definition: EclipseGrid.hpp:54
Definition: Serializer.hpp:38
Definition: TableManager.hpp:63
Definition: A.hpp:4