GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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);
107 
109 #endif
N_array_2d * status
Definition: N_gwflow.h:90
N_array_2d * top
Definition: N_gwflow.h:87
Matrix entries for a mass balance 5/7/9 star system.
Definition: N_pde.h:342
N_array_2d * s
Definition: N_gwflow.h:74
N_array_2d * hc_y
Definition: N_gwflow.h:71
N_array_2d * drycells
Definition: N_gwflow.h:91
N_array_2d * river_bed
Definition: N_gwflow.h:80
N_array_3d * river_head
Definition: N_gwflow.h:48
This data structure contains all data needed to compute the groundwater mass balance in three dimensi...
Definition: N_gwflow.h:34
N_array_2d * phead_start
Definition: N_gwflow.h:69
N_array_3d * river_leak
Definition: N_gwflow.h:47
N_array_2d * phead
Definition: N_gwflow.h:68
N_array_2d * q
Definition: N_gwflow.h:72
N_array_3d * s
Definition: N_gwflow.h:43
N_array_3d * nf
Definition: N_gwflow.h:44
N_array_3d * river_bed
Definition: N_gwflow.h:49
N_array_3d * hc_z
Definition: N_gwflow.h:40
N_array_2d * r
Definition: N_gwflow.h:73
N_array_2d * r
Definition: N_gwflow.h:42
Geometric information about the structured grid.
Definition: N_pde.h:127
N_gwflow_data3d * N_alloc_gwflow_data3d(int cols, int rows, int depths, int river, int drain)
Allocate memory for the groundwater calculation data structure in 3 dimensions.
Definition: N_gwflow.c:38
N_array_3d * status
Definition: N_gwflow.h:55
tuple data
N_data_star * N_callback_gwflow_3d(void *gwdata, N_geom_data *geom, int col, int row, int depth)
This callback function creates the mass balance of a 7 point star.
Definition: N_gwflow.c:263
N_array_3d * drain_leak
Definition: N_gwflow.h:52
void N_free_gwflow_data3d(N_gwflow_data3d *data)
Release the memory of the groundwater flow data structure in three dimensions.
Definition: N_gwflow.c:92
N_array_3d * drycells
Definition: N_gwflow.h:56
N_array_3d * phead_start
Definition: N_gwflow.h:37
N_array_3d * hc_y
Definition: N_gwflow.h:39
N_data_star * N_callback_gwflow_2d(void *gwdata, N_geom_data *geom, int col, int row)
This callback function creates the mass balance of a 5 point star.
Definition: N_gwflow.c:379
N_array_2d * hc_x
Definition: N_gwflow.h:70
N_array_2d * river_head
Definition: N_gwflow.h:79
N_array_2d * nf
Definition: N_gwflow.h:75
N_array_2d * drain_bed
Definition: N_gwflow.h:84
N_array_3d * hc_x
Definition: N_gwflow.h:38
N_array_2d * drain_leak
Definition: N_gwflow.h:83
N_gwflow_data2d * N_alloc_gwflow_data2d(int cols, int rows, int river, int drain)
Alllocate memory for the groundwater calculation data structure in 2 dimensions.
Definition: N_gwflow.c:148
This data structure contains all data needed to compute the groundwater mass balance in two dimension...
Definition: N_gwflow.h:66
tuple cols
void N_free_gwflow_data2d(N_gwflow_data2d *data)
Release the memory of the groundwater flow data structure in two dimensions.
Definition: N_gwflow.c:200
N_array_3d * drain_bed
Definition: N_gwflow.h:53
N_array_3d * phead
Definition: N_gwflow.h:36
N_array_2d * bottom
Definition: N_gwflow.h:88
N_array_3d * q
Definition: N_gwflow.h:41
N_array_2d * river_leak
Definition: N_gwflow.h:78