Skip to contents

Update the existing stage-discharge boundary condition.

Usage

set_boundary_ZQ(cfg, scenario, nd, pr = 1, mZQ)

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

Value

This function is only used for side effect on the XML file of the SIC project.

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))
}