opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
AggregateConnectionData.hpp
1
/*
2
Copyright (c) 2018 Equinor 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_CONNECTION_DATA_HPP
21
#define OPM_AGGREGATE_CONNECTION_DATA_HPP
22
23
#include <
opm/output/eclipse/WindowedArray.hpp
>
24
25
#include <cstddef>
26
#include <vector>
27
28
namespace
Opm
{
29
class
EclipseGrid
;
30
class
Schedule
;
31
class
UnitSystem
;
32
class
SummaryState
;
33
}
// Opm
34
35
namespace
Opm
{
namespace
data {
36
class
Wells
;
37
}}
38
39
namespace
Opm
{
namespace
RestartIO {
namespace
Helpers {
40
41
class
AggregateConnectionData
42
{
43
public
:
44
explicit
AggregateConnectionData(
const
std::vector<int>& inteHead);
45
46
void
captureDeclaredConnData(
const
Opm::Schedule
& sched,
47
const
Opm::EclipseGrid
& grid,
48
const
Opm::UnitSystem
& units,
49
const
Opm::data::Wells
& xw,
50
const
Opm::SummaryState
& summary_state,
51
const
std::size_t sim_step);
52
void
captureDeclaredConnDataLGR(
const
Opm::Schedule
& sched,
53
const
Opm::EclipseGrid
& grid,
54
const
Opm::UnitSystem
& units,
55
const
Opm::data::Wells
& xw,
56
const
Opm::SummaryState
& summary_state,
57
const
std::size_t sim_step,
58
const
std::string& lgr_tag);
59
60
const
std::vector<int>& getIConn()
const
61
{
62
return
this->iConn_.data();
63
}
64
65
const
std::vector<float>& getSConn()
const
66
{
67
return
this->sConn_.data();
68
}
69
70
const
std::vector<double>& getXConn()
const
71
{
72
return
this->xConn_.data();
73
}
74
75
private
:
76
WindowedMatrix<int>
iConn_;
77
WindowedMatrix<float>
sConn_;
78
WindowedMatrix<double>
xConn_;
79
};
80
81
}}}
// Opm::RestartIO::Helpers
82
83
#endif
// OPM_AGGREGATE_CONNECTION_DATA_HPP
WindowedArray.hpp
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Opm::EclipseGrid
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition
EclipseGrid.hpp:61
Opm::RestartIO::Helpers::WindowedMatrix
Provide read-only and read/write access to constantly sized portions/windows of a linearised buffer w...
Definition
WindowedArray.hpp:170
Opm::Schedule
Definition
Schedule.hpp:101
Opm::SummaryState
Definition
SummaryState.hpp:72
Opm::UnitSystem
Definition
UnitSystem.hpp:34
Opm::data::Wells
Definition
Wells.hpp:1199
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
output
eclipse
AggregateConnectionData.hpp
Generated by
1.17.0