My Project
AggregateConnectionData.hpp
1 /*
2  Copyright (c) 2018 Equinor 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_AGGREGATE_CONNECTION_DATA_HPP
21 #define OPM_AGGREGATE_CONNECTION_DATA_HPP
22 
24 
25 #include <cstddef>
26 #include <string>
27 #include <vector>
28 
29 namespace Opm {
30  class EclipseGrid;
31  class Schedule;
32  class UnitSystem;
33  class SummaryState;
34 } // Opm
35 
36 namespace Opm { namespace data {
37  class Wells;
38 }}
39 
40 namespace Opm { namespace RestartIO { namespace Helpers {
41 
43  {
44  public:
45  explicit AggregateConnectionData(const std::vector<int>& inteHead);
46 
47  void captureDeclaredConnData(const Opm::Schedule& sched,
48  const Opm::EclipseGrid& grid,
49  const Opm::UnitSystem& units,
50  const Opm::data::Wells& xw,
51  const Opm::SummaryState& summary_state,
52  const std::size_t sim_step);
53 
54  const std::vector<int>& getIConn() const
55  {
56  return this->iConn_.data();
57  }
58 
59  const std::vector<float>& getSConn() const
60  {
61  return this->sConn_.data();
62  }
63 
64  const std::vector<double>& getXConn() const
65  {
66  return this->xConn_.data();
67  }
68 
69  private:
70  WindowedMatrix<int> iConn_;
71  WindowedMatrix<float> sConn_;
73  };
74 
75 }}} // Opm::RestartIO::Helpers
76 
77 #endif // OPM_AGGREGATE_CONNECTION_DATA_HPP
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition: EclipseGrid.hpp:55
Definition: AggregateConnectionData.hpp:43
auto data() const -> decltype(std::declval< const WindowedArray< T >>().data())
Get read-only access to full, linearised data items for all windows.
Definition: WindowedArray.hpp:245
Definition: Schedule.hpp:135
Definition: SummaryState.hpp:69
Definition: UnitSystem.hpp:34
Definition: Wells.hpp:337
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29