opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
AggregateMSWData.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_MSW_DATA_HPP
21
#define OPM_AGGREGATE_MSW_DATA_HPP
22
23
#include <opm/output/data/Wells.hpp>
24
#include <
opm/output/eclipse/WindowedArray.hpp
>
25
26
#include <vector>
27
28
namespace
Opm
{
29
class
Phases
;
30
class
Schedule
;
31
class
EclipseGrid
;
32
class
UnitSystem
;
33
class
SummaryState
;
34
}
// Opm
35
36
namespace
Opm
{
namespace
RestartIO {
namespace
Helpers {
37
38
class
AggregateMSWData
39
{
40
public
:
41
explicit
AggregateMSWData(
const
std::vector<int>& inteHead);
42
43
void
captureDeclaredMSWData(
const
Opm::Schedule
& sched,
44
const
std::size_t rptStep,
45
const
Opm::UnitSystem
& units,
46
const
std::vector<int>& inteHead,
47
const
Opm::EclipseGrid
& grid,
48
const
Opm::SummaryState
& smry,
49
const
Opm::data::Wells
& wr);
50
52
const
std::vector<int>&
getISeg
()
const
53
{
54
return
this->iSeg_.data();
55
}
56
58
const
std::vector<double>&
getRSeg
()
const
59
{
60
return
this->rSeg_.data();
61
}
62
64
const
std::vector<int>&
getILBs
()
const
65
{
66
return
this->iLBS_.data();
67
}
68
70
const
std::vector<int>&
getILBr
()
const
71
{
72
return
this->iLBR_.data();
73
}
74
75
private
:
77
WindowedArray<int>
iSeg_;
78
80
WindowedArray<double>
rSeg_;
81
83
WindowedArray<int>
iLBS_;
84
86
WindowedMatrix<int>
iLBR_;
87
};
88
89
}}}
// Opm::RestartIO::Helpers
90
91
#endif
// OPM_AGGREGATE_WELL_DATA_HPP
WindowedArray.hpp
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Opm::EclipseGrid
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition
EclipseGrid.hpp:61
Opm::Phases
Definition
Runspec.hpp:46
Opm::RestartIO::Helpers::AggregateMSWData::getISeg
const std::vector< int > & getISeg() const
Retrieve Integer Multisegment well data Array.
Definition
AggregateMSWData.hpp:52
Opm::RestartIO::Helpers::AggregateMSWData::getILBr
const std::vector< int > & getILBr() const
Retrieve Integer multisegment well data Array for lateral branches (ILBR).
Definition
AggregateMSWData.hpp:70
Opm::RestartIO::Helpers::AggregateMSWData::getILBs
const std::vector< int > & getILBs() const
Retrieve Integer multisegment well data Array for lateral branches (ILBS).
Definition
AggregateMSWData.hpp:64
Opm::RestartIO::Helpers::AggregateMSWData::getRSeg
const std::vector< double > & getRSeg() const
Retrieve Double precision segment data Array.
Definition
AggregateMSWData.hpp:58
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::RestartIO::Helpers::WindowedMatrix
Provide read-only and read/write access to constantly sized portions/windows of a linearised buffer w...
Definition
WindowedArray.hpp:170
Opm::Schedule
Definition
Schedule.hpp:101
Opm::SummaryState
Definition
SummaryState.hpp:72
Opm::UnitSystem
Definition
UnitSystem.hpp:34
Opm::data::Wells
Definition
Wells.hpp:1199
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
output
eclipse
AggregateMSWData.hpp
Generated by
1.17.0