well_conn.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'well_conn.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19
20#ifndef ERT_WELL_CONN_H
21#define ERT_WELL_CONN_H
22
23
24
25#include <stdbool.h>
26
28
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35 typedef enum {
42
43
44 typedef struct well_conn_struct well_conn_type;
45
46
48 void well_conn_free__( void * arg );
49
50 well_conn_type * well_conn_alloc( int i , int j , int k , double connection_factor , well_conn_dir_enum dir, bool open);
51 well_conn_type * well_conn_alloc_MSW( int i , int j , int k , double connection_factor , well_conn_dir_enum dir, bool open, int segment);
52 well_conn_type * well_conn_alloc_fracture( int i , int j , int k , double connection_factor , well_conn_dir_enum dir, bool open);
53 well_conn_type * well_conn_alloc_fracture_MSW( int i , int j , int k , double connection_factor , well_conn_dir_enum dir, bool open, int segment);
54
55 bool well_conn_MSW(const well_conn_type * conn);
56
57 well_conn_type * well_conn_alloc_from_kw( const ecl_kw_type * icon_kw , const ecl_kw_type * scon_kw , const ecl_kw_type* xcon_kw, const ecl_rsthead_type * header , int well_nr , int conn_nr);
58 well_conn_type * well_conn_alloc_wellhead( const ecl_kw_type * iwel_kw , const ecl_rsthead_type * header , int well_nr);
59
64 bool well_conn_open( const well_conn_type * conn );
68 bool well_conn_equal( const well_conn_type *conn1 , const well_conn_type * conn2);
70
75
80
81
84
85
86#ifdef __cplusplus
87}
88#endif
89#endif
struct ecl_kw_struct ecl_kw_type
Definition: ecl_kw.hpp:39
Definition: ecl_rsthead.hpp:33
int well_conn_get_k(const well_conn_type *conn)
well_conn_dir_enum
Definition: well_conn.hpp:35
@ well_conn_dirY
Definition: well_conn.hpp:37
@ well_conn_dirZ
Definition: well_conn.hpp:38
@ well_conn_dirX
Definition: well_conn.hpp:36
@ well_conn_fracY
Definition: well_conn.hpp:40
@ well_conn_fracX
Definition: well_conn.hpp:39
double well_conn_get_gas_rate(const well_conn_type *conn)
well_conn_type * well_conn_alloc_MSW(int i, int j, int k, double connection_factor, well_conn_dir_enum dir, bool open, int segment)
well_conn_type * well_conn_alloc(int i, int j, int k, double connection_factor, well_conn_dir_enum dir, bool open)
double well_conn_get_water_rate(const well_conn_type *conn)
int well_conn_get_i(const well_conn_type *conn)
well_conn_dir_enum well_conn_get_dir(const well_conn_type *conn)
double well_conn_get_volume_rate(const well_conn_type *conn)
struct well_conn_struct well_conn_type
Definition: well_conn.hpp:44
bool well_conn_MSW(const well_conn_type *conn)
void well_conn_free__(void *arg)
bool well_conn_open(const well_conn_type *conn)
double well_conn_get_water_rate_si(const well_conn_type *conn)
bool well_conn_equal(const well_conn_type *conn1, const well_conn_type *conn2)
double well_conn_get_gas_rate_si(const well_conn_type *conn)
double well_conn_get_connection_factor(const well_conn_type *conn)
well_conn_type * well_conn_alloc_wellhead(const ecl_kw_type *iwel_kw, const ecl_rsthead_type *header, int well_nr)
void well_conn_free(well_conn_type *conn)
UTIL_IS_INSTANCE_HEADER(well_conn)
double well_conn_get_oil_rate(const well_conn_type *conn)
bool well_conn_matrix_connection(const well_conn_type *conn)
bool well_conn_fracture_connection(const well_conn_type *conn)
UTIL_SAFE_CAST_HEADER(well_conn)
double well_conn_get_volume_rate_si(const well_conn_type *conn)
int well_conn_get_segment_id(const well_conn_type *conn)
well_conn_type * well_conn_alloc_fracture_MSW(int i, int j, int k, double connection_factor, well_conn_dir_enum dir, bool open, int segment)
double well_conn_get_oil_rate_si(const well_conn_type *conn)
int well_conn_get_j(const well_conn_type *conn)
well_conn_type * well_conn_alloc_fracture(int i, int j, int k, double connection_factor, well_conn_dir_enum dir, bool open)
well_conn_type * well_conn_alloc_from_kw(const ecl_kw_type *icon_kw, const ecl_kw_type *scon_kw, const ecl_kw_type *xcon_kw, const ecl_rsthead_type *header, int well_nr, int conn_nr)