2020-02-16 20:00:16 +01:00
|
|
|
#include <vector>
|
2017-08-31 13:49:09 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/EclipseConfig.hpp>
|
2017-08-31 13:49:09 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/InitConfig/InitConfig.hpp>
|
2017-08-31 13:49:09 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
|
|
|
|
|
#include <opm/parser/eclipse/EclipseState/SimulationConfig/SimulationConfig.hpp>
|
2019-10-09 16:25:08 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp>
|
|
|
|
|
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
|
|
|
|
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
|
|
|
|
|
|
2017-08-31 13:49:09 +02:00
|
|
|
|
2019-09-13 09:40:13 +02:00
|
|
|
#include "export.hpp"
|
2017-09-07 14:38:31 +02:00
|
|
|
|
|
|
|
|
|
2019-09-13 09:22:49 +02:00
|
|
|
void python::common::export_EclipseConfig(py::module& module)
|
2017-09-07 14:38:31 +02:00
|
|
|
{
|
2018-01-30 07:46:03 +01:00
|
|
|
py::class_< EclipseConfig >( module, "EclipseConfig" )
|
2020-02-16 20:00:16 +01:00
|
|
|
.def( "init", &EclipseConfig::init, ref_internal);
|
2017-09-07 14:38:31 +02:00
|
|
|
|
2018-01-30 07:46:03 +01:00
|
|
|
py::class_< SummaryConfig >( module, "SummaryConfig")
|
2019-10-09 16:25:08 +02:00
|
|
|
.def(py::init([](const Deck& deck, const EclipseState& state, const Schedule& schedule) {
|
|
|
|
|
return SummaryConfig( deck, schedule, state.getTableManager() );
|
|
|
|
|
} ) )
|
|
|
|
|
|
2018-01-30 07:46:03 +01:00
|
|
|
.def( "__contains__", &SummaryConfig::hasKeyword );
|
2017-09-07 14:38:31 +02:00
|
|
|
|
2018-01-30 07:46:03 +01:00
|
|
|
py::class_< InitConfig >( module, "InitConfig")
|
2017-09-07 14:38:31 +02:00
|
|
|
.def( "hasEquil", &InitConfig::hasEquil )
|
|
|
|
|
.def( "restartRequested", &InitConfig::restartRequested )
|
2018-01-30 07:46:03 +01:00
|
|
|
.def( "getRestartStep" , &InitConfig::getRestartStep );
|
2017-09-07 14:38:31 +02:00
|
|
|
|
2020-02-16 20:00:16 +01:00
|
|
|
py::class_< IOConfig >( module, "IOConfig");
|
2017-09-07 14:38:31 +02:00
|
|
|
|
2018-01-30 07:46:03 +01:00
|
|
|
py::class_< SimulationConfig >( module, "SimulationConfig")
|
2018-07-09 16:54:15 +02:00
|
|
|
.def("hasThresholdPressure", &SimulationConfig::useThresholdPressure )
|
2017-09-07 14:38:31 +02:00
|
|
|
.def("useCPR", &SimulationConfig::useCPR )
|
|
|
|
|
.def("hasDISGAS", &SimulationConfig::hasDISGAS )
|
2018-01-30 07:46:03 +01:00
|
|
|
.def("hasVAPOIL", &SimulationConfig::hasVAPOIL );
|
2017-08-31 13:49:09 +02:00
|
|
|
}
|
2020-02-16 20:00:16 +01:00
|
|
|
|