53 const std::vector<std::string>& args);
55 std::shared_ptr<Opm::Deck>
deck,
56 std::shared_ptr<Opm::EclipseState>
state,
57 std::shared_ptr<Opm::Schedule> schedule,
59 void advance(
int report_step);
60 bool checkSimulationFinished();
62 py::array_t<double> getFluidStateVariable(
const std::string &name)
const;
63 py::array_t<double> getCellVolumes();
65 py::array_t<double> getPorosity();
66 py::array_t<double> getPrimaryVariable(
const std::string &
variable)
const;
67 py::array_t<int> getPrimaryVarMeaning(
const std::string &
variable)
const;
68 std::map<std::string, int> getPrimaryVarMeaningMap(
const std::string &
variable)
const;
71 py::array_t<double, py::array::c_style | py::array::forcecast>
array);
72 void setPrimaryVariable(
75 py::array::c_style | py::array::forcecast>
array);
86 const std::string deck_filename_;
87 bool has_run_init_ =
false;
88 bool has_run_cleanup_ =
false;
89 bool mpi_init_ =
true;
90 bool mpi_finalize_ =
true;
95 std::unique_ptr<Opm::PyMain> main_;
97 std::unique_ptr<Opm::FlowMain<TypeTag>> flow_main_;
98 Simulator* simulator_;
99 std::unique_ptr<PyFluidState<TypeTag>> fluid_state_;
100 std::unique_ptr<PyMaterialState<TypeTag>> material_state_;
101 std::shared_ptr<Opm::Deck> deck_;
102 std::shared_ptr<Opm::EclipseState> eclipse_state_;
103 std::shared_ptr<Opm::Schedule> schedule_;
104 std::shared_ptr<Opm::SummaryConfig> summary_config_;
105 std::vector<std::string> args_;
Definition FlowMain.hpp:68
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
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