AggregateMSWData.hpp
Go to the documentation of this file.
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
25
26#include <string>
27#include <vector>
28
29namespace Opm {
30 class Phases;
31 class Schedule;
32 class EclipseGrid;
33 class UnitSystem;
34 class SummaryState;
35} // Opm
36
37namespace Opm { namespace RestartIO { namespace Helpers {
38
44 int branch;
45 };
46
48 std::vector<double> qosc;
49 std::vector<double> qwsc;
50 std::vector<double> qgsc;
51 };
52
54 std::vector<double> sofr;
55 std::vector<double> swfr;
56 std::vector<double> sgfr;
57 };
58
60 {
61 public:
62 explicit AggregateMSWData(const std::vector<int>& inteHead);
63
65 const std::size_t rptStep,
66 const Opm::UnitSystem& units,
67 const std::vector<int>& inteHead,
68 const Opm::EclipseGrid& grid,
69 const Opm::SummaryState& smry,
70 const Opm::data::WellRates& wr
71 );
72
74 const std::vector<int>& getISeg() const
75 {
76 return this->iSeg_.data();
77 }
78
80 const std::vector<double>& getRSeg() const
81 {
82 return this->rSeg_.data();
83 }
84
86 const std::vector<int>& getILBs() const
87 {
88 return this->iLBS_.data();
89 }
90
92 const std::vector<int>& getILBr() const
93 {
94 return this->iLBR_.data();
95 }
96
97
98 private:
100 WindowedArray<int> iSeg_;
101
104
106 WindowedArray<int> iLBS_;
107
109 WindowedArray<int> iLBR_;
110
111 };
112
113}}} // Opm::RestartIO::Helpers
114
115#endif // OPM_AGGREGATE_WELL_DATA_HPP
Definition: EclipseGrid.hpp:54
Definition: AggregateMSWData.hpp:60
const std::vector< int > & getISeg() const
Retrieve Integer Multisegment well data Array.
Definition: AggregateMSWData.hpp:74
const std::vector< int > & getILBr() const
Retrieve Integer multisegment well data Array for lateral branches (ILBR)
Definition: AggregateMSWData.hpp:92
const std::vector< int > & getILBs() const
Retrieve Integer multisegment well data Array for lateral branches (ILBS)
Definition: AggregateMSWData.hpp:86
void captureDeclaredMSWData(const Opm::Schedule &sched, const std::size_t rptStep, const Opm::UnitSystem &units, const std::vector< int > &inteHead, const Opm::EclipseGrid &grid, const Opm::SummaryState &smry, const Opm::data::WellRates &wr)
const std::vector< double > & getRSeg() const
Retrieve Double precision segment data Array.
Definition: AggregateMSWData.hpp:80
AggregateMSWData(const std::vector< int > &inteHead)
const std::vector< T > & data() const
Definition: WindowedArray.hpp:126
Definition: Schedule.hpp:113
Definition: SummaryState.hpp:65
Definition: UnitSystem.hpp:32
Definition: Wells.hpp:299
Definition: A.hpp:4
Definition: AggregateMSWData.hpp:39
int firstSeg
Definition: AggregateMSWData.hpp:42
int outletS
Definition: AggregateMSWData.hpp:40
int noSegInBranch
Definition: AggregateMSWData.hpp:41
int lastSeg
Definition: AggregateMSWData.hpp:43
int branch
Definition: AggregateMSWData.hpp:44
Definition: AggregateMSWData.hpp:53
std::vector< double > swfr
Definition: AggregateMSWData.hpp:55
std::vector< double > sofr
Definition: AggregateMSWData.hpp:54
std::vector< double > sgfr
Definition: AggregateMSWData.hpp:56
Definition: AggregateMSWData.hpp:47
std::vector< double > qgsc
Definition: AggregateMSWData.hpp:50
std::vector< double > qwsc
Definition: AggregateMSWData.hpp:49
std::vector< double > qosc
Definition: AggregateMSWData.hpp:48