My Project
Loading...
Searching...
No Matches
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
27#include <cstddef>
28#include <string>
29#include <vector>
30#include <map>
31
32namespace Opm {
33 class EclipseState;
34 class Schedule;
35 class SummaryState;
36 class UnitSystem;
37} // Opm
38
39namespace Opm { namespace RestartIO { namespace Helpers {
40
42{
43public:
44 explicit AggregateNetworkData(const std::vector<int>& inteHead);
45
46 void captureDeclaredNetworkData(const Opm::EclipseState& es,
47 const Opm::Schedule& sched,
48 const Opm::UnitSystem& units,
49 const std::size_t lookup_step,
50 const Opm::SummaryState& sumState,
51 const std::vector<int>& inteHead);
52
53 const std::vector<int>& getINode() const
54 {
55 return this->iNode_.data();
56 }
57
58 const std::vector<int>& getIBran() const
59 {
60 return this->iBran_.data();
61 }
62
63 const std::vector<int>& getINobr() const
64 {
65 return this->iNobr_.data();
66 }
67
68
69 const std::vector<double>& getRNode() const
70 {
71 return this->rNode_.data();
72 }
73
74 const std::vector<double>& getRBran() const
75 {
76 return this->rBran_.data();
77 }
78
79
80 const std::vector<EclIO::PaddedOutputString<8>>& getZNode() const
81 {
82 return this->zNode_.data();
83 }
84
85
86private:
88 WindowedArray<int> iNode_;
89
91 WindowedArray<int> iBran_;
92
94 WindowedArray<int> iNobr_;
95
98
101
104
106 //int nWGMax_;
107
109 //int nGMaxz_;
110};
111
112}}} // Opm::RestartIO::Helpers
113
114#endif // OPM_AGGREGATE_NETWORK_DATA_HPP
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Definition EclipseState.hpp:57
Definition AggregateNetworkData.hpp:42
Provide read-only and read/write access to constantly sized portions/windows of a linearised buffer w...
Definition WindowedArray.hpp:50
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:133
Definition SummaryState.hpp:68
Definition UnitSystem.hpp:33
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30