From de2b2551cc87e79303adf2fc250f5fd5560ed209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Fri, 10 Sep 2010 17:14:00 +0000 Subject: [PATCH] Add initial cut at well definition. --- well.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 well.h diff --git a/well.h b/well.h new file mode 100644 index 00000000..e319b506 --- /dev/null +++ b/well.h @@ -0,0 +1,31 @@ +#ifndef WELL_H_INCLUDED +#define WELL_H_INCLUDED + +enum well_type { INJECTOR, PRODUCER }; +enum well_control_type { BHP , RATE }; + +#define WELL_DESCRIPTOR \ + int number_of_wells; \ + \ + enum well_type *type; \ + \ + enum well_control_type *control_type; \ + double *target; + +#define WELL_TOPOLOGY \ + int *well_connpos; \ + int *well_cells; + +#define WELL_CONNECTION_DATA \ + double *WI; \ + double *depth; + +/* ---------------------------------------------------------------------- */ + +typedef struct { + WELL_DESCRIPTOR + WELL_TOPOLOGY + WELL_CONNECTION_DATA +} well_t; + +#endif