Set stage-discharge curve at an offtake of the model
set_boundary_ZQ.Rd
Update the existing stage-discharge boundary condition.
Arguments
- cfg
a config object. Configuration to use. See loadConfig for details
- scenario
numeric, the scenario to use
- nd
numeric, node number in SIC model
- pr
numeric, offtake number in the node
- mZQ
matrix, stage-discharge relation with first column the water elevation in meters and the second column the discharge in cubic meters per seconds
Examples
if (FALSE) {
cfg <- cfg_tmp_project()
z <- seq(5, 20, 1)
Q <- (z-5)^1.5
set_boundary_ZQ(cfg, scenario = 1, nd = 3, mZQ = matrix(c(z, Q), ncol = 2))
}