My Project
AggregateActionxData.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_Actionx_DATA_HPP
21#define OPM_AGGREGATE_Actionx_DATA_HPP
22
24#include <opm/io/eclipse/PaddedOutputString.hpp>
25
26#include <opm/input/eclipse/Schedule/UDQ/UDQInput.hpp>
27#include <opm/input/eclipse/Schedule/UDQ/UDQDefine.hpp>
28#include <opm/input/eclipse/Schedule/UDQ/UDQActive.hpp>
29#include <opm/input/eclipse/Schedule/UDQ/UDQAssign.hpp>
30#include <opm/input/eclipse/Schedule/UDQ/UDQEnums.hpp>
31#include <opm/input/eclipse/Schedule/UDQ/UDQParams.hpp>
32#include <opm/input/eclipse/Schedule/UDQ/UDQFunctionTable.hpp>
33
34#include <cstddef>
35#include <string>
36#include <vector>
37#include <map>
38
39namespace Opm {
40 class Schedule;
41 class UDQInput;
42 class UDQActive;
43 class Actdims;
44
45 namespace Action {
46 class State;
47 }
48} // Opm
49
50
51
52namespace Opm { namespace RestartIO { namespace Helpers {
53
55{
56public:
57
59 const Opm::Action::State& action_state,
60 const Opm::SummaryState& st,
61 const std::size_t simStep);
62
63 const std::vector<int>& getIACT() const
64 {
65 return this->iACT_.data();
66 }
67
68
69 const std::vector<float>& getSACT() const
70 {
71 return this->sACT_.data();
72 }
73
74 const std::vector<EclIO::PaddedOutputString<8>>& getZACT() const
75 {
76 return this->zACT_.data();
77 }
78
79 const std::vector<EclIO::PaddedOutputString<8>>& getZLACT() const
80 {
81 return this->zLACT_.data();
82 }
83
84 const std::vector<EclIO::PaddedOutputString<8>>& getZACN() const
85 {
86 return this->zACN_.data();
87 }
88
89 const std::vector<int>& getIACN() const
90 {
91 return this->iACN_.data();
92 }
93
94 const std::vector<double>& getSACN() const
95 {
96 return this->sACN_.data();
97 }
98
99private:
100 AggregateActionxData( const std::vector<int>& rst_dims,
101 std::size_t num_actions,
102 const Opm::Actdims& actdims,
103 const Opm::Schedule& sched,
104 const Opm::Action::State& action_state,
105 const Opm::SummaryState& st,
106 const std::size_t simStep);
107
109 WindowedArray<int> iACT_;
110
113
116
119
122
124 WindowedArray<int> iACN_;
125
128
129};
130
131}}} // Opm::RestartIO::Helpers
132
133#endif //OPM_AGGREGATE_WELL_DATA_HPP
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Definition: Actdims.hpp:30
Definition: State.hpp:40
Definition: AggregateActionxData.hpp:55
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
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29