My Project
Loading...
Searching...
No Matches
Compsegs.hpp
1/*
2 Copyright 2015 SINTEF ICT, Applied Mathematics.
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
21#ifndef COMPSEGS_HPP_
22#define COMPSEGS_HPP_
23
24#include <unordered_map>
25#include <vector>
26
27namespace Opm {
28
29 class Segment;
30 class Connection;
31 class WellConnections;
32 class DeckKeyword;
33 class WellSegments;
34 class ScheduleGrid;
35 class ParseContext;
36 class ErrorGuard;
37
38namespace RestartIO {
39 struct RstWell;
40}
41
42namespace Compsegs {
43
44
45/*
46 The COMPSEGS keyword defines a link between connections and segments. This
47 linking is circular because information about the segments is embedded in the
48 connections, and visa versa. The function creates new WellSegments and
49 WellConnections instances where the segment <--> connection linking has been
50 established.
51*/
52
53 std::pair<WellConnections, WellSegments>
54 processCOMPSEGS(const DeckKeyword& compsegs,
55 const WellConnections& input_connections,
56 const WellSegments& input_segments,
57 const ScheduleGrid& grid,
58 const ParseContext& parseContext,
59 ErrorGuard& errors);
60
61
62 std::pair<WellConnections, WellSegments>
63 rstUpdate(const RestartIO::RstWell& rst_well,
64 std::vector<Connection> input_connections,
65 const std::unordered_map<int, Segment>& input_segments);
66}
67}
68
69
70
71#endif /* COMPSEGS_HPP_ */
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30