My Project
NumericalAquiferCell.hpp
1 /*
2  Copyright (C) 2020 SINTEF Digital
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_NUMERICALAQUIFERCELL_HPP
21 #define OPM_NUMERICALAQUIFERCELL_HPP
22 
23 #include <cstddef>
24 #include <optional>
25 
26 namespace Opm {
27  class DeckRecord;
28  class EclipseGrid;
29  class FieldPropsManager;
30 
32  NumericalAquiferCell(const std::size_t record_id_, const DeckRecord&, const EclipseGrid&, const FieldPropsManager&);
33  NumericalAquiferCell() = default;
34  std::size_t aquifer_id{};
35  std::size_t I{}, J{}, K{};
36  double area{};
37  double length{};
38  double porosity{};
39  double permeability{};
40  double depth{};
41  std::optional<double> init_pressure{};
42  int pvttable{};
43  int sattable{};
44  std::size_t global_index{};
45  std::size_t record_id{};
46 
47  double cellVolume() const;
48  double poreVolume() const;
49  double transmissiblity() const;
50  bool operator == (const NumericalAquiferCell& other) const;
51 
52  template<class Serializer>
53  void serializeOp(Serializer& serializer) {
54  serializer(this->aquifer_id);
55  serializer(this->I);
56  serializer(this->J);
57  serializer(this->K);
58  serializer(this->area);
59  serializer(this->length);
60  serializer(this->porosity);
61  serializer(this->permeability);
62  serializer(this->depth);
63  serializer(this->init_pressure);
64  serializer(this->pvttable);
65  serializer(this->sattable);
66  serializer(this->global_index);
67  serializer(this->record_id);
68  }
69  };
70 }
71 
72 #endif //OPM_NUMERICALAQUIFERCELL_HPP
Definition: DeckRecord.hpp:32
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition: EclipseGrid.hpp:54
Definition: FieldPropsManager.hpp:38
Definition: Serializer.hpp:38
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29
Definition: NumericalAquiferCell.hpp:31