transport_source.h
Go to the documentation of this file.
1 /*===========================================================================
2 //
3 // File: transport_source.h
4 //
5 // Created: 2011-10-05 19:58:53+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_TRANSPORT_SOURCE_H_HEADER
37 #define OPM_TRANSPORT_SOURCE_H_HEADER
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
44  int nsrc;
45  int cpty;
46 
47  int nphase;
48 
49  int *cell;
50  double *pressure;
51  double *flux;
52  double *saturation;
53  double *surfvolume;
54 };
55 
56 
57 struct TransportSource *
59 
60 void
62 
63 int
65  int nphase,
66  double p,
67  double v,
68  const double *sat,
69  const double *z,
70  struct TransportSource *src);
71 
72 void
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* OPM_TRANSPORT_SOURCE_H_HEADER */
void clear_transport_source(struct TransportSource *src)
double * surfvolume
Definition: transport_source.h:53
void destroy_transport_source(struct TransportSource *src)
int cpty
Definition: transport_source.h:45
Definition: transport_source.h:43
double * saturation
Definition: transport_source.h:52
int nphase
Definition: transport_source.h:47
int nsrc
Definition: transport_source.h:44
double * pressure
Definition: transport_source.h:50
int append_transport_source(int c, int nphase, double p, double v, const double *sat, const double *z, struct TransportSource *src)
struct TransportSource * create_transport_source(int nsrc, int nphase)
int * cell
Definition: transport_source.h:49
double * flux
Definition: transport_source.h:51