mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Name the well_t and well_control_t structures.
This commit is contained in:
11
src/well.h
11
src/well.h
@@ -28,17 +28,17 @@ extern "C" {
|
|||||||
enum well_type { INJECTOR, PRODUCER };
|
enum well_type { INJECTOR, PRODUCER };
|
||||||
enum well_control { BHP , RATE };
|
enum well_control { BHP , RATE };
|
||||||
|
|
||||||
typedef struct {
|
struct WellCompletions {
|
||||||
int number_of_wells;
|
int number_of_wells;
|
||||||
int *well_connpos;
|
int *well_connpos;
|
||||||
int *well_cells;
|
int *well_cells;
|
||||||
} well_t;
|
};
|
||||||
|
|
||||||
typedef struct {
|
struct WellControls {
|
||||||
enum well_type *type;
|
enum well_type *type;
|
||||||
enum well_control *ctrl;
|
enum well_control *ctrl;
|
||||||
double *target;
|
double *target;
|
||||||
} well_control_t;
|
};
|
||||||
|
|
||||||
struct completion_data {
|
struct completion_data {
|
||||||
double *WI; /* Productivity index */
|
double *WI; /* Productivity index */
|
||||||
@@ -47,6 +47,9 @@ struct completion_data {
|
|||||||
double *phasemob; /* Phase mobility */
|
double *phasemob; /* Phase mobility */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef struct WellCompletions well_t;
|
||||||
|
typedef struct WellControls well_control_t;
|
||||||
|
|
||||||
int
|
int
|
||||||
allocate_cell_wells(int nc, well_t *W, int **cwpos, int **cwells);
|
allocate_cell_wells(int nc, well_t *W, int **cwpos, int **cwells);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user