#include <stdbool.h> 
 
Go to the source code of this file. 
 |  
| bool  | well_controls_equal (const struct WellControls *ctrls1, const struct WellControls *ctrls2, bool verbose) |  
|   |  
| struct WellControls *  | well_controls_create (void) |  
|   |  
| struct WellControls *  | well_controls_clone (const struct WellControls *ctrl) |  
|   |  
| void  | well_controls_destroy (struct WellControls *ctrl) |  
|   |  
| int  | well_controls_get_num (const struct WellControls *ctrl) |  
|   |  
| int  | well_controls_get_current (const struct WellControls *ctrl) |  
|   |  
| void  | well_controls_set_current (struct WellControls *ctrl, int current) |  
|   |  
| bool  | well_controls_well_is_stopped (const struct WellControls *ctrl) |  
|   |  
| bool  | well_controls_well_is_open (const struct WellControls *ctrl) |  
|   |  
| void  | well_controls_open_well (struct WellControls *ctrl) |  
|   |  
| void  | well_controls_stop_well (struct WellControls *ctrl) |  
|   |  
| int  | well_controls_add_new (enum WellControlType type, double target, double alq, int vfp, const double *distr, struct WellControls *ctrl) |  
|   |  
| enum WellControlType  | well_controls_iget_type (const struct WellControls *ctrl, int control_index) |  
|   |  
| enum WellControlType  | well_controls_get_current_type (const struct WellControls *ctrl) |  
|   |  
| void  | well_controls_iset_type (struct WellControls *ctrls, int control_index, enum WellControlType type) |  
|   |  
| void  | well_controls_iset_target (struct WellControls *ctrl, int control_index, double target) |  
|   |  
| double  | well_controls_iget_target (const struct WellControls *ctrl, int control_index) |  
|   |  
| void  | well_controls_iset_alq (struct WellControls *ctrl, int control_index, double alq) |  
|   |  
| double  | well_controls_iget_alq (const struct WellControls *ctrl, int control_index) |  
|   |  
| void  | well_controls_iset_vfp (struct WellControls *ctrl, int control_index, int vfp) |  
|   |  
| int  | well_controls_iget_vfp (const struct WellControls *ctrl, int control_index) |  
|   |  
| double  | well_controls_get_current_target (const struct WellControls *ctrl) |  
|   |  
| const double *  | well_controls_iget_distr (const struct WellControls *ctrl, int control_index) |  
|   |  
| void  | well_controls_iset_distr (const struct WellControls *ctrl, int control_index, const double *distr) |  
|   |  
| const double *  | well_controls_get_current_distr (const struct WellControls *ctrl) |  
|   |  
| void  | well_controls_assert_number_of_phases (struct WellControls *ctrl, int number_of_phases) |  
|   |  
| void  | well_controls_clear (struct WellControls *ctrl) |  
|   |  
 
API for managing sets of well controls.  
 
◆ WellControlType
| Enumerator | 
|---|
 | BHP  | Well constrained by BHP target  
 |  
| THP  | Well constrained by THP target  
 |  
| RESERVOIR_RATE  | Well constrained by reservoir volume flow rate  
 |  
| SURFACE_RATE  | Well constrained by surface volume flow rate  
 |  
 
 
 
◆ well_controls_add_new()
      
        
          | int well_controls_add_new  | 
          ( | 
          enum WellControlType  | 
          type,  | 
         
        
           | 
           | 
          double  | 
          target,  | 
         
        
           | 
           | 
          double  | 
          alq,  | 
         
        
           | 
           | 
          int  | 
          vfp,  | 
         
        
           | 
           | 
          const double *  | 
          distr,  | 
         
        
           | 
           | 
          struct WellControls *  | 
          ctrl  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_assert_number_of_phases()
      
        
          | void well_controls_assert_number_of_phases  | 
          ( | 
          struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          number_of_phases  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_clear()
      
        
          | void well_controls_clear  | 
          ( | 
          struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
 
◆ well_controls_clone()
      
        
          | struct WellControls * well_controls_clone  | 
          ( | 
          const struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
Create deep copy (clone) of an existing set of well controls. 
- Parameters
 - 
  
    | [in] | ctrl | Existing set of well controls. |  
   
   
 
- Returns
 - Deep copy of 
ctrl.   
 
 
◆ well_controls_create()
      
        
          | struct WellControls * well_controls_create  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
 
 
 
◆ well_controls_destroy()
      
        
          | void well_controls_destroy  | 
          ( | 
          struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
 
◆ well_controls_equal()
      
        
          | bool well_controls_equal  | 
          ( | 
          const struct WellControls *  | 
          ctrls1,  | 
         
        
           | 
           | 
          const struct WellControls *  | 
          ctrls2,  | 
         
        
           | 
           | 
          bool  | 
          verbose  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_get_current()
      
        
          | int well_controls_get_current  | 
          ( | 
          const struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
 
◆ well_controls_get_current_distr()
      
        
          | const double * well_controls_get_current_distr  | 
          ( | 
          const struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
◆ well_controls_get_current_target()
      
        
          | double well_controls_get_current_target  | 
          ( | 
          const struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
◆ well_controls_get_current_type()
      
        
          | enum WellControlType well_controls_get_current_type  | 
          ( | 
          const struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
◆ well_controls_get_num()
      
        
          | int well_controls_get_num  | 
          ( | 
          const struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
◆ well_controls_iget_alq()
      
        
          | double well_controls_iget_alq  | 
          ( | 
          const struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_iget_distr()
      
        
          | const double * well_controls_iget_distr  | 
          ( | 
          const struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_iget_target()
      
        
          | double well_controls_iget_target  | 
          ( | 
          const struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
◆ well_controls_iget_type()
      
        
          | enum WellControlType well_controls_iget_type  | 
          ( | 
          const struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
◆ well_controls_iget_vfp()
      
        
          | int well_controls_iget_vfp  | 
          ( | 
          const struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_iset_alq()
      
        
          | void well_controls_iset_alq  | 
          ( | 
          struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index,  | 
         
        
           | 
           | 
          double  | 
          alq  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_iset_distr()
      
        
          | void well_controls_iset_distr  | 
          ( | 
          const struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index,  | 
         
        
           | 
           | 
          const double *  | 
          distr  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_iset_target()
      
        
          | void well_controls_iset_target  | 
          ( | 
          struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index,  | 
         
        
           | 
           | 
          double  | 
          target  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_iset_type()
      
        
          | void well_controls_iset_type  | 
          ( | 
          struct WellControls *  | 
          ctrls,  | 
         
        
           | 
           | 
          int  | 
          control_index,  | 
         
        
           | 
           | 
          enum WellControlType  | 
          type  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_iset_vfp()
      
        
          | void well_controls_iset_vfp  | 
          ( | 
          struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          control_index,  | 
         
        
           | 
           | 
          int  | 
          vfp  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_open_well()
      
        
          | void well_controls_open_well  | 
          ( | 
          struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
 
◆ well_controls_set_current()
      
        
          | void well_controls_set_current  | 
          ( | 
          struct WellControls *  | 
          ctrl,  | 
         
        
           | 
           | 
          int  | 
          current  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
 
 
◆ well_controls_stop_well()
      
        
          | void well_controls_stop_well  | 
          ( | 
          struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
 
◆ well_controls_well_is_open()
      
        
          | bool well_controls_well_is_open  | 
          ( | 
          const struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
 
◆ well_controls_well_is_stopped()
      
        
          | bool well_controls_well_is_stopped  | 
          ( | 
          const struct WellControls *  | 
          ctrl | ) | 
           | 
         
       
 
 
 
  
 
    
     |