2010-09-10 12:14:00 -05:00
|
|
|
#ifndef WELL_H_INCLUDED
|
|
|
|
#define WELL_H_INCLUDED
|
|
|
|
|
2010-09-15 12:27:59 -05:00
|
|
|
enum well_type { INJECTOR, PRODUCER };
|
|
|
|
enum well_control { BHP , RATE };
|
2010-09-10 12:14:00 -05:00
|
|
|
|
|
|
|
typedef struct {
|
2010-09-15 12:27:59 -05:00
|
|
|
int number_of_wells;
|
|
|
|
int *well_connpos;
|
|
|
|
int *well_cells;
|
2010-09-10 12:14:00 -05:00
|
|
|
} well_t;
|
|
|
|
|
2010-09-15 12:27:59 -05:00
|
|
|
typedef struct {
|
|
|
|
enum well_type *type;
|
|
|
|
enum well_control *ctrl;
|
|
|
|
double *target;
|
|
|
|
} well_control_t;
|
2010-09-15 07:13:53 -05:00
|
|
|
|
|
|
|
int
|
|
|
|
allocate_cell_wells(int nc, well_t *W, int **cwpos, int **cwells);
|
|
|
|
|
|
|
|
void
|
|
|
|
deallocate_cell_wells(int *cvpos, int *cwells);
|
|
|
|
|
|
|
|
void
|
|
|
|
derive_cell_wells(int nc, well_t *W, int *cwpos, int *cwells);
|
|
|
|
|
2010-09-10 12:14:00 -05:00
|
|
|
#endif
|