20 #ifndef OPM_WELL_CONTROLS_H_INCLUDED
21 #define OPM_WELL_CONTROLS_H_INCLUDED
47 well_controls_create(
void);
67 well_controls_get_current(
const struct WellControls * ctrl);
74 well_controls_well_is_stopped(
const struct WellControls * ctrl);
77 well_controls_well_is_open(
const struct WellControls * ctrl);
89 well_controls_iget_type(
const struct WellControls * ctrl,
int control_index);
92 well_controls_get_current_type(
const struct WellControls * ctrl);
98 well_controls_iset_target(
struct WellControls * ctrl,
int control_index ,
double target);
101 well_controls_iget_target(
const struct WellControls * ctrl,
int control_index);
104 well_controls_iset_alq(
struct WellControls * ctrl,
int control_index ,
double alq);
107 well_controls_iget_alq(
const struct WellControls * ctrl,
int control_index );
110 well_controls_iset_vfp(
struct WellControls * ctrl,
int control_index ,
int vfp);
113 well_controls_iget_vfp(
const struct WellControls * ctrl,
int control_index );
116 well_controls_get_current_target(
const struct WellControls * ctrl);
119 well_controls_iget_distr(
const struct WellControls * ctrl,
int control_index);
122 well_controls_iset_distr(
const struct WellControls * ctrl,
int control_index,
const double *
distr);
125 well_controls_get_current_distr(
const struct WellControls * ctrl);
128 well_controls_assert_number_of_phases(
struct WellControls * ctrl ,
int number_of_phases);
Well constrained by BHP target.
Definition: well_controls.h:35
double * alq
Array of artificial lift quantities.
Definition: well_controls.c:94
int * vfp
Array of VFP table numbers.
Definition: well_controls.c:99
struct WellControls * well_controls_clone(const struct WellControls *ctrl)
Create deep copy (clone) of an existing set of well controls.
Controls for a single well.
Definition: well_controls.c:72
Well constrained by THP target.
Definition: well_controls.h:36
double * target
Array of control targets.
Definition: well_controls.c:89
double * distr
Array of rate control distributions, number_of_phases numbers for each control.
Definition: well_controls.c:105
enum WellControlType * type
Array of control types.
Definition: well_controls.c:84
WellControlType
Definition: well_controls.h:34
Well constrained by reservoir volume flow rate.
Definition: well_controls.h:37
int current
Index of current active control.
Definition: well_controls.c:110
Well constrained by surface volume flow rate.
Definition: well_controls.h:38