[GRASS-SVN] r61391 - grass-addons/grass7/raster3d/r3.flow

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 24 15:12:52 PDT 2014


Author: annakrat
Date: 2014-07-24 15:12:52 -0700 (Thu, 24 Jul 2014)
New Revision: 61391

Added:
   grass-addons/grass7/raster3d/r3.flow/r3flow_flowlines.png
Modified:
   grass-addons/grass7/raster3d/r3.flow/r3.flow.html
Log:
r3.flow: added manual

Modified: grass-addons/grass7/raster3d/r3.flow/r3.flow.html
===================================================================
--- grass-addons/grass7/raster3d/r3.flow/r3.flow.html	2014-07-24 22:11:46 UTC (rev 61390)
+++ grass-addons/grass7/raster3d/r3.flow/r3.flow.html	2014-07-24 22:12:52 UTC (rev 61391)
@@ -1,21 +1,79 @@
 <h2>DESCRIPTION</h2>
 
-<em>r3.flow</em> 
+Module <em>r3.flow</em> computes 3D flow lines and 3D flow accumulation.
+It accepts either three 3D raster maps representing the vector field or one 3D raster map.
+In case of one map, it computes on-the-fly gradient field.
 
+<h3>Flow lines</h3>
 
+Flow lines are computed either from points (seeds) provided in <b>seed_points</b> vector map,
+or if there are no seeds, it creates seeds in a regular grid in the center of voxels (3D raster cells).
+Parameter <b>skip</b> then controls the step between the regularly distributed seeds.
+If skip is not provided, r3.flow decides optimal skip for each dimension based on current 3D region
+as one tenth of the number of columns, rows, and depths.
+Flow lines can be computed in upstream direction (in the direction of gradient or vector field),
+in downstream direction or in both directions.
+
+<h3>Flow accumulation</h3>
+Flow accumulation is computed as the number of flow lines traversing each voxel.
+Since the flow lines are computed for each voxel, the flow accumulation computation
+can be more demanding.
+Parameter skip does not influence the flow accumulation computation, parameter direction does.
+
+<h3>Flow line integration</h3>
+Flow line integration can be influenced by several parameters.
+Option <b>step</b> controls the integration step and influences the precision and computational time.
+The unit of step can be defined either in terms of the size of the voxel (3D raster cell),
+length in map units, or as elapsed time. 
+Option <b>limit</b> specifies the maximum number of steps of each flow line.
+
+
 <h2>NOTES</h2>
+r3.flow uses Runge-Kutta with adaptive step size
+(<a href="http://en.wikipedia.org/wiki/Cash-Karp_method">Cash-Karp method</a>).
 
 
 
 <h2>EXAMPLES</h2>
+First we create input data using
+<a href="http://grass.osgeo.org/grass71/manuals/r3.gwflow.html#example-1">example 1</a> from
+<a href="http://grass.osgeo.org/grass71/manuals/r3.gwflow.html">r3.gwflow manual page</a>:
 
+
+<div class="code"><pre>
+# set the region accordingly
+g.region res=25 res3=25 t=100 b=0 n=1000 s=0 w=0 e=1000 -p3
+
+# now create the input raster maps for a confined aquifer
+r3.mapcalc expression="phead = if(row() == 1 && depth() == 4, 50, 40)"
+r3.mapcalc expression="status = if(row() == 1 && depth() == 4, 2, 1)"
+r3.mapcalc expression="well = if(row() == 20 && col() == 20 && depth() == 2, -0.25, 0)"
+r3.mapcalc expression="hydcond = 0.00025"
+r3.mapcalc expression="syield = 0.0001"
+r.mapcalc  expression="recharge = 0.0"
+
+r3.gwflow solver=cg phead=phead status=status hc_x=hydcond hc_y=hydcond  \
+   hc_z=hydcond q=well s=syield r=recharge output=gwresult dt=8640000 vx=vx vy=vy vz=vz budget=budget
+</pre></div>
+
+Then we compute flow lines in both directions and downstream flowaccumulation.
+
+<div class="code"><pre>
+r3.flow vector_field=vx,vy,vz flowline=gw_flowlines skip=5,5,2 direction=both
+r3.flow vector_field=vx,vy,vz flowaccumulation=gw_flowacc
+</pre></div>
+
+We can visualize the result in 3D view:
+<p>
+<img src="r3flow_flowlines.png">
+
 <h2>AUTHORS</h2>
-Anna Petrasova
+Anna Petrasova,  <a href="http://geospatial.ncsu.edu/osgeorel/">NCSU OSGeoREL</a>, developed during GSoC 2014.
 
 <h2>SEE ALSO</h2>
-
 <em>
-<a href="g.region.html">g.region</a>
+<a href="http://grass.osgeo.org/grass71/manuals/r.flow.html">r.flow</a>,
+<a href="http://grass.osgeo.org/grass71/manuals/r3.gwflow.html">r3.gwflow</a>
 </em>
 
 <p><i>Last changed: $Date$</i>

Added: grass-addons/grass7/raster3d/r3.flow/r3flow_flowlines.png
===================================================================
(Binary files differ)


Property changes on: grass-addons/grass7/raster3d/r3.flow/r3flow_flowlines.png
___________________________________________________________________
Added: svn:mime-type
   + image/png



More information about the grass-commit mailing list