compr_quant.h
Go to the documentation of this file.
1 /*
2  Copyright 2010 SINTEF ICT, Applied Mathematics.
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM 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  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef OPM_COMPR_QUANT_HEADER_INCLUDED
21 #define OPM_COMPR_QUANT_HEADER_INCLUDED
22 
23 #include <stddef.h>
24 
25 #include <opm/core/grid.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
32  int nphases; /* Number of phases/components */
33 
34  double *totcompr; /* Total compressibility per cell */
35  double *voldiscr; /* Volume discrepancy per cell */
36  double *Ac; /* RB^{-1} per cell */
37  double *Af; /* RB^{-1} per face */
38  double *phasemobf; /* Phase mobility per face */
39 };
40 
41 void
43  const double *fflux,
44  const double *zeta,
45  double *Biv);
46 
47 void
48 compr_accum_term(size_t nc,
49  double dt,
50  const double *porevol,
51  const double *totcompr,
52  double *P);
53 
54 void
56  const double *p0,
57  const double *P,
58  double *src);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* OPM_COMPR_QUANT_HEADER_INCLUDED */
Definition: grid.h:98
Definition: compr_quant.h:31
void compr_src_add_press_accum(size_t nc, const double *p0, const double *P, double *src)
double * totcompr
Definition: compr_quant.h:34
double * Ac
Definition: compr_quant.h:36
double * Af
Definition: compr_quant.h:37
double * voldiscr
Definition: compr_quant.h:35
void compr_accum_term(size_t nc, double dt, const double *porevol, const double *totcompr, double *P)
void compr_flux_term(struct UnstructuredGrid *G, const double *fflux, const double *zeta, double *Biv)
int nphases
Definition: compr_quant.h:32
double * phasemobf
Definition: compr_quant.h:38