Skip to contents

Compute damage for a given model

Usage

compute_damage(
  model,
  hazard_range = getOption("floodam_building_hazard_range"),
  dam = floodam.building::DAM,
  verbose = getOption("floodam_building_verbose"),
  dam_by_room = FALSE
)

Arguments

model

model

hazard_range

list, default to getOption("floodam_building_hazard_range")

dam

list, default to floodam.building::DAM

verbose

logical, default to getOption("floodam_building_verbose")

dam_by_room

logical. Should the damage functions be computed by room? Default to FALSE

Value

component damaging of the model