opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
WelSegsSet.hpp
1
/*
2
Copyright 2013 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
#ifndef WEL_SEGS_SET_HPP
20
#define WEL_SEGS_SET_HPP
21
22
#include <opm/common/OpmLog/KeywordLocation.hpp>
23
24
#include <set>
25
#include <string>
26
#include <utility>
27
#include <vector>
28
29
namespace
Opm
{
30
31
class
Well
;
32
33
class
WelSegsSet
34
{
35
public
:
36
using
Entry = std::pair<std::string,KeywordLocation>;
37
38
void
insert(
const
std::string& well_name,
39
const
KeywordLocation
& location);
40
41
std::vector<Entry> difference(
const
std::set<std::string>& compsegs,
42
const
std::vector<Well>& wells)
const
;
43
44
private
:
45
struct
PairComp
46
{
47
bool
operator()(
const
Entry& pair,
const
std::string& str)
const
;
48
bool
operator()(
const
Entry& pair1,
const
Entry& pair2)
const
;
49
bool
operator()(
const
std::string& str,
const
Entry& pair)
const
;
50
};
51
52
std::set<Entry,PairComp> entries_;
53
};
54
55
}
// end namespace Opm
56
57
#endif
// WEL_SEGS_SET_HPP
Opm::KeywordLocation
Definition
KeywordLocation.hpp:27
Opm::WelSegsSet
Definition
WelSegsSet.hpp:34
Opm::Well
Definition
Well.hpp:77
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
input
eclipse
Schedule
MSW
WelSegsSet.hpp
Generated by
1.17.0