GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
N_gwflow.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* MODULE: Grass PDE Numerical Library
5
* AUTHOR(S): Soeren Gebbert, Berlin (GER) Dec 2006
6
* soerengebbert <at> gmx <dot> de
7
*
8
* PURPOSE: groundwater flow in porous media
9
* part of the gpde library
10
*
11
* COPYRIGHT: (C) 2000 by the GRASS Development Team
12
*
13
* This program is free software under the GNU General Public
14
* License (>=v2). Read the file COPYING that comes with GRASS
15
* for details.
16
*
17
*****************************************************************************/
18
19
#ifndef _N_GWFLOW_H_
20
#define _N_GWFLOW_H_
21
#include "
N_pde.h
"
22
23
#define N_GW_CONFINED 0
/*confined groundwater */
24
#define N_GW_UNCONFINED 1
/*unconfined groundwater */
25
26
#define N_GW_DRY_CELL 0
/*a dry cell */
27
#define N_GW_SURFACE_CELL 1
/*a surface cell */
28
#define N_GW_NORMAL_CELL 2
/*a normal wet cell */
29
34
typedef
struct
35
{
36
N_array_3d
*
phead
;
37
N_array_3d
*
phead_start
;
38
N_array_3d
*
hc_x
;
39
N_array_3d
*
hc_y
;
40
N_array_3d
*
hc_z
;
41
N_array_3d
*
q
;
42
N_array_2d
*
r
;
43
N_array_3d
*
s
;
44
N_array_3d
*
nf
;
46
/*river */
47
N_array_3d
*
river_leak
;
48
N_array_3d
*
river_head
;
49
N_array_3d
*
river_bed
;
51
/*drainage */
52
N_array_3d
*
drain_leak
;
53
N_array_3d
*
drain_bed
;
55
N_array_3d
*
status
;
56
N_array_3d
*
drycells
;
58
double
dt
;
60
}
N_gwflow_data3d
;
61
66
typedef
struct
67
{
68
N_array_2d
*
phead
;
69
N_array_2d
*
phead_start
;
70
N_array_2d
*
hc_x
;
71
N_array_2d
*
hc_y
;
72
N_array_2d
*
q
;
73
N_array_2d
*
r
;
74
N_array_2d
*
s
;
75
N_array_2d
*
nf
;
77
/*river */
78
N_array_2d
*
river_leak
;
79
N_array_2d
*
river_head
;
80
N_array_2d
*
river_bed
;
82
/*drainage */
83
N_array_2d
*
drain_leak
;
84
N_array_2d
*
drain_bed
;
87
N_array_2d
*
top
;
88
N_array_2d
*
bottom
;
90
N_array_2d
*
status
;
91
N_array_2d
*
drycells
;
93
double
dt
;
94
int
gwtype
;
96
}
N_gwflow_data2d
;
97
98
extern
N_data_star
*
N_callback_gwflow_3d
(
void
*gwdata,
N_geom_data
* geom,
99
int
col,
int
row,
int
depth);
100
extern
N_data_star
*
N_callback_gwflow_2d
(
void
*gwdata,
N_geom_data
* geom,
101
int
col,
int
row);
102
extern
N_gwflow_data3d
*
N_alloc_gwflow_data3d
(
int
cols
,
int
rows,
int
depths,
103
int
river,
int
drain);
104
extern
N_gwflow_data2d
*
N_alloc_gwflow_data2d
(
int
cols
,
int
rows,
int
river,
105
int
drain);
106
extern
void
N_free_gwflow_data3d
(
N_gwflow_data3d
*
data
);
107
extern
void
N_free_gwflow_data2d
(
N_gwflow_data2d
*
data
);
108
#endif
lib
gpde
N_gwflow.h
Generated on Sat Oct 5 2013 12:11:09 for GRASS Programmer's Manual by
1.8.4