20 #ifndef OPM_SIMULATORS_HEADER_INCLUDED
21 #define OPM_SIMULATORS_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 <pybind11/pybind11.h>
27 #include <pybind11/numpy.h>
29 namespace py = pybind11;
31 namespace Opm::Pybind {
36 using Simulator = Opm::GetPropType<TypeTag, Opm::Properties::Simulator>;
40 py::array_t<double> getPorosity();
43 py::array_t<double, py::array::c_style | py::array::forcecast> array);
49 const std::string deckFilename_;
50 bool hasRunInit_ =
false;
51 bool hasRunCleanup_ =
false;
56 std::unique_ptr<Opm::Main> main_;
58 std::unique_ptr<Opm::FlowMainEbos<TypeTag>> mainEbos_;
59 Simulator *ebosSimulator_;
60 std::unique_ptr<PyMaterialState<TypeTag>> materialState_;
Definition: simulators.hpp:33
Definition: BlackoilModelEbos.hpp:75