Build a limnigraph
generate_limnigraph.Rd
generate_limnigraph()
builds external limingraphs that are used as boundary
conditions for interior hydraulic simulation. It also gives the corresponding
openings to each limnigraph
Usage
generate_limnigraph(
time,
depth,
external,
verbose = getOption("floodam_building_verbose")
)
Arguments
- time
numeric, time steps (in seconds) at which a specific floodwater depth is reached
- depth
numeric, depths (in meters) reached at time steps given by
time
- external
character or list of characters, giving the names of the openings concerned by external limnigraphs
- verbose
boolean, will floodam tells what it is doing, default to getOption("floodam_building_verbose")
Details
time
gives the different time steps used for all limnigraphs. Its length is used as the
standard.
depth
can be a vector of the same length as time
. In that case only one limnigraph will
be produced. For more limnigraphs a matrix with colnames shall be used.
external
gives corresponding openings to each limnigraphs (columns of depth
). In case
only one limingraph is given, external can be directly a character vector of corresponding
opnenings.
Examples
# Simpliest limnigraph (one external)
limnigraph = generate_limnigraph(
time = c(0, 1000, 2000),
depth = c(0, 1, 0),
external = "door"
)
#> generating limnigraph ...
#> limnigraph successfully generated
# Limnigraph
limnigraph = generate_limnigraph(
time = c(0, 1000, 2000),
depth = cbind(ext_1 = c(0, 1, 0), ext_2 = 0),
external = list(ext_1 = "door", ext_2 = "window")
)
#> generating limnigraph ...
#> limnigraph successfully generated