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