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:
parent
51111176db
commit
9a9b47a49a
11
src/well.h
11
src/well.h
@ -28,17 +28,17 @@ extern "C" {
|
||||
enum well_type { INJECTOR, PRODUCER };
|
||||
enum well_control { BHP , RATE };
|
||||
|
||||
typedef struct {
|
||||
struct WellCompletions {
|
||||
int number_of_wells;
|
||||
int *well_connpos;
|
||||
int *well_cells;
|
||||
} well_t;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
struct WellControls {
|
||||
enum well_type *type;
|
||||
enum well_control *ctrl;
|
||||
double *target;
|
||||
} well_control_t;
|
||||
};
|
||||
|
||||
struct completion_data {
|
||||
double *WI; /* Productivity index */
|
||||
@ -47,6 +47,9 @@ struct completion_data {
|
||||
double *phasemob; /* Phase mobility */
|
||||
};
|
||||
|
||||
typedef struct WellCompletions well_t;
|
||||
typedef struct WellControls well_control_t;
|
||||
|
||||
int
|
||||
allocate_cell_wells(int nc, well_t *W, int **cwpos, int **cwells);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user