well_info.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'well_info.c' 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#ifndef ERT_WELL_INFO_H
20#define ERT_WELL_INFO_H
21
22
23
24#include <ert/ecl/ecl_file.hpp>
25#include <ert/ecl/ecl_grid.hpp>
26
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33 typedef struct well_info_struct well_info_type;
34
36 void well_info_add_UNRST_wells2( well_info_type * well_info , ecl_file_view_type * rst_view, bool load_segment_information);
37 void well_info_add_UNRST_wells( well_info_type * well_info , ecl_file_type * rst_file, bool load_segment_information);
38 void well_info_add_wells( well_info_type * well_info , ecl_file_type * rst_file , int report_nr , bool load_segment_information);
39 void well_info_add_wells2( well_info_type * well_info , ecl_file_view_type * rst_view , int report_nr, bool load_segment_information);
40 void well_info_load_rstfile( well_info_type * well_info , const char * filename, bool load_segment_information);
41 void well_info_load_rst_eclfile( well_info_type * well_info , ecl_file_type * rst_file , bool load_segment_information);
42 void well_info_free( well_info_type * well_info );
43
44 well_ts_type * well_info_get_ts( const well_info_type * well_info , const char *well_name);
45 int well_info_get_num_wells( const well_info_type * well_info );
46 const char * well_info_iget_well_name( const well_info_type * well_info, int well_index);
47 bool well_info_has_well( well_info_type * well_info , const char * well_name );
48
49 well_state_type * well_info_get_state_from_time( const well_info_type * well_info , const char * well_name , time_t sim_time);
50 well_state_type * well_info_get_state_from_report( const well_info_type * well_info , const char * well_name , int report_step );
51 well_state_type * well_info_iget_state( const well_info_type * well_info , const char * well_name , int time_index);
52 well_state_type * well_info_iiget_state( const well_info_type * well_info , int well_index , int time_index);
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif
ecl_grid_struct ecl_grid_type
Definition: ECLGraph.hpp:43
struct ecl_file_struct ecl_file_type
Definition: ECLResultData.hpp:39
struct ecl_file_view_struct ecl_file_view_type
Definition: ecl_file_view.hpp:50
well_state_type * well_info_iiget_state(const well_info_type *well_info, int well_index, int time_index)
int well_info_get_num_wells(const well_info_type *well_info)
void well_info_add_UNRST_wells2(well_info_type *well_info, ecl_file_view_type *rst_view, bool load_segment_information)
well_state_type * well_info_iget_state(const well_info_type *well_info, const char *well_name, int time_index)
void well_info_add_wells(well_info_type *well_info, ecl_file_type *rst_file, int report_nr, bool load_segment_information)
well_state_type * well_info_get_state_from_time(const well_info_type *well_info, const char *well_name, time_t sim_time)
void well_info_add_UNRST_wells(well_info_type *well_info, ecl_file_type *rst_file, bool load_segment_information)
struct well_info_struct well_info_type
Definition: well_info.hpp:33
well_state_type * well_info_get_state_from_report(const well_info_type *well_info, const char *well_name, int report_step)
bool well_info_has_well(well_info_type *well_info, const char *well_name)
well_ts_type * well_info_get_ts(const well_info_type *well_info, const char *well_name)
well_info_type * well_info_alloc(const ecl_grid_type *grid)
void well_info_free(well_info_type *well_info)
void well_info_load_rst_eclfile(well_info_type *well_info, ecl_file_type *rst_file, bool load_segment_information)
void well_info_add_wells2(well_info_type *well_info, ecl_file_view_type *rst_view, int report_nr, bool load_segment_information)
void well_info_load_rstfile(well_info_type *well_info, const char *filename, bool load_segment_information)
const char * well_info_iget_well_name(const well_info_type *well_info, int well_index)
struct well_state_struct well_state_type
Definition: well_state.hpp:41
struct well_ts_struct well_ts_type
Definition: well_ts.hpp:30