My Project
WriteRestartHelpers.hpp
1 /*
2  Copyright (c) 2018 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_WRITE_RESTART_HELPERS_HPP
21 #define OPM_WRITE_RESTART_HELPERS_HPP
22 
23 #include <vector>
24 
25 // Forward declarations
26 
27 namespace Opm {
28 
29  class Runspec;
30  class EclipseGrid;
31  class EclipseState;
32  class Schedule;
33  class Well;
34  class UnitSystem;
35  class UDQActive;
36  class Actdims;
37 
38 } // Opm
39 
40 namespace Opm { namespace RestartIO { namespace Helpers {
41 
42  std::vector<double>
43  createDoubHead(const EclipseState& es,
44  const Schedule& sched,
45  const std::size_t sim_step,
46  const std::size_t report_step,
47  const double simTime,
48  const double nextTimeStep);
49 
50  std::vector<int>
51  createInteHead(const EclipseState& es,
52  const EclipseGrid& grid,
53  const Schedule& sched,
54  const double simTime,
55  const int num_solver_steps,
56  const int report_step,
57  const int lookup_step);
58 
59  std::vector<bool>
60  createLogiHead(const EclipseState& es);
61 
62  std::vector<int>
63  createUdqDims(const Schedule& sched,
64  const std::size_t lookup_step,
65  const std::vector<int>& inteHead);
66 
67  std::size_t
68  entriesPerSACT();
69 
70  std::size_t
71  entriesPerIACT();
72 
73  std::size_t
74  entriesPerZACT();
75 
76  std::size_t
77  entriesPerZACN(const Opm::Actdims& actdims);
78 
79  std::size_t
80  entriesPerIACN(const Opm::Actdims& actdims);
81 
82  std::size_t
83  entriesPerSACN(const Opm::Actdims& actdims);
84 
85  std::vector<int>
86  createActionRSTDims(const Schedule& sched,
87  const std::size_t simStep);
88 
89 }}} // Opm::RestartIO::Helpers
90 
91 #endif // OPM_WRITE_RESTART_HELPERS_HPP
Definition: Actdims.hpp:30
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29