The function stateX() process the soil discharge: 1- process the soil discharge of slopes 2- process the soil discharge of bogs 3- process the accumulated discharge with a dynamic Unit is in m3/s

do.soilDischarge(Timeresinsec, layerUH, ddist, UHriver, waterContent, area,
  modelBog, waterContentBog, areabog, qsimX)

Arguments

Timeresinsec
time resolution of the process in second (1hour: 3600s, ... etc)
layerUH
Unit Hydrograph of the saturation layers
ddist
states of each saturation level
UHriver
Unit Hydrograp of the river
waterContent
excess of water in millimeters over Slopes
area
in squared meters
modelBog
list of parameters of the bog list(maxL,speed,nbStepsDelay,z,distr,param)
waterContentBog
excess of water in millimeters over Bogs
areabog
in squared meters
qsimX
soil discharge value to take into account while doing the accumulation

Value

The output is a list of i- the discharge at the time step and ii- the accumulatied discharge