The associated model and definition that demonstrating the use of these components can be downloaded here.
Flow Paths
Components for creating projections of surface water flows.
Flow Paths
The “flows” components create naïve projections or simulations of surface water flows and provide further means to analyse the results of these calculations. The key component — the FlowPath
— accepts a series of ‘drop points’ on a Surface
or Mesh
that become the starting locations of each hypothetical flow path. From there, each point samples the surface or mesh to determine its slope, which becomes a directing vector (i.e. one that points ‘downhill’). Each point is then moved along this vector a prespecified distance, forming a line. The end of this line then becomes the starting point for the next sample; creating a recursive process where flow paths assemble themselves as Polylines
that grow through this series of descending jumps.
This ‘gradient descent’ process repeats until a path crosses the edge of the form, a specified quantity of iterations are performed, or until the algorithm determines that the path has reached a point without a viable further downhill path. This halting calculation aims to identify a ‘basin’ where water might collect and pool rather than continue to flow downhill.
The component then produces as an output a series of Polylines
, from which the beginnings, ends, and individual segments can be readily extracted. The process provides degrees of flexibility. By accepting any given set of Points
(rather than enforcing a spatial grid or other formation) it offers the ability to work across a number of contexts, from situations where you may want to simulate a uniform distribution (say rain) or just a particular pointsource of water.
The FlowPath
component takes two forms a SurfaceFlowPath
and a MeshFlowPath
depending on the geometric type of the ‘landscape’ you want to test.
Construct flow paths over a surface
Mode  Name  ID  Description  Optional  Type 

Surface 
S

Base landscape form (as a surface) for the flow calculation 
SurfaceParameter


Points 
P

Start points for the flow paths. These should be above the surface (they will be projected on to it) 
PointParameter


Fidelity 
F

Amount to move for each flow iteration. Small numbers may take a long time to compute. If not specified or set to 0 a (hopefully) sensible step size will be calculated. 
NumberParameter


Steps 
L

A limit to the number of flow iterations. Leave unset or to 0 for an unlimited set of iterations 
IntegerParameter


Thread 
T

Whether to multithread the solution (this can speed up long calculations) 
BooleanParameter


Flow Points 
F

The points of each simulated flow path ‘jump’ 
PointParameter


Flow Paths 
C

A polyline linking each of the flow points into a path 
CurveParameter

Construct flow paths over a mesh
Mode  Name  ID  Description  Optional  Type 

Mesh 
M

Base landscape form (as a mesh) for the flow calculation 
MeshParameter


Points 
P

Start points for the flow paths. These should be above the mesh (they will be projected on to it) 
PointParameter


Fidelity 
F

Amount to move for each flow iteration. Small numbers may take a long time to compute. If not specified or set to 0 a (hopefully) sensible step size will be calculated. 
NumberParameter


Steps 
L

A limit to the number of flow iterations. Leave unset or to 0 for an unlimited set of iterations 
IntegerParameter


Thread 
T

Whether to multithread the solution (this can speed up long calculations) 
BooleanParameter


Flow Points 
F

The points of each simulated flow path ‘jump’ 
PointParameter


Flow Paths 
C

A polyline linking each of the flow points into a path 
CurveParameter

Workflows
Once calculated, these flow paths can then be used as inputs for two further components:
The example file (linked at the top of this page) demonstrates a number of options for visualisation and extension, such as:
 Using a
Metaball
component to display (a very crude) ‘pooling’ effect at the end of the flow paths  Using geometric intersections to test how drainage pits intercept water flows
 Fading the color of the paths as they travel further from their ‘source’