20#ifndef OPM_AQUANCON_HPP
21#define OPM_AQUANCON_HPP
29#include <opm/input/eclipse/EclipseState/Grid/FaceDir.hpp>
32#include <unordered_map>
40namespace Opm {
namespace RestartIO {
51 std::size_t global_index;
53 double effective_facearea;
54 FaceDir::DirEnum face_dir;
59 const double eff_faceArea,
60 const FaceDir::DirEnum fd)
61 : aquiferID(aquiferID_arg)
64 , effective_facearea(eff_faceArea)
70 bool operator==(
const AquancCell& other)
const {
71 return (this->aquiferID == other.aquiferID)
72 && (this->global_index == other.global_index)
73 && (this->influx_coeff == other.influx_coeff)
74 && (this->effective_facearea == other.effective_facearea)
75 && (this->face_dir == other.face_dir);
78 template<
class Serializer>
81 serializer(this->aquiferID);
82 serializer(this->global_index);
83 serializer(this->influx_coeff);
84 serializer(this->effective_facearea);
85 serializer(this->face_dir);
91 explicit Aquancon(
const std::unordered_map<
int, std::vector<Aquancon::AquancCell>>& data);
93 void pruneDeactivatedAquiferConnections(
const std::vector<std::size_t>& deactivated_cells);
96 static Aquancon serializationTestObject();
98 const std::unordered_map<int, std::vector<Aquancon::AquancCell>>& data()
const;
99 bool operator==(
const Aquancon& other)
const;
102 bool hasAquiferConnections(
int aquiferID)
const;
103 const std::vector<Aquancon::AquancCell>& getConnections(
int aquiferID)
const;
105 template<
class Serializer>
108 serializer(this->cells);
112 std::unordered_map<int, std::vector<Aquancon::AquancCell>> cells;
Definition: Aquancon.hpp:46
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition: EclipseGrid.hpp:54
Definition: aquifer.hpp:45
Class for (de-)serializing.
Definition: Serializer.hpp:75
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29
Definition: Aquancon.hpp:49