.TH r3.gwflow 1grass "" "GRASS 6.4.2" "Grass User's Manual" .SH NAME \fI\fBr3.gwflow\fR\fR - Calculates numerically transient, confined groundwater flow in three dimensions. .SH KEYWORDS raster3d, voxel .SH SYNOPSIS \fBr3.gwflow\fR .br \fBr3.gwflow help\fR .br \fBr3.gwflow\fR [-\fBms\fR] \fBphead\fR=\fIstring\fR \fBstatus\fR=\fIstring\fR \fBhc_x\fR=\fIstring\fR \fBhc_y\fR=\fIstring\fR \fBhc_z\fR=\fIstring\fR [\fBq\fR=\fIstring\fR] \fBs\fR=\fIstring\fR [\fBr\fR=\fIstring\fR] \fBoutput\fR=\fIstring\fR [\fBvelocity\fR=\fIstring\fR] \fBdt\fR=\fIfloat\fR [\fBmaxit\fR=\fIinteger\fR] [\fBerror\fR=\fIfloat\fR] [\fBsolver\fR=\fIname\fR] [\fBrelax\fR=\fIfloat\fR] [--\fBoverwrite\fR] [--\fBverbose\fR] [--\fBquiet\fR] .SS Flags: .IP "\fB-m\fR" 4m .br Use 3D raster mask (if exists) with input maps .IP "\fB-s\fR" 4m .br Use a sparse linear equation system, only available with iterative solvers .IP "\fB--overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB--verbose\fR" 4m .br Verbose module output .IP "\fB--quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBphead\fR=\fIstring\fR" 4m .br Input 3D raster map with initial piezometric heads in [m] .IP "\fBstatus\fR=\fIstring\fR" 4m .br The status for each cell, = 0 - inactive, 1 - active, 2 - dirichlet .IP "\fBhc_x\fR=\fIstring\fR" 4m .br The x-part of the hydraulic conductivity tensor in [m/s] .IP "\fBhc_y\fR=\fIstring\fR" 4m .br The y-part of the hydraulic conductivity tensor in [m/s] .IP "\fBhc_z\fR=\fIstring\fR" 4m .br The z-part of the hydraulic conductivity tensor in [m/s] .IP "\fBq\fR=\fIstring\fR" 4m .br Sources and sinks in [m^3/s] .IP "\fBs\fR=\fIstring\fR" 4m .br Specific yield in 1/m .IP "\fBr\fR=\fIstring\fR" 4m .br Recharge raster map in m^3/s .IP "\fBoutput\fR=\fIstring\fR" 4m .br The piezometric head result of the numerical calculation will be written to this map .IP "\fBvelocity\fR=\fIstring\fR" 4m .br Calculate the groundwater distance velocity vector field .br and write the x, y, and z components to maps named name_[xyz].Name is basename for the new 3D raster maps. .IP "\fBdt\fR=\fIfloat\fR" 4m .br The calculation time in seconds .br Default: \fI86400\fR .IP "\fBmaxit\fR=\fIinteger\fR" 4m .br Maximum number of iteration used to solver the linear equation system .br Default: \fI100000\fR .IP "\fBerror\fR=\fIfloat\fR" 4m .br Error break criteria for iterative solvers (jacobi, sor, cg or bicgstab) .br Default: \fI0.0000000001\fR .IP "\fBsolver\fR=\fIname\fR" 4m .br The type of solver which should solve the symmetric linear equation system .br Options: \fIgauss,lu,cholesky,jacobi,sor,cg,bicgstab,pcg\fR .br Default: \fIcg\fR .IP "\fBrelax\fR=\fIfloat\fR" 4m .br The relaxation parameter used by the jacobi and sor solver for speedup or stabilizing .br Default: \fI1\fR .PP .SH DESCRIPTION This numerical module calculates transient, confined groundwater flow in three dimensions based on volume maps and the current 3D region resolution. All initial- and boundary-conditions must be provided as volume maps. .PP The module calculates the piezometric head and optionally the groundwater velocity field. The vector components can be visualized with ParaView if they are exported with \fIr3.out.vtk\fR. .PP The groundwater flow will always be calculated transient. For steady state computation the user should set the timestep to a large number (billions of seconds) or set the specific yield raster map to zero. .SH NOTES The groundwater flow calculation is based on Darcy's law and a finite volume discretization. The groundwater flow partial differential equation is of the following form: .PP (dh/dt)*S = Kxx * (d^2h/dx^2) + Kyy * (d^2h/dy^2) + Kzz * (d^2h/dz^2) + q .RS .IP h -- the piezometric head im meters [m] .IP dt -- the time step for transient calculation in seconds [s] .IP S -- the specific yield [1/m] .IP b -- the bottom surface of the aquifer meters [m] .IP Kxx -- the hydraulic conductivity tensor part in x direction in meter per second [m/s] .IP Kyy -- the hydraulic conductivity tensor part in y direction in meter per seconds [m/s] .IP Kzz -- the hydraulic conductivity tensor part in z direction in meter per seconds [m/s] .IP q - inner source in [1/s] .RE .PP Two different boundary conditions are implemented, the Dirichlet and Neumann conditions. By default the calculation area is surrounded by homogeneous Neumann boundary conditions. The calculation and boundary status of single cells can be set with the status map, the following cell states are supported: .RS .IP 0 == inactive - the cell with status 0 will not be calulated, active cells will have a no flow boundary to an inactive cell .IP 1 == active - this cell is used for groundwater calculation, inner sources can be defined for those cells .IP 2 == Dirichlet - cells of this type will have a fixed piezometric head value which do not change over time .RE .PP The groundwater flow equation can be solved with several numerical solvers. Additionally a direct Gauss solver and a LU solver are available. Those direct solvers only work with quadratic matrices, so be careful using them with large maps (maps of size 10.000 cells will need more than one Gigabyte of RAM). .SH EXAMPLE This small script creates a working groundwater flow area and data. It cannot be run in a lat/lon location. \fC .DS .br # set the region accordingly .br g.region res=25 res3=25 t=100 b=0 n=1000 s=0 w=0 e=1000 -p .br .br #now create the input raster maps for a confined aquifer .br r3.mapcalc "phead = if(row() == 1 && depth() == 4, 50, 40)" .br r3.mapcalc "status = if(row() == 1 && depth() == 4, 2, 1)" .br r3.mapcalc "well = if(row() == 20 && col() == 20 , -0.00025, 0)" .br r3.mapcalc "hydcond = 0.00025" .br r3.mapcalc "syield = 0.0001" .br r.mapcalc "recharge = 0.0" .br .br r3.gwflow -s solver=cg phead=phead status=status hc_x=hydcond hc_y=hydcond \(rs .br hc_z=hydcond q=well s=syield r=recharge output=gwresult dt=8640000 velocity=gwresult_velocity .br .br # The data can be visualized with ParaView when exported with r3.out.vtk .br r3.out.vtk -p in=gwresult,status vector=gwresult_velocity_x,gwresult_velocity_y,gwresult_velocity_z out=/tmp/gwdata3d.vtk .br .br #now load the data into ParaView .br paraview --data=/tmp/gwdata3d.vtk .br .DE \fR .SH SEE ALSO \fI r.gwflow, r3.out.vtk \fR .SH AUTHOR Sören Gebbert .PP This work is based on the Diploma Thesis of Sören Gebbert available here at Technical University Berlin, Germany. .PP \fILast changed: $Date: 2011-09-13 22:13:36 +0200 (Tue, 13 Sep 2011) $\fR .PP Full index .PP © 2003-2011 GRASS Development Team