compr_bc.h
Go to the documentation of this file.
1 /*===========================================================================
2 //
3 // File: compr_bc.h
4 //
5 // Created: 2011-10-24 15:58:16+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_BC_H_HEADER
37 #define OPM_COMPR_BC_H_HEADER
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
44 
45 struct compr_bc {
46  int nbc;
47  int cpty;
48 
49  int nphases;
50 
52  int *face;
53 
54  double *press;
55  double *flux;
56  double *saturation;
57 };
58 
59 
60 struct compr_bc *
61 compr_bc_allocate(int np, int nbc);
62 
63 void
64 compr_bc_deallocate(struct compr_bc *bc);
65 
66 int
68  int f ,
69  int np ,
70  double p ,
71  double v ,
72  const double *sat ,
73  struct compr_bc *bc );
74 
75 void
76 compr_bc_clear(struct compr_bc *bc);
77 
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* OPM_COMPR_BC_H_HEADER */
double * press
Definition: compr_bc.h:54
Definition: compr_bc.h:43
void compr_bc_clear(struct compr_bc *bc)
int nbc
Definition: compr_bc.h:46
int * face
Definition: compr_bc.h:52
void compr_bc_deallocate(struct compr_bc *bc)
int cpty
Definition: compr_bc.h:47
int nphases
Definition: compr_bc.h:49
compr_bc_type
Definition: compr_bc.h:43
struct compr_bc * compr_bc_allocate(int np, int nbc)
Definition: compr_bc.h:45
int compr_bc_append(enum compr_bc_type type, int f, int np, double p, double v, const double *sat, struct compr_bc *bc)
double * saturation
Definition: compr_bc.h:56
Definition: compr_bc.h:43
enum compr_bc_type * type
Definition: compr_bc.h:51
double * flux
Definition: compr_bc.h:55