My Project
Loading...
Searching...
No Matches
Summary.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_OUTPUT_SUMMARY_HPP
21#define OPM_OUTPUT_SUMMARY_HPP
22
23#include <opm/output/data/Aquifer.hpp>
25
26#include <map>
27#include <memory>
28#include <string>
29#include <unordered_map>
30#include <utility>
31#include <vector>
32
33namespace Opm {
34 class EclipseGrid;
35 class EclipseState;
36 class Inplace;
37 class Schedule;
38 class SummaryConfig;
39 class SummaryState;
40} // namespace Opm
41
42namespace Opm { namespace data {
43 class GroupAndNetworkValues;
44 class InterRegFlowMap;
45 struct WellBlockAveragePressures;
46 class Wells;
47}} // namespace Opm::data
48
49namespace Opm { namespace out {
50
52{
53public:
54 using GlobalProcessParameters = std::map<std::string, double>;
55 using RegionParameters = std::map<std::string, std::vector<double>>;
56 using BlockValues = std::map<std::pair<std::string, int>, double>;
57 using InterRegFlowValues = std::unordered_map<std::string, data::InterRegFlowMap>;
58
59 Summary(SummaryConfig& sumcfg,
60 const EclipseState& es,
61 const EclipseGrid& grid,
62 const Schedule& sched,
63 const std::string& basename = "",
64 const bool writeEsmry = false);
65
66 ~Summary();
67
68 void add_timestep(const SummaryState& st, const int report_step, bool isSubstep);
69
70 void eval(SummaryState& summary_state,
71 const int report_step,
72 const double secs_elapsed,
73 const data::Wells& well_solution,
75 const data::GroupAndNetworkValues& group_and_nwrk_solution,
76 const GlobalProcessParameters& single_values,
77 const Inplace& initial_inplace,
78 const Inplace& inplace,
79 const RegionParameters& region_values = {},
80 const BlockValues& block_values = {},
81 const data::Aquifers& aquifers_values = {},
82 const InterRegFlowValues& interreg_flows = {}) const;
83
84 void write(const bool is_final_summary = false) const;
85
86private:
88 std::unique_ptr<SummaryImplementation> pImpl_;
89};
90
91}} // namespace Opm::out
92
93#endif //OPM_OUTPUT_SUMMARY_HPP
Facility for converting collection of region ID pairs into a sparse (CSR) adjacency matrix representa...
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition EclipseGrid.hpp:55
Definition EclipseState.hpp:63
Definition Inplace.hpp:36
Definition Schedule.hpp:88
Definition SummaryConfig.hpp:133
Definition SummaryState.hpp:68
Definition Groups.hpp:212
Definition Wells.hpp:854
Definition Summary.cpp:4159
Definition Summary.hpp:52
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Definition Wells.hpp:942