GRASS Programmer's Manual  6.4.3(2013)-r
 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 {
46  /*river */
51  /*drainage */
58  double dt;
61 
66 typedef struct
67 {
77  /*river */
82  /*drainage */
93  double dt;
94  int gwtype;
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);
108 #endif