ecl_rft_cell.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'ecl_rft_cell.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#ifndef ERT_ECL_RFT_CELL_H
20#define ERT_ECL_RFT_CELL_H
21#ifdef __cplusplus
22extern "C" {
23#endif
24
26
27#define ECL_RFT_CELL_INVALID_VALUE -1
28
29typedef struct ecl_rft_cell_struct ecl_rft_cell_type;
30
31
32
33
35
37 int j ,
38 int k ,
39 double depth ,
40 double pressure ,
41 double orat ,
42 double grat ,
43 double wrat ,
44 double connection_start,
45 double connection_end,
46 double flowrate,
47 double oil_flowrate,
48 double gas_flowrate,
49 double water_flowrate);
50
51 ecl_rft_cell_type * ecl_rft_cell_alloc_RFT( int i , int j , int k , double depth , double pressure , double swat , double sgas);
53 void ecl_rft_cell_free__( void * arg);
54
55 bool ecl_rft_cell_ijk_equal( const ecl_rft_cell_type * cell , int i , int j , int k);
56 void ecl_rft_cell_get_ijk( const ecl_rft_cell_type * cell , int * i , int * j , int * k);
62
66
76
77 int ecl_rft_cell_cmp__( const void * arg1 , const void * arg2);
78 int ecl_rft_cell_cmp( const ecl_rft_cell_type * cell1 , const ecl_rft_cell_type * cell2);
79 bool ecl_rft_cell_lt( const ecl_rft_cell_type * cell1 , const ecl_rft_cell_type * cell2);
80#ifdef __cplusplus
81}
82#endif
83
84#endif
85
double ecl_rft_cell_get_gas_flowrate(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_soil(const ecl_rft_cell_type *cell)
void ecl_rft_cell_free__(void *arg)
void ecl_rft_cell_free(ecl_rft_cell_type *cell)
double ecl_rft_cell_get_pressure(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_depth(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_sgas(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_water_flowrate(const ecl_rft_cell_type *cell)
int ecl_rft_cell_get_j(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_flowrate(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_orat(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_connection_end(const ecl_rft_cell_type *cell)
bool ecl_rft_cell_lt(const ecl_rft_cell_type *cell1, const ecl_rft_cell_type *cell2)
UTIL_IS_INSTANCE_HEADER(ecl_rft_cell)
struct ecl_rft_cell_struct ecl_rft_cell_type
Definition: ecl_rft_cell.hpp:29
double ecl_rft_cell_get_oil_flowrate(const ecl_rft_cell_type *cell)
void ecl_rft_cell_get_ijk(const ecl_rft_cell_type *cell, int *i, int *j, int *k)
int ecl_rft_cell_cmp(const ecl_rft_cell_type *cell1, const ecl_rft_cell_type *cell2)
ecl_rft_cell_type * ecl_rft_cell_alloc_RFT(int i, int j, int k, double depth, double pressure, double swat, double sgas)
bool ecl_rft_cell_ijk_equal(const ecl_rft_cell_type *cell, int i, int j, int k)
int ecl_rft_cell_get_k(const ecl_rft_cell_type *cell)
int ecl_rft_cell_cmp__(const void *arg1, const void *arg2)
double ecl_rft_cell_get_connection_start(const ecl_rft_cell_type *cell)
int ecl_rft_cell_get_i(const ecl_rft_cell_type *cell)
ecl_rft_cell_type * ecl_rft_cell_alloc_PLT(int i, int j, int k, double depth, double pressure, double orat, double grat, double wrat, double connection_start, double connection_end, double flowrate, double oil_flowrate, double gas_flowrate, double water_flowrate)
double ecl_rft_cell_get_wrat(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_grat(const ecl_rft_cell_type *cell)
double ecl_rft_cell_get_swat(const ecl_rft_cell_type *cell)