39 using TypeTag = Opm::Properties::TTag::FlowProblemTPFA;
45 std::shared_ptr<Opm::Deck> deck,
46 std::shared_ptr<Opm::EclipseState> state,
47 std::shared_ptr<Opm::Schedule> schedule,
48 std::shared_ptr<Opm::SummaryConfig> summary_config);
49 void advance(
int report_step);
50 bool checkSimulationFinished();
52 py::array_t<double> getFluidStateVariable(
const std::string &name)
const;
53 py::array_t<double> getCellVolumes();
55 py::array_t<double> getPorosity();
56 py::array_t<double> getPrimaryVariable(
const std::string &variable)
const;
57 py::array_t<int> getPrimaryVarMeaning(
const std::string &variable)
const;
58 std::map<std::string, int> getPrimaryVarMeaningMap(
const std::string &variable)
const;
61 py::array_t<double, py::array::c_style | py::array::forcecast> array);
62 void setPrimaryVariable(
63 const std::string &idx_name,
65 py::array::c_style | py::array::forcecast> array);
66 void setupMpi(
bool init_mpi,
bool finalize_mpi);
72 Opm::FlowMain<TypeTag>& getFlowMain()
const;
76 const std::string deck_filename_;
77 bool has_run_init_ =
false;
78 bool has_run_cleanup_ =
false;
79 bool mpi_init_ =
true;
80 bool mpi_finalize_ =
true;
85 std::unique_ptr<Opm::PyMain> main_;
87 std::unique_ptr<Opm::FlowMain<TypeTag>> flow_main_;
88 Simulator* simulator_;
89 std::unique_ptr<PyFluidState<TypeTag>> fluid_state_;
90 std::unique_ptr<PyMaterialState<TypeTag>> material_state_;
91 std::shared_ptr<Opm::Deck> deck_;
92 std::shared_ptr<Opm::EclipseState> eclipse_state_;
93 std::shared_ptr<Opm::Schedule> schedule_;
94 std::shared_ptr<Opm::SummaryConfig> summary_config_;
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:235