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/UDQAssign.hpp>
29#include <opm/input/eclipse/Schedule/UDQ/UDQEnums.hpp>
30#include <opm/input/eclipse/Schedule/UDQ/UDQParams.hpp>
31#include <opm/input/eclipse/Schedule/UDQ/UDQFunctionTable.hpp>
32
33#include <cstddef>
34#include <string>
35#include <vector>
36#include <map>
37
38namespace Opm {
39 class Schedule;
40 class UDQInput;
41 class Actdims;
42
43 namespace Action {
44 class State;
45 }
46} // Opm
47
48
49
50namespace Opm { namespace RestartIO { namespace Helpers {
51
53{
54public:
55
57 const Opm::Action::State& action_state,
58 const Opm::SummaryState& st,
59 const std::size_t simStep);
60
61 const std::vector<int>& getIACT() const
62 {
63 return this->iACT_.data();
64 }
65
66
67 const std::vector<float>& getSACT() const
68 {
69 return this->sACT_.data();
70 }
71
72 const std::vector<EclIO::PaddedOutputString<8>>& getZACT() const
73 {
74 return this->zACT_.data();
75 }
76
77 const std::vector<EclIO::PaddedOutputString<8>>& getZLACT() const
78 {
79 return this->zLACT_.data();
80 }
81
82 const std::vector<EclIO::PaddedOutputString<8>>& getZACN() const
83 {
84 return this->zACN_.data();
85 }
86
87 const std::vector<int>& getIACN() const
88 {
89 return this->iACN_.data();
90 }
91
92 const std::vector<double>& getSACN() const
93 {
94 return this->sACN_.data();
95 }
96
97private:
98 AggregateActionxData( const std::vector<int>& rst_dims,
99 std::size_t num_actions,
100 const Opm::Actdims& actdims,
101 const Opm::Schedule& sched,
102 const Opm::Action::State& action_state,
103 const Opm::SummaryState& st,
104 const std::size_t simStep);
105
107 WindowedArray<int> iACT_;
108
111
114
117
120
122 WindowedArray<int> iACN_;
123
126
127};
128
129}}} // Opm::RestartIO::Helpers
130
131#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:53
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:130
Definition: SummaryState.hpp:68
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30