AggregateConnectionData.hpp
Go to the documentation of this file.
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
29namespace Opm {
30 class EclipseGrid;
31 class Schedule;
32 class UnitSystem;
33} // Opm
34
35namespace Opm { namespace data {
36 class WellRates;
37}}
38
39namespace Opm { namespace RestartIO { namespace Helpers {
40
42 {
43 public:
44 explicit AggregateConnectionData(const std::vector<int>& inteHead);
45
47 const Opm::EclipseGrid& grid,
48 const Opm::UnitSystem& units,
49 const Opm::data::WellRates& xw,
50 const std::size_t sim_step);
51
52 const std::vector<int>& getIConn() const
53 {
54 return this->iConn_.data();
55 }
56
57 const std::vector<float>& getSConn() const
58 {
59 return this->sConn_.data();
60 }
61
62 const std::vector<double>& getXConn() const
63 {
64 return this->xConn_.data();
65 }
66
67 private:
71 };
72
73}}} // Opm::RestartIO::Helpers
74
75#endif // OPM_AGGREGATE_CONNECTION_DATA_HPP
Definition: EclipseGrid.hpp:54
Definition: AggregateConnectionData.hpp:42
AggregateConnectionData(const std::vector< int > &inteHead)
const std::vector< double > & getXConn() const
Definition: AggregateConnectionData.hpp:62
void captureDeclaredConnData(const Opm::Schedule &sched, const Opm::EclipseGrid &grid, const Opm::UnitSystem &units, const Opm::data::WellRates &xw, const std::size_t sim_step)
const std::vector< int > & getIConn() const
Definition: AggregateConnectionData.hpp:52
const std::vector< float > & getSConn() const
Definition: AggregateConnectionData.hpp:57
auto data() const -> decltype(std::declval< const WindowedArray< T > >().data())
Definition: WindowedArray.hpp:240
Definition: Schedule.hpp:113
Definition: UnitSystem.hpp:32
Definition: Wells.hpp:299
Definition: A.hpp:4
static std::string data()
Definition: exprtk.hpp:40022