opm-simulators
Loading...
Searching...
No Matches
Opm::Pybind::PyGasWaterSimulator Class Reference
Inheritance diagram for Opm::Pybind::PyGasWaterSimulator:
Opm::Pybind::PyBaseSimulator< Properties::TTag::FlowGasWaterProblem >

Public Member Functions

 PyGasWaterSimulator (const std::string &deck_filename, const std::vector< std::string > &args)
 
 PyGasWaterSimulator (std::shared_ptr< Deck > deck, std::shared_ptr< EclipseState > state, std::shared_ptr< Schedule > schedule, std::shared_ptr< SummaryConfig > summary_config, const std::vector< std::string > &args)
 
- Public Member Functions inherited from Opm::Pybind::PyBaseSimulator< Properties::TTag::FlowGasWaterProblem >
 PyBaseSimulator (const std::string &deckFilename, const std::vector< std::string > &args)
 
 PyBaseSimulator (std::shared_ptr< Deck > deck, std::shared_ptr< EclipseState > state, std::shared_ptr< Schedule > schedule, std::shared_ptr< SummaryConfig > summary_config, const std::vector< std::string > &args)
 
void advance (int report_step)
 
bool checkSimulationFinished ()
 
int currentStep ()
 
py::array_t< double > getFluidStateVariable (const std::string &name) const
 
py::array_t< double > getCellVolumes ()
 
double getDT ()
 
py::array_t< double > getPorosity ()
 
py::array_t< double > getPrimaryVariable (const std::string &variable) const
 
py::array_t< int > getPrimaryVarMeaning (const std::string &variable) const
 
std::map< std::string, int > getPrimaryVarMeaningMap (const std::string &variable) const
 
int run ()
 
void setPorosity (PyCArray array)
 
void setPrimaryVariable (const std::string &idx_name, PyCArray array)
 
void setupMpi (bool init_mpi, bool finalize_mpi)
 
int step ()
 
int stepCleanup ()
 
int stepInit ()
 

Additional Inherited Members

- Public Types inherited from Opm::Pybind::PyBaseSimulator< Properties::TTag::FlowGasWaterProblem >
using PyCArray = py::array_t< double, py::array::c_style|py::array::forcecast >
 
- Protected Member Functions inherited from Opm::Pybind::PyBaseSimulator< Properties::TTag::FlowGasWaterProblem >
FlowMain< Properties::TTag::FlowGasWaterProblem > & getFlowMain () const
 
PyFluidState< Properties::TTag::FlowGasWaterProblem > & getFluidState () const
 
PyMaterialState< Properties::TTag::FlowGasWaterProblem > & getMaterialState () const
 
- Protected Attributes inherited from Opm::Pybind::PyBaseSimulator< Properties::TTag::FlowGasWaterProblem >
const std::string deck_filename_
 
bool has_run_init_
 
bool has_run_cleanup_
 
bool mpi_init_
 
bool mpi_finalize_
 
std::unique_ptr< PyMain< Properties::TTag::FlowGasWaterProblem > > main_
 
std::unique_ptr< FlowMain< Properties::TTag::FlowGasWaterProblem > > flow_main_
 
Simulator * simulator_
 
std::unique_ptr< PyFluidState< Properties::TTag::FlowGasWaterProblem > > fluid_state_
 
std::unique_ptr< PyMaterialState< Properties::TTag::FlowGasWaterProblem > > material_state_
 
std::shared_ptr< Deck > deck_
 
std::shared_ptr< EclipseState > eclipse_state_
 
std::shared_ptr< Schedule > schedule_
 
std::shared_ptr< SummaryConfig > summary_config_
 
std::vector< std::string > args_
 

The documentation for this class was generated from the following file: