20 #ifndef OPM_PY_BLACKOIL_SIMULATOR_HEADER_INCLUDED
21 #define OPM_PY_BLACKOIL_SIMULATOR_HEADER_INCLUDED
23 #include <opm/simulators/flow/Main.hpp>
24 #include <opm/simulators/flow/FlowMainEbos.hpp>
25 #include <opm/models/utils/propertysystem.hh>
26 #include <opm/simulators/flow/python/Pybind11Exporter.hpp>
27 #include <opm/simulators/flow/python/PyMaterialState.hpp>
28 #include <opm/input/eclipse/EclipseState/EclipseState.hpp>
29 #include <opm/input/eclipse/Schedule/Schedule.hpp>
30 #include <opm/input/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
32 namespace Opm::Pybind {
36 using TypeTag = Opm::Properties::TTag::EclFlowProblemTPFA;
37 using Simulator = Opm::GetPropType<TypeTag, Opm::Properties::Simulator>;
42 std::shared_ptr<Opm::Deck> deck,
43 std::shared_ptr<Opm::EclipseState> state,
44 std::shared_ptr<Opm::Schedule> schedule,
45 std::shared_ptr<Opm::SummaryConfig> summary_config);
46 bool checkSimulationFinished();
47 py::array_t<double> getPorosity();
50 py::array_t<double, py::array::c_style | py::array::forcecast> array);
52 void advance(
int report_step);
59 const std::string deckFilename_;
60 bool hasRunInit_ =
false;
61 bool hasRunCleanup_ =
false;
66 std::unique_ptr<Opm::Main> main_;
68 std::unique_ptr<Opm::FlowMainEbos<TypeTag>> mainEbos_;
69 Simulator *ebosSimulator_;
70 std::unique_ptr<PyMaterialState<TypeTag>> materialState_;
71 std::shared_ptr<Opm::Deck> deck_;
72 std::shared_ptr<Opm::EclipseState> eclipse_state_;
73 std::shared_ptr<Opm::Schedule> schedule_;
74 std::shared_ptr<Opm::SummaryConfig> summary_config_;
Definition: FlowMainEbos.hpp:89
Definition: PyBlackOilSimulator.hpp:34