My Project
Loading...
Searching...
No Matches
RegionCache.hpp
1/*
2 Copyright 2016 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_REGION_CACHE_HPP
21#define OPM_REGION_CACHE_HPP
22
23#include <map>
24#include <set>
25#include <string>
26#include <vector>
27
28namespace Opm {
29 class Schedule;
30 class EclipseGrid;
31 class FieldPropsManager;
32
33namespace out {
35 public:
36 RegionCache() = default;
37 RegionCache(const std::set<std::string>& fip_regions, const FieldPropsManager& fp, const EclipseGrid& grid, const Schedule& schedule);
38 const std::vector<std::pair<std::string,size_t>>& connections( const std::string& region_name, int region_id ) const;
39
40 // A well is assigned to the region_id where the first connection is
41 std::vector<std::string> wells(const std::string& region_name, int region_id) const;
42 private:
43 std::vector<std::pair<std::string,size_t>> connections_empty;
44 std::map<std::pair<std::string, int> , std::vector<std::pair<std::string,size_t>>> connection_map;
45 std::map<std::pair<std::string, int>, std::vector<std::string>> well_map;
46 };
47}
48}
49
50#endif
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition EclipseGrid.hpp:55
Definition FieldPropsManager.hpp:41
Definition Schedule.hpp:133
Definition RegionCache.hpp:34
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30