My Project
Loading...
Searching...
No Matches
EclipseIO.hpp
1/*
2 Copyright (c) 2013 Andreas Lauser
3 Copyright (c) 2013 Uni Research AS
4 Copyright (c) 2014 IRIS AS
5
6 This file is part of the Open Porous Media project (OPM).
7
8 OPM is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 OPM is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with OPM. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#ifndef OPM_ECLIPSE_WRITER_HPP
23#define OPM_ECLIPSE_WRITER_HPP
24
25#include <opm/output/data/Solution.hpp>
26
27#include <map>
28#include <memory>
29#include <string>
30#include <vector>
31
32namespace Opm {
33
34class EclipseGrid;
35class EclipseState;
36struct NNCdata;
37class RestartKey;
38class RestartValue;
39class Schedule;
40class SummaryConfig;
41class SummaryState;
42class UDQState;
43class WellTestState;
44
45} // namespace Opm
46
47namespace Opm { namespace Action {
48 class State;
49}} // namespace Opm::Action
50
51namespace Opm { namespace out {
52 class Summary;
53}} // namespace Opm::out
54
55namespace Opm {
59{
60public:
63 EclipseIO(const EclipseState& es,
64 EclipseGrid grid,
65 const Schedule& schedule,
66 const SummaryConfig& summary_config,
67 const std::string& basename = "",
68 const bool writeEsmry = false);
69
70 EclipseIO(const EclipseIO&) = delete;
71
72 ~EclipseIO();
73
113 std::map<std::string, std::vector<int>> int_data = {},
114 const std::vector<NNCdata>& nnc = {});
115
123 void overwriteInitialOIP(const data::Solution& simProps);
124
141 void writeTimeStep(const Action::State& action_state,
142 const WellTestState& wtest_state,
143 const SummaryState& st,
144 const UDQState& udq_state,
145 int report_step,
146 bool isSubstep,
147 double seconds_elapsed,
148 RestartValue value,
149 const bool write_double = false);
150
182 SummaryState& summary_state,
183 const std::vector<RestartKey>& solution_keys,
184 const std::vector<RestartKey>& extra_keys = {}) const;
185
186 const out::Summary& summary() const;
187 const SummaryConfig& finalSummaryConfig() const;
188
189private:
190 class Impl;
191 std::unique_ptr<Impl> impl;
192};
193
194} // namespace Opm
195
196
197#endif // OPM_ECLIPSE_WRITER_HPP
Definition State.hpp:40
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition EclipseGrid.hpp:55
A class to write reservoir and well states of a blackoil simulation to disk.
Definition EclipseIO.hpp:59
RestartValue loadRestart(Action::State &action_state, SummaryState &summary_state, const std::vector< RestartKey > &solution_keys, const std::vector< RestartKey > &extra_keys={}) const
Will load solution data and wellstate from the restart file.
Definition EclipseIO.cpp:390
void overwriteInitialOIP(const data::Solution &simProps)
Overwrite the initial OIP values.
void writeInitial(data::Solution simProps=data::Solution(), std::map< std::string, std::vector< int > > int_data={}, const std::vector< NNCdata > &nnc={})
Output static properties in EGRID and INIT file.
Definition EclipseIO.cpp:275
void writeTimeStep(const Action::State &action_state, const WellTestState &wtest_state, const SummaryState &st, const UDQState &udq_state, int report_step, bool isSubstep, double seconds_elapsed, RestartValue value, const bool write_double=false)
Write a reservoir state and summary information to disk.
Definition EclipseIO.cpp:298
Definition EclipseState.hpp:63
Definition RestartValue.hpp:74
Definition Schedule.hpp:88
Definition SummaryConfig.hpp:133
Definition SummaryState.hpp:68
Definition UDQState.hpp:38
Definition WellTestState.hpp:60
Definition Solution.hpp:35
Definition Summary.hpp:52
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30