compr_source.h
Go to the documentation of this file.
1 /*===========================================================================
2 //
3 // File: compr_source.h
4 //
5 // Created: 2011-10-19 19:14:30+0200
6 //
7 // Authors: Ingeborg S. Ligaarden <Ingeborg.Ligaarden@sintef.no>
8 // Jostein R. Natvig <Jostein.R.Natvig@sintef.no>
9 // Halvor M. Nilsen <HalvorMoll.Nilsen@sintef.no>
10 // Atgeirr F. Rasmussen <atgeirr@sintef.no>
11 // Bård Skaflestad <Bard.Skaflestad@sintef.no>
12 //
13 //==========================================================================*/
14 
15 
16 /*
17  Copyright 2011 SINTEF ICT, Applied Mathematics.
18  Copyright 2011 Statoil ASA.
19 
20  This file is part of the Open Porous Media Project (OPM).
21 
22  OPM is free software: you can redistribute it and/or modify
23  it under the terms of the GNU General Public License as published by
24  the Free Software Foundation, either version 3 of the License, or
25  (at your option) any later version.
26 
27  OPM is distributed in the hope that it will be useful,
28  but WITHOUT ANY WARRANTY; without even the implied warranty of
29  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  GNU General Public License for more details.
31 
32  You should have received a copy of the GNU General Public License
33  along with OPM. If not, see <http://www.gnu.org/licenses/>.
34 */
35 
36 #ifndef OPM_COMPR_SOURCE_H_HEADER
37 #define OPM_COMPR_SOURCE_H_HEADER
38 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
52 struct compr_src {
56  int nsrc;
57 
62  int cpty;
63 
67  int nphases;
68 
73  int *cell;
74 
82  double *flux;
83 
90  double *saturation;
91 };
92 
93 
107 struct compr_src *
108 compr_src_allocate(int np, int nsrc);
109 
110 
120 void
121 compr_src_deallocate(struct compr_src *src);
122 
123 
145 int
147  int np ,
148  double v ,
149  const double *sat,
150  struct compr_src *src);
151 
152 
161 void
163 
164 
165 #ifdef __cplusplus
166 }
167 #endif
168 
169 #endif /* OPM_COMPR_SOURCE_H_HEADER */
Definition: compr_source.h:52
double * saturation
Definition: compr_source.h:90
int cpty
Definition: compr_source.h:62
int append_compr_source_term(int c, int np, double v, const double *sat, struct compr_src *src)
int nsrc
Definition: compr_source.h:56
double * flux
Definition: compr_source.h:82
struct compr_src * compr_src_allocate(int np, int nsrc)
int * cell
Definition: compr_source.h:73
void clear_compr_source_term(struct compr_src *src)
int nphases
Definition: compr_source.h:67
void compr_src_deallocate(struct compr_src *src)