Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
calculate channel sed and nutrient processes if inflow > 0
peak daily flow rate - m3/s using the Fuller and Peck (1974) equation for peak to mean flow ratio
interpolate rating curve using peak rate
channel velocity from the interpolated rating curve
(rating-curve vel avoids the unrealistically high velocities at low flow from continuity Q/A)
add precip to inflow - km * m * 1000 m/km * ha/10000 m2 = ha
m3 = 10. * mm * ha
compute overbank flow and flood plain deposition
overbank volume is assumed = flood plain volume at peak rate (from the rating curve)
trap efficiency from Dynamic SedNet Component Model Reference Guide: Update 2017
deposit Particulate P and N in the floodplain
trap nitrate and sol P in flood plain - when not simulating flood plain interactions?
if flood plain link - fill wetlands to emergency
fill wetland storage to emergency volume
calculate overbank volume left to fill wetland
calc bank erosion
calculate radius of curvature
bank erosion m/yr
write for Peter
mass of sediment eroded -> t = 1000 * bankcut (mm) * depth (m) * lengthcut (m) * bd (t/m3)
arc length = 0.33 * meander wavelength * sinuosity
calculate associated nutrients
calculate channel deposition based on fall velocity - SWRRB book
assume particle size = 0.03 mm -- median silt size
assume bankfull flow depth
calculate channel deposition as the bedload fraction of bank erosion
calculate bed erosion
no downcutting below equilibrium slope
calc critical shear and shear on bottom of channel
Pa = N/m^2 * m * m/m
critical shear function of d50
bed erosion m/yr
calc mass of sediment eroded -> t = m * width (m) * length (km) * 1000 m/km * bd (t/m3)
calculate associated nutrients
set outputs for sediment budget
width and depth at end of the day - m
sediment flood plain deposition - tons and mm
mm = t / (5.bdwl) -> assume fp width = 5chw; len(m)=1000.km; bd=1.0 t/m3; mm=1000.m
daily bank erosion in t and m - calculate w/yr later
daily bed erosion in t and m - calculate w/yr later
add to ordered sediment budget
basin sediment budget outputs - don't sum during skip years
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.