Functions for channel routing related modules, e.g., MUSK_CH.
More...
|
FLTPT | manningQ (FLTPT x1, FLTPT x2, FLTPT x3, FLTPT x4) |
| Calculates flow rate or flow velocity using Manning's equation. More...
|
|
FLTPT | ChannleBottomWidth (FLTPT ch_wth, FLTPT &ch_sideslp, FLTPT &ch_depth) |
| Calculate channel bottom width by channel width, side slope, and depth. More...
|
|
FLTPT | ChannelWettingPerimeter (FLTPT ch_btmwth, FLTPT ch_depth, FLTPT wtr_depth, FLTPT ch_sideslp, FLTPT ch_wth, FLTPT fps=4.) |
| Channel wetting perimeter for both floodplain and not full channel. More...
|
|
FLTPT | ChannelWettingPerimeter (FLTPT ch_btmwth, FLTPT wtr_depth, FLTPT ch_sideslp) |
| Channel wetting perimeter for not full channel. More...
|
|
FLTPT | ChannelCrossSectionalArea (FLTPT ch_btmwth, FLTPT ch_depth, FLTPT wtr_depth, FLTPT ch_sideslp, FLTPT ch_wth, FLTPT fps=4.) |
| Cross-sectional area of channel for both floodplain and not full channel. More...
|
|
FLTPT | ChannelCrossSectionalArea (FLTPT ch_btmwth, FLTPT wtr_depth, FLTPT ch_sideslp) |
| Cross-sectional area of channel for not full channel. More...
|
|
FLTPT | StorageTimeConstant (FLTPT ch_manning, FLTPT ch_slope, FLTPT ch_len, FLTPT radius) |
| Compute storage time constant for channel (ratio of storage to discharge) More...
|
|
Functions for channel routing related modules, e.g., MUSK_CH.
◆ ChannelCrossSectionalArea() [1/2]
FLTPT ChannelCrossSectionalArea |
( |
FLTPT |
ch_btmwth, |
|
|
FLTPT |
ch_depth, |
|
|
FLTPT |
wtr_depth, |
|
|
FLTPT |
ch_sideslp, |
|
|
FLTPT |
ch_wth, |
|
|
FLTPT |
fps = 4. |
|
) |
| |
Cross-sectional area of channel for both floodplain and not full channel.
- Parameters
-
[in] | ch_btmwth | Channel bottom width |
[in] | ch_depth | Channel depth |
[in] | wtr_depth | Channel water depth |
[in] | ch_sideslp | The inverse of channel side slope (default is 2, slope = 0.5) |
[in] | ch_wth | Channel width at bankfull |
[in] | fps | The inverse of floodplain side slope (default is 4, slope = 0.25) |
- Returns
- Channel cross-sectional area
◆ ChannelCrossSectionalArea() [2/2]
FLTPT ChannelCrossSectionalArea |
( |
FLTPT |
ch_btmwth, |
|
|
FLTPT |
wtr_depth, |
|
|
FLTPT |
ch_sideslp |
|
) |
| |
Cross-sectional area of channel for not full channel.
- Parameters
-
[in] | ch_btmwth | Channel bottom width |
[in] | wtr_depth | Channel water depth |
[in] | ch_sideslp | The inverse of channel side slope (default is 2, slope = 0.5) |
- Returns
- Channel cross-sectional area
◆ ChannelWettingPerimeter() [1/2]
FLTPT ChannelWettingPerimeter |
( |
FLTPT |
ch_btmwth, |
|
|
FLTPT |
ch_depth, |
|
|
FLTPT |
wtr_depth, |
|
|
FLTPT |
ch_sideslp, |
|
|
FLTPT |
ch_wth, |
|
|
FLTPT |
fps = 4. |
|
) |
| |
Channel wetting perimeter for both floodplain and not full channel.
- Parameters
-
[in] | ch_btmwth | Channel bottom width |
[in] | ch_depth | Channel depth |
[in] | wtr_depth | Channel water depth |
[in] | ch_sideslp | The inverse of channel side slope (default is 2, slope = 0.5) |
[in] | ch_wth | Channel width at bankfull |
[in] | fps | The inverse of floodplain side slope (default is 4, slope = 0.25) |
- Returns
- Channel wetting perimeter
◆ ChannelWettingPerimeter() [2/2]
FLTPT ChannelWettingPerimeter |
( |
FLTPT |
ch_btmwth, |
|
|
FLTPT |
wtr_depth, |
|
|
FLTPT |
ch_sideslp |
|
) |
| |
Channel wetting perimeter for not full channel.
- Parameters
-
[in] | ch_btmwth | Channel bottom width |
[in] | wtr_depth | Channel water depth |
[in] | ch_sideslp | The inverse of channel side slope (default is 2, slope = 0.5) |
- Returns
- Channel wetting perimeter
◆ ChannleBottomWidth()
FLTPT ChannleBottomWidth |
( |
FLTPT |
ch_wth, |
|
|
FLTPT & |
ch_sideslp, |
|
|
FLTPT & |
ch_depth |
|
) |
| |
Calculate channel bottom width by channel width, side slope, and depth.
Refers code ttcoef.f in SWAT.
- Parameters
-
[in] | ch_wth | Channel upper width |
[in,out] | ch_sideslp | The inverse of channel side slope (default is 2, slope = 0.5), which maybe updated when bottom width < 0 |
[in,out] | ch_depth | Channel depth, which maybe updated when bottom width < 0 |
- Returns
- Channel bottom width
◆ manningQ()
FLTPT manningQ |
( |
FLTPT |
x1, |
|
|
FLTPT |
x2, |
|
|
FLTPT |
x3, |
|
|
FLTPT |
x4 |
|
) |
| |
Calculates flow rate or flow velocity using Manning's equation.
If x1 is set to 1, the velocity is calculated. If x1 is set to cross-sectional area of flow, the flow rate is calculated. Refers code Qman.f in SWAT.
- Parameters
-
[in] | x1 | cross-sectional flow area or 1, m^2 or none. |
[in] | x2 | hydraulic radius, m. |
[in] | x3 | Manning's "n" value for channel. |
[in] | x4 | average slope of channel, m/m. |
- Returns
- flow rate or flow velocity, m^3/s or m/s.
◆ StorageTimeConstant()
FLTPT StorageTimeConstant |
( |
FLTPT |
ch_manning, |
|
|
FLTPT |
ch_slope, |
|
|
FLTPT |
ch_len, |
|
|
FLTPT |
radius |
|
) |
| |
Compute storage time constant for channel (ratio of storage to discharge)
- Parameters
-
[in] | ch_manning | Manning's n value of channel |
[in] | ch_slope | Channel slope |
[in] | ch_len | Channel length, m |
[in] | radius | Hydraulic radius, m |
- Returns
- Storage time constant