well_segment_collection.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2013 Equinor ASA, Norway.
3
4 The file 'well_segment_collection.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_SEGMENT_COLLECTION_H
21#define ERT_WELL_SEGMENT_COLLECTION_H
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include <stdbool.h>
29
30#include <ert/ecl/ecl_kw.hpp>
31
36
37 typedef struct well_segment_collection_struct well_segment_collection_type;
38
43 bool well_segment_collection_has_segment( const well_segment_collection_type * segment_collection , int segment_id);
44 well_segment_type * well_segment_collection_get( const well_segment_collection_type * segment_collection , int segment_id);
47 const ecl_kw_type * iwel_kw ,
48 const ecl_kw_type * iseg_kw ,
49 const well_rseg_loader_type * rseg_loader ,
50 const ecl_rsthead_type * rst_head,
51 bool load_segment_information , bool * is_MSW_well);
52
55 const char * grid_name ,
56 const well_conn_collection_type * connections);
58 well_branch_collection_type * branches );
59
60#ifdef __cplusplus
61}
62#endif
63#endif
int index
Definition: cJSON.h:168
struct ecl_kw_struct ecl_kw_type
Definition: ecl_kw.hpp:39
Definition: ecl_rsthead.hpp:33
struct well_branch_collection_struct well_branch_collection_type
Definition: well_branch_collection.hpp:34
struct well_conn_collection_struct well_conn_collection_type
Definition: well_conn_collection.hpp:34
struct well_rseg_loader_struct well_rseg_loader_type
Definition: well_rseg_loader.hpp:30
struct well_segment_struct well_segment_type
Definition: well_segment.hpp:40
int well_segment_collection_load_from_kw(well_segment_collection_type *segment_collection, int well_nr, const ecl_kw_type *iwel_kw, const ecl_kw_type *iseg_kw, const well_rseg_loader_type *rseg_loader, const ecl_rsthead_type *rst_head, bool load_segment_information, bool *is_MSW_well)
well_segment_collection_type * well_segment_collection_alloc(void)
int well_segment_collection_get_size(const well_segment_collection_type *segment_collection)
void well_segment_collection_add(well_segment_collection_type *segment_collection, well_segment_type *segment)
well_segment_type * well_segment_collection_get(const well_segment_collection_type *segment_collection, int segment_id)
struct well_segment_collection_struct well_segment_collection_type
Definition: well_segment_collection.hpp:37
void well_segment_collection_add_connections(well_segment_collection_type *segment_collection, const char *grid_name, const well_conn_collection_type *connections)
void well_segment_collection_free(well_segment_collection_type *segment_collection)
void well_segment_collection_add_branches(const well_segment_collection_type *segment_collection, well_branch_collection_type *branches)
well_segment_type * well_segment_collection_iget(const well_segment_collection_type *segment_collection, int index)
void well_segment_collection_link(const well_segment_collection_type *segment_collection)
bool well_segment_collection_has_segment(const well_segment_collection_type *segment_collection, int segment_id)