"open" → scenario where all openings are open "closed" → scenario where all openings are closed "combined" → scenario where all exterior openings are closed and all interior openings are open "user_def" ¬ user-defined scenarioWhen not provided, the flood duration is calculated using the limnigraph as follows: final time in limnigraph + half an hour.

analyse_hydraulics(
  model,
  limnigraph,
  flood_duration,
  opening_scenario = c("open", "closed", "combined", "user_def"),
  exchange,
  sim_id = NULL,
  filename = NULL,
  verbose = getOption("floodam_building_verbose")
)

Arguments

model

either a character, name given to the model or an object of class model

limnigraph

numeric, matrix of floodwater depth heights by instant t for each exterior opening exposed to flooding

flood_duration

numeric, duration of the flood event in seconds, optional; if not provided, calculated using limnigraph

opening_scenario

character, one of the following options: "open", "closed", "combined" or "user_def"

exchange

character, user-defined scenario of exchanges; use in case opening_scenario = "user_def", ignore otherwise

sim_id

character, optional; id of simulation if function called from a loop

filename

character, optional; file name without extension to be given to simulation's output wen saving to disk

verbose

boolean, will floodam tells what it is doing, default to getOption("floodam_building_verbose")

Value

data.frame of hydraulic values: water exchanges through openings and floodwater depth in rooms