My Project
AggregateNetworkData.hpp
1/*
2 Copyright (c) 2018 Statoil 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_NETWORK_DATA_HPP
21#define OPM_AGGREGATE_NETWORK_DATA_HPP
22
24
25#include <opm/io/eclipse/PaddedOutputString.hpp>
26#include <opm/input/eclipse/Schedule/Group/Group.hpp>
27#include <opm/input/eclipse/Schedule/Network/ExtNetwork.hpp>
28#include <cstddef>
29#include <string>
30#include <vector>
31#include <map>
32
33namespace Opm {
34 class EclipseState;
35 class Schedule;
36 class SummaryState;
37 //class Group;
38 class UnitSystem;
39} // Opm
40
41namespace Opm { namespace RestartIO { namespace Helpers {
42
44{
45public:
46 explicit AggregateNetworkData(const std::vector<int>& inteHead);
47
48 void captureDeclaredNetworkData(const Opm::EclipseState& es,
49 const Opm::Schedule& sched,
50 const Opm::UnitSystem& units,
51 const std::size_t lookup_step,
52 const Opm::SummaryState& sumState,
53 const std::vector<int>& inteHead);
54
55 const std::vector<int>& getINode() const
56 {
57 return this->iNode_.data();
58 }
59
60 const std::vector<int>& getIBran() const
61 {
62 return this->iBran_.data();
63 }
64
65 const std::vector<int>& getINobr() const
66 {
67 return this->iNobr_.data();
68 }
69
70
71 const std::vector<double>& getRNode() const
72 {
73 return this->rNode_.data();
74 }
75
76 const std::vector<double>& getRBran() const
77 {
78 return this->rBran_.data();
79 }
80
81
82 const std::vector<EclIO::PaddedOutputString<8>>& getZNode() const
83 {
84 return this->zNode_.data();
85 }
86
87
88private:
90 WindowedArray<int> iNode_;
91
93 WindowedArray<int> iBran_;
94
96 WindowedArray<int> iNobr_;
97
100
103
106
108 //int nWGMax_;
109
111 //int nGMaxz_;
112};
113
114}}} // Opm::RestartIO::Helpers
115
116#endif // OPM_AGGREGATE_NETWORK_DATA_HPP
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Definition: EclipseState.hpp:55
Definition: AggregateNetworkData.hpp:44
const std::vector< T > & data() const
Get read-only access to full, linearised data items for all windows.
Definition: WindowedArray.hpp:131
Definition: Schedule.hpp:138
Definition: SummaryState.hpp:69
Definition: UnitSystem.hpp:33
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29