2017-08-31 13:49:09 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Schedule/Group.hpp>
|
2018-01-30 07:46:03 +01:00
|
|
|
#include <pybind11/stl.h>
|
2017-09-07 14:38:31 +02:00
|
|
|
#include "sunbeam.hpp"
|
2017-08-31 13:49:09 +02:00
|
|
|
|
|
|
|
|
|
2017-09-07 14:38:31 +02:00
|
|
|
namespace {
|
2017-08-31 13:49:09 +02:00
|
|
|
|
2018-01-30 07:46:03 +01:00
|
|
|
const std::set<std::string> wellnames( const Group& g, size_t timestep ) {
|
|
|
|
|
return g.getWells( timestep );
|
2017-08-31 13:49:09 +02:00
|
|
|
}
|
2017-12-04 15:14:31 +01:00
|
|
|
|
|
|
|
|
int get_vfp_table_nr( const Group& g, size_t timestep ) {
|
|
|
|
|
return g.getGroupNetVFPTable(timestep);
|
|
|
|
|
}
|
2017-09-07 14:38:31 +02:00
|
|
|
}
|
2017-08-31 13:49:09 +02:00
|
|
|
|
2018-01-30 07:46:03 +01:00
|
|
|
void sunbeam::export_Group(py::module& module) {
|
2017-08-31 13:49:09 +02:00
|
|
|
|
2018-01-30 07:46:03 +01:00
|
|
|
py::class_< Group >( module, "Group")
|
|
|
|
|
.def_property_readonly( "name", &Group::name)
|
2017-12-04 15:14:31 +01:00
|
|
|
.def( "_vfp_table_nr", &get_vfp_table_nr )
|
2018-01-30 07:46:03 +01:00
|
|
|
.def( "_wellnames", &wellnames );
|
2017-08-31 13:49:09 +02:00
|
|
|
|
|
|
|
|
}
|