compr_quant.h
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
31
struct
compr_quantities
{
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
42
compr_flux_term(
struct
UnstructuredGrid *G,
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
55
compr_src_add_press_accum(
size_t
nc,
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 */
compr_quantities
Definition:
compr_quant.h:31
opm
core
pressure
tpfa
compr_quant.h
Generated on Sun Mar 25 2018 17:06:41 by
1.8.14