My Project
Loading...
Searching...
No Matches
AggregateWellData.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_WELL_DATA_HPP
21#define OPM_AGGREGATE_WELL_DATA_HPP
22
24
25#include <opm/io/eclipse/PaddedOutputString.hpp>
26
27#include <cstddef>
28#include <vector>
29
30namespace Opm {
31 class Schedule;
32 class SummaryState;
33 class UnitSystem;
34 class WellTestState;
35 class TracerConfig;
36 namespace Action {
37 class State;
38 }
39} // Opm
40
41namespace Opm { namespace data {
42 class Wells;
43}} // Opm::data
44
45namespace Opm { namespace RestartIO { namespace Helpers {
46
48 {
49 public:
50 explicit AggregateWellData(const std::vector<int>& inteHead);
51
52 void captureDeclaredWellData(const Schedule& sched,
53 const TracerConfig& tracer,
54 const std::size_t sim_step,
55 const Opm::Action::State& action_state,
56 const Opm::WellTestState& wtest_state,
57 const Opm::SummaryState& smry,
58 const std::vector<int>& inteHead);
59
60 void captureDynamicWellData(const Opm::Schedule& sched,
61 const TracerConfig& tracer,
62 const std::size_t sim_step,
63 const Opm::data::Wells& xw,
64 const Opm::SummaryState& smry);
65
67 const std::vector<int>& getIWell() const
68 {
69 return this->iWell_.data();
70 }
71
73 const std::vector<float>& getSWell() const
74 {
75 return this->sWell_.data();
76 }
77
79 const std::vector<double>& getXWell() const
80 {
81 return this->xWell_.data();
82 }
83
85 const std::vector<EclIO::PaddedOutputString<8>>& getZWell() const
86 {
87 return this->zWell_.data();
88 }
89
90
91
92 private:
94 WindowedArray<int> iWell_;
95
98
101
104
106 int nWGMax_;
107 };
108
109}}} // Opm::RestartIO::Helpers
110
111#endif // OPM_AGGREGATE_WELL_DATA_HPP
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Definition State.hpp:40
Definition AggregateWellData.hpp:48
const std::vector< int > & getIWell() const
Retrieve Integer Well Data Array.
Definition AggregateWellData.hpp:67
const std::vector< double > & getXWell() const
Retrieve Floating-Point (Double Precision) Well Data Array.
Definition AggregateWellData.hpp:79
const std::vector< float > & getSWell() const
Retrieve Floating-Point (Real) Well Data Array.
Definition AggregateWellData.hpp:73
const std::vector< EclIO::PaddedOutputString< 8 > > & getZWell() const
Retrieve Character Well Data Array.
Definition AggregateWellData.hpp:85
Provide read-only and read/write access to constantly sized portions/windows of a linearised buffer w...
Definition WindowedArray.hpp:50
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:88
Definition SummaryState.hpp:68
Definition TracerConfig.hpp:33
Definition WellTestState.hpp:60
Definition Wells.hpp:854
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30