My Project
Loading...
Searching...
No Matches
transport_source.h
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
40extern "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
57struct TransportSource *
58create_transport_source(int nsrc, int nphase);
59
60void
61destroy_transport_source(struct TransportSource *src);
62
63int
64append_transport_source(int c,
65 int nphase,
66 double p,
67 double v,
68 const double *sat,
69 const double *z,
70 struct TransportSource *src);
71
72void
73clear_transport_source(struct TransportSource *src);
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* OPM_TRANSPORT_SOURCE_H_HEADER */
Definition transport_source.h:43