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