Model help:TopoFlow-Diversions: Difference between revisions

From CSDMS
m (Text replacement - "http://csdms.colorado.edu/wiki/" to "https://csdms.colorado.edu/wiki/")
 
(12 intermediate revisions by 3 users not shown)
Line 3: Line 3:
1) Log in to the wiki
1) Log in to the wiki
2) Create a new page for each model, by using the following URL:
2) Create a new page for each model, by using the following URL:
   * http://csdms.colorado.edu/wiki/Model help:<modelname>
   * https://csdms.colorado.edu/wiki/Model help:<modelname>
   * Replace <modelname> with the name of a model
   * Replace <modelname> with the name of a model
3) Than follow the link "edit this page"
3) Than follow the link "edit this page"
Line 78: Line 78:
==Provides ports==
==Provides ports==


• Diversions (sources, sinks and canals)
• Diversions (sources, sinks and canals) <br />
 
• Configure (tabbed dialog GUI to change settings) <br />
• Configure (tabbed dialog GUI to change settings)
• Run (only if used as the Driver) <br />
 
• Run (only if used as the Driver)


==Main equations==
==Main equations==
Line 93: Line 91:
!Symbol!!Description!!Unit
!Symbol!!Description!!Unit
|-
|-
| ID
| n_sink
| source pixel ID as long integer, calendar index (for sources and sinks)
| number of sink
| -
| -
|-
|-
Line 115: Line 113:
| ID2
| ID2
| end pixel ID as long integer; calendar index (for canals)
| end pixel ID as long integer; calendar index (for canals)
| -
|-
| n_source
| number of source
| -
|-
| nt_max
| max number of times for which discharge values are provided (out of all the sources)
| -
|-
| nt_max
| max number of times for which discharge values are provided (out of all the sources)
| -
|-
| dt
| timestep between successive values
| -
|-
| source_ID
| long-integer, calendar-style ID of the grid cell that contains the source
| -
|-
| nt
| number of timesteps for the corresponding source_ID
| -
|-
| Discharge
| volumetric discharge that comes from the source
| m<sup>3</sup>/s
|-
| n_canals
| number of canals
| -
|-
| canal_in_ID
| long-integer, calendar-style ID of the grid cell that contains the upstream end of the canal
| -
|-
| canal_out_ID
| long-integer, calendar-style ID of the grid cell that contains the downstream end of the canal
| -
|-
| Q_fraction
| fraction of discharge (Q, m3/s), between 0 (none) and 1 (100%) which is to be removed from canal_in_ID and routed to canal_out_ID
| -
|-
| travel_time
| the time, in seconds, for the flow to travel from canal_in_ID to canal_out_ID
| -
| -
|-
|-
Line 122: Line 168:
</div>
</div>
==Notes==
==Notes==
To use flow diversions, you must provide the required information in specially-formatted text files (see examples below).  Where required, vector-valued input variables such as discharges are specified as a list of space-delimited numbers on one line (i.e. terminated by a single end-of-line character). Keys that end with "_ID" refer to the integer value that is assigned to a given pixel (i.e. grid cell) when all pixels in the corresponding DEM are numbered sequentially in calendar order , that is, from top row to bottom row and from left to right within each row. Pixel IDs start at zero and are read and processed as long (4-byte) integers.


Canals are currently assumed to be lossless, so that the flow rates at the two ends are identical, but lagged by the travel time.
All variables and their units can be seen by expanding the Nomenclature section above.


'''''Format of a Sources File'''''
To use flow diversions, you must provide the required information in specially-formatted text files (see examples below).  Where required, vector-valued input variables such as discharges are specified as a list of space-delimited numbers on one line (i.e. terminated by a single end-of-line character). Keys that end with "_ID" refer to the integer value that is assigned to a given pixel (i.e. grid cell) when all pixels in the corresponding DEM are numbered sequentially in calendar order, that is, from top row to bottom row and from left to right within each row. Pixel IDs start at zero and are read and processed as long (4-byte) integers.


A "sources" file is a plain text file that starts with 3 key-value pairs that provide information for all sources.  This is followed by n_sources blocks (with 3 more key-value pairs each) which each provide information for one of the sources.  The six keys are defined as follows.
'''''Format of a Sources or Sinks File'''''
 
A "sources" file is a plain text file that starts with 3 key-value pairs that provide information for all sources.  This is followed by n_sources blocks (with 3 more key-value pairs each) which each provide information for one of the sources.  The six keys are defined as follows.  A "sinks" file has the same format as a sources file except the keys "n_sources" and "source_ID" are replaced by "n_sinks" and "sink_ID".  A source could be a natural spring where flow enters the system from underground.  Flow that enters a sink is assumed to flow underground and leave the system.
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 141: Line 188:
| '''nt'''  || number of timesteps for the corresponding source_ID
| '''nt'''  || number of timesteps for the corresponding source_ID
|-
|-
| '''Discharge''' || volumetric discharge that comes from the source, in units of m3/s
| '''Discharge''' || volumetric discharge that comes from the source, in units of m<sup>3</sup>/s
|}
|}


Line 152: Line 199:
Discharge:  0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 <br />
Discharge:  0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 <br />
source_ID:  62<br />
source_ID:  62<br />
nt:        5<br />
Discharge:  0.05 0.05 0.05 0.05 0.05
'''''Format of a Sinks File'''''
A "sinks" file is a plain text file that is identical in format and keys to a sources file, except replacing the word "source" with "sink".
''Example:'' <br />
n_sinks:  1 <br />
nt_max:    10 <br />
dt:        0.0 <br />
sink_ID:  65 <br />
nt:        10 <br />
Discharge:  0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 <br />
sink_ID:  62<br />
nt:        5<br />
nt:        5<br />
Discharge:  0.05 0.05 0.05 0.05 0.05
Discharge:  0.05 0.05 0.05 0.05 0.05
Line 172: Line 204:
'''''Format of a Canals File'''''
'''''Format of a Canals File'''''


A "canals" file is a plain text file that starts with 1 key-value pair that provides the number of canals.  This is followed by n_canals blocks (with 4 more key-value pairs each) which each provide information for one of the canals.  The five keys are defined as follows.
A "canals" file is a plain text file that starts with 1 key-value pair that provides the number of canals.  This is followed by n_canals blocks (with 4 more key-value pairs each) which each provide information for one of the canals.  Canals are currently assumed to be lossless, so that the flow rates at the two ends are identical, but lagged by the travel time. The five keys are defined as follows.


{| class="wikitable"
{| class="wikitable"
Line 198: Line 230:


<span class="remove_this_tag">Follow the next steps to include images / movies of simulations:</span>
<span class="remove_this_tag">Follow the next steps to include images / movies of simulations:</span>
* <span class="remove_this_tag">Upload file: http://csdms.colorado.edu/wiki/Special:Upload</span>
* <span class="remove_this_tag">Upload file: https://csdms.colorado.edu/wiki/Special:Upload</span>
* <span class="remove_this_tag">Create link to the file on your page: <nowiki>[[Image:<file name>]]</nowiki>.</span>
* <span class="remove_this_tag">Create link to the file on your page: <nowiki>[[Image:<file name>]]</nowiki>.</span>


Line 210: Line 242:


==Links==
==Links==
* [[Model help:TopoFlow-Channels-Kinematic Wave]]
* [[Model help:TopoFlow-Channels-Diffusive Wave]]
* [[Model help:TopoFlow-Channels-Dynamic Wave]]
* [[Model:TopoFlow-Diversions]]
* [[Model:TopoFlow-Diversions]]
* [[Model:TopoFlow]]
* [[Model:TopoFlow]]


[[Category:Modules]]
[[Category:Modules]]

Latest revision as of 17:15, 19 February 2018

The CSDMS Help System

TopoFlow-Diversions

This is the diversions component for a D8-based, spatial hydrologic model.

Model introduction

This process component is part of a spatially-distributed hydrologic model called TopoFlow, but it can now be used as a stand-alone model. TopoFlow supports three different types of flow diversions: sources, sinks and canals. Sources are locations such as natural springs where water enters the watershed at a point by some process other than those that are otherwise modeled. Similarly, sinks are locations where water leaves the watershed at a point. Canals are generally man-made reaches such as tunnels or irrigation ditches that transport water from one point to another, typically without following the natural gradient of the terrain that is indicated by the DEM. The upstream end is essentially a sink and the downstream end a source.

Model parameters

Input

Parameter Description Unit
Component status Enabled / Disabled [-]
Input directory The location of the input files [-]
Output directory The location for the output files [-]
Site prefix [-]
Case prefix [-]
Use sources toggle Option to use sources [-]
Sources file source information file [-]
Use sinks toggle Option to use sinks [-]
Sinks file sink information file [-]
Use canals toggle Option to use canals [-]
Canal file canal information file [-]


Uses ports

• Channels (surface water flow in a network of channels with trapezoidal cross-section)

Provides ports

• Diversions (sources, sinks and canals)
• Configure (tabbed dialog GUI to change settings)
• Run (only if used as the Driver)

Main equations

A list of the key equations. HTML format is supported; latex format will be supported in the future

Notes

All variables and their units can be seen by expanding the Nomenclature section above.

To use flow diversions, you must provide the required information in specially-formatted text files (see examples below). Where required, vector-valued input variables such as discharges are specified as a list of space-delimited numbers on one line (i.e. terminated by a single end-of-line character). Keys that end with "_ID" refer to the integer value that is assigned to a given pixel (i.e. grid cell) when all pixels in the corresponding DEM are numbered sequentially in calendar order, that is, from top row to bottom row and from left to right within each row. Pixel IDs start at zero and are read and processed as long (4-byte) integers.

Format of a Sources or Sinks File

A "sources" file is a plain text file that starts with 3 key-value pairs that provide information for all sources. This is followed by n_sources blocks (with 3 more key-value pairs each) which each provide information for one of the sources. The six keys are defined as follows. A "sinks" file has the same format as a sources file except the keys "n_sources" and "source_ID" are replaced by "n_sinks" and "sink_ID". A source could be a natural spring where flow enters the system from underground. Flow that enters a sink is assumed to flow underground and leave the system.

n_sources number of sources
nt_max max number of times for which discharge values are provided (out of all the sources).
dt timestep between successive values
source_ID long-integer, calendar-style ID of the grid cell that contains the source
nt number of timesteps for the corresponding source_ID
Discharge volumetric discharge that comes from the source, in units of m3/s

Example:
n_sources: 2
nt_max: 10
dt: 0.0
source_ID: 65
nt: 10
Discharge: 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05
source_ID: 62
nt: 5
Discharge: 0.05 0.05 0.05 0.05 0.05

Format of a Canals File

A "canals" file is a plain text file that starts with 1 key-value pair that provides the number of canals. This is followed by n_canals blocks (with 4 more key-value pairs each) which each provide information for one of the canals. Canals are currently assumed to be lossless, so that the flow rates at the two ends are identical, but lagged by the travel time. The five keys are defined as follows.

n_canals number of canals
canal_in_ID long-integer, calendar-style ID of the grid cell that contains the upstream end of the canal
canal_out_ID long-integer, calendar-style ID of the grid cell that contains the downstream end of the canal
Q_fraction fraction of discharge (Q, m3/s), between 0 (none) and 1 (100%) which is to be removed from canal_in_ID and routed to canal_out_ID
travel_time the time, in seconds, for the flow to travel from canal_in_ID to canal_out_ID

Example:
n_canals: 1
canal_in_ID: 216
canal_out_ID: 203
Q_fraction: 0.5
travel_time: 240.0 [seconds]

Examples

An example run with input parameters, BLD files, as well as a figure / movie of the output

Follow the next steps to include images / movies of simulations:

See also: Help:Images or Help:Movies

Developer(s)

Scott Peckham

References

Key papers

Links