Water facility repair cost#
Description
This analysis estimates the repair costs of water facilities for different simulation scenarios based on their damage states, replacement costs, and damage ratios.
Contributors
Implementation: Hesam Talebiyan, Chen Wang, and NCSA IN-CORE Dev Team
Input Parameters
key name |
type |
name |
description |
---|---|---|---|
|
|
Result name |
Name of the result dataset. |
|
|
Number of CPUs |
If using parallel execution, the number of cpus to request. |
Input Datasets
key name |
type |
name |
description |
---|---|---|---|
|
Water Facilities |
Water Facilities. |
|
|
Replacement Cost |
Repair cost of the node in the complete damage state (= Replacement cost). |
|
|
Sample Damage States |
Sample damage states from Monte Carlo Simulation. |
|
|
Damage Ratios Table |
Damage Ratios Table. |
Output datasets
key name |
type |
name |
description |
---|---|---|---|
|
Repair Cost |
A csv file with repair cost and budget for each water facility. |
(* required)
Execution
code snippet:
client = IncoreClient()
wf_repair_cost = WaterFacilityRepairCost(client)
wf_repair_cost.load_remote_input_dataset("water_facilities", water_facility_id)
wf_repair_cost.load_remote_input_dataset("replacement_cost", replacement_cost_id)
# can be chained with MCS
wf_repair_cost.load_remote_input_dataset("sample_damage_states", sample_damage_states_id)
# dmg ratiose
wf_repair_cost.load_remote_input_dataset("wf_dmg_ratios", wf_dmg_ratios_id)
wf_repair_cost.set_parameter("result_name", "wf")
wf_repair_cost.set_parameter("num_cpu", 4)
# Run Analysis
wf_repair_cost.run_analysis()
full analysis: water_facility_repair_cost.ipynb