My Project
Loading...
Searching...
No Matches
ScheduleGrid.hpp
1/*
2 Copyright 2021 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#ifndef SCHEDULE_GRID
20#define SCHEDULE_GRID
21
22#include <opm/input/eclipse/Schedule/CompletedCells.hpp>
23
24#include <cstddef>
25#include <string>
26
27namespace Opm {
28
29class EclipseGrid;
30class FieldPropsManager;
31
32} // namespace Opm
33
34namespace Opm {
35
37{
38public:
39 ScheduleGrid(const EclipseGrid& ecl_grid,
40 const FieldPropsManager& fpm,
41 CompletedCells& completed_cells);
42
43 explicit ScheduleGrid(CompletedCells& completed_cells);
44
46 get_cell(std::size_t i, std::size_t j, std::size_t k) const;
47
48 const Opm::EclipseGrid* get_grid() const;
49
50private:
51 const EclipseGrid* grid{nullptr};
52 const FieldPropsManager* fp{nullptr};
53 CompletedCells& cells;
54};
55
56} // namespace Opm
57
58#endif // SCHEDULE_GRID
Definition CompletedCells.hpp:34
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:42
Definition ScheduleGrid.hpp:37
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Definition CompletedCells.hpp:37