Skip to content

Commit

Permalink
Update docs to reflect nonstructural building damage change (#386)
Browse files Browse the repository at this point in the history
* update notebook

* changelog entry

* update output type

* update output type

* update the markdown

* rename to Building Nonstructural Damage

* rename and reorder

* rename the jupyter notebook as well
  • Loading branch information
longshuicy authored May 30, 2024
1 parent eeee0ba commit 9ac88d5
Show file tree
Hide file tree
Showing 8 changed files with 306 additions and 290 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- Rename Building Portfolio Analysis to Building Cluster Recovery Analysis [#559](https://github.com/IN-CORE/pyincore/issues/559)
- Update flood input to nonstructural damage output for combined wind-wave-surge building damage [#566](https://github.com/IN-CORE/incore-docs/issues/566)
- Update docs to reflect Non-structural Building Damage change [#562](https://github.com/IN-CORE/pyincore/issues/562)

### Added
- Gas facility damage analysis documentation and example notebook [#387](https://github.com/IN-CORE/incore-docs/issues/387)
Expand Down
2 changes: 1 addition & 1 deletion manual_jb/content/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ chapters:
- file: analyses/building_dmg
- file: analyses/building_func
- file: analyses/building_loss
- file: analyses/building_nonstructural_dmg
- file: analyses/capital_shocks
- file: analyses/combined_wind_wave_surge_building_dmg
- file: analyses/combined_wind_wave_surge_building_loss
Expand All @@ -40,7 +41,6 @@ chapters:
- file: analyses/mc_failure_prob
- file: analyses/multi_retrofit_optimization
- file: analyses/nci_functionality
- file: analyses/non_structural_building_dmg
- file: analyses/pipeline_dmg
- file: analyses/pipeline_dmg_w_repair_rate
- file: analyses/pipeline_functionality
Expand Down
23 changes: 12 additions & 11 deletions manual_jb/content/analyses.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
3. [Building damage](analyses/building_dmg)
4. [Building functionality](analyses/building_func)
5. [Building economic loss](analyses/building_loss)
6. [Capital shocks](analyses/capital_shocks)
7. [Combined wind wave surge building damage](analyses/combined_wind_wave_surge_building_dmg)
8. [Combined wind wave surge building loss](analyses/combined_wind_wave_surge_building_loss)
9. [Commercial building recovery](analyses/commercial_building_recovery)
10. [Cumulative building damage](analyses/cumulative_building_dmg)
11. [Electric power facility damage](analyses/epf_dmg)
12. [Electric power facility repair cost](analyses/epf_repair_cost)
13. [Electric power facility restoration](analyses/epf_restoration)
14. [Electric power network functionality](analyses/epn_functionality)
15. [Galveston Computable General Equilibrium (CGE)](analyses/galveston_cge.md)
6. [Building nonstructural damage](analyses/building_nonstructural_dmg)
7. [Capital shocks](analyses/capital_shocks)
8. [Combined wind wave surge building damage](analyses/combined_wind_wave_surge_building_dmg)
9. [Combined wind wave surge building loss](analyses/combined_wind_wave_surge_building_loss)
10. [Commercial building recovery](analyses/commercial_building_recovery)
11. [Cumulative building damage](analyses/cumulative_building_dmg)
12. [Electric power facility damage](analyses/epf_dmg)
13. [Electric power facility repair cost](analyses/epf_repair_cost)
14. [Electric power facility restoration](analyses/epf_restoration)
15. [Electric power network functionality](analyses/epn_functionality)
16. [Galveston Computable General Equilibrium (CGE)](analyses/galveston_cge.md)
16. [Gas facility damage](analyses/gas_facility_damage)
17. [Household-level housing sequential recovery](analyses/housing_household_recovery)
18. [Housing recovery](analyses/housing_recovery)
Expand Down Expand Up @@ -46,4 +47,4 @@
44. [Water facility damage](analyses/waterfacility_dmg)
45. [Water network functionality](analyses/wfn_functionality)
46. [Water facility repair cost](analyses/water_facility_repair_cost)
47. [Water facility restoration](analyses/water_facility_restoration)
47. [Water facility restoration](analyses/water_facility_restoration)
92 changes: 92 additions & 0 deletions manual_jb/content/analyses/building_nonstructural_dmg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Building Nonstructural Damage

**Description**

This analysis computes the non-structural damage to buildings based on a particular hazard. Currently, supported
hazard is: **earthquake**, **flood**, and **hurricane**.

The process is similar to evaluating other structural damages. The probabilities for building damage
state are obtained using fragility curves and a hazard definition, each building site will have
a specific PGA (Peak Ground Acceleration), a measurement of an earthquake hazard for each scenario.
Liquefaction effect, which is defined as a change in stress condition, in which material that is ordinarily
a solid behaves like a liquid can be considered as well. The LMF (Liquefaction Modification Factor)
values are implemented as multiplication factors to the median fragility values and they must be present
in the dataset. This analysis can support various types of fragility curves assigned to the building:
e.g.acceleration-sensitive (AS) and drift-sensitive (DS).

The code covers Normal and LogNormal fragilities with 3 limit states and creates an output CSV file
with corresponding damage states. The second output file is a JSON with information about hazard and fragilities.

**Input Parameters**

key name | type | name | description
----------------------------|--------|-----------------|---------------------------------------------------------------------
`result_name` <sup>*</sup> | `str` | Result name | Name of the result dataset.
`hazard_type` | `str` | Hazard type | Hazard type (earthquake, flood, hurricane).
`hazard_id` | `str` | Hazard id | ID of the hazard from the Hazard service.
`fragility_key` | `str` | Fragility Key | Fragility key used in mapping dataset.
`use_liquefation` | `bool` | Liquefaction | Use liquefaction, if applicable to the hazard. <br>Default *False*.
`liq_geology_dataset_id` | `str` | Liquefaction id | A liquefaction susceptibility dataset.
`use_hazard_uncertainty` | `bool` | Uncertainty | Use hazard uncertainty. Default is <br>*False*.
`num_cpu` | `int` | Number of CPUs | Number of CPUs used for parallel computations. <br>Default *1*.

**Input Hazards**

key name | type | name | description
----------|----------------------------------------|--------|-------------------------------------------------------------
`hazard` | `earthquake`<br>`flood`<br>`hurricane` | Hazard | Supported hazard object for using local and remote hazards.

**Input Datasets**

key name | type | name | description
---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|---------------------
`buildings` <sup>*</sup> | [`ergo:buildingInventoryVer4`](https://incore.ncsa.illinois.edu/semantics/api/types/ergo:buildingInventoryVer4)<br>[`ergo:buildingInventoryVer5`](https://incore.ncsa.illinois.edu/semantics/api/types/ergo:buildingInventoryVer5)<br>[`ergo:buildingInventoryVer6`](https://incore.ncsa.illinois.edu/semantics/api/types/ergo:buildingInventoryVer6)<br>[`ergo:buildingInventoryVer7`](https://incore.ncsa.illinois.edu/semantics/api/types/ergo:buildingInventoryVer7) | Building dataset | A building dataset.
`dfr3_mapping_set` <sup>*</sup> | [`incore:dfr3MappingSet`](https://incore.ncsa.illinois.edu/semantics/api/types/incore:dfr3MappingSet) | DFR3 Mapping Set | DFR3 Mapping Set.

**Output datasets**

key name | type | parent key | name | description
------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|-------------|---------|-------------------------------------------------------------------------
`result` <sup>*</sup> | [`ergo:nsBuildingInventoryDamageVer4`](https://incore.ncsa.illinois.edu/semantics/api/types/ergo:nsBuildingInventoryDamageVer4) | `buildings` | Results | A dataset containing results <br>(format: CSV).
`damage_result` <sup>*</sup> | [`incore:nsBuildingInventoryDamageSupplement`](https://incore.ncsa.illinois.edu/semantics/api/types/incore:nsBuildingInventoryDamageSupplement) | `buildings` | Results | Information about applied hazard value and fragility<br>(format: JSON).

<small>(* required)</small>

**Execution**

code snippet:

```
# Create an instance
non_structural_building_dmg = NonStructBuildingDamage(client)
# Load input datasets
non_structural_building_dmg.load_remote_input_dataset("buildings", building_dataset_id)
# Load fragility mapping
fragility_service = FragilityService(client)
mapping_set = MappingSet(fragility_service.get_mapping(mapping_id))
non_structural_building_dmg.set_input_dataset('dfr3_mapping_set', mapping_set)
# Specify the result name
result_name = "non_structural_building_dmg_result"
# Set analysis parameters
non_structural_building_dmg.set_parameter("result_name", result_name)
non_structural_building_dmg.set_parameter("hazard_type", hazard_type)
non_structural_building_dmg.set_parameter("hazard_id", hazard_id)
non_structural_building_dmg.set_parameter("fragility_key", NonStructBuildingUtil.DEFAULT_FRAGILITY_KEY_AS)
non_structural_building_dmg.set_parameter("num_cpu", 4)
# Shelby County Liquefaction Susceptibility
use_liquefaction = True
liq_geology_dataset_id = "5a284f55c7d30d13bc0824ba"
non_structural_building_dmg.set_parameter("use_liquefaction", use_liquefaction)
non_structural_building_dmg.set_parameter("liq_geology_dataset_id", liq_geology_dataset_id)
non_structural_building_dmg.run_analysis()
```

full
analysis: [building_nonstructural_dmg.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/building_nonstructural_dmg.ipynb)
92 changes: 0 additions & 92 deletions manual_jb/content/analyses/non_structural_building_dmg.md

This file was deleted.

2 changes: 1 addition & 1 deletion manual_jb/content/notebooks_other.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Note that some Notebooks might not work with the latest version of pyIncore.
[mean_dmg.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/mean_dmg.ipynb) <br />
[multi_retrofit_optimization.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/multi_retrofit_optimization.ipynb) <br />
[nci_functionality.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/nci_functionality.ipynb) <br />
[non_structural_building_dmg.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/non_structural_building_dmg.ipynb) <br />
[building_nonstructural_dmg.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/building_nonstructural_dmg.ipynb) <br />
[pipeline_dmg.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/pipeline_dmg.ipynb) <br />
[pipeline_dmg_w_repair_rate.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/pipeline_dmg_w_repair_rate.ipynb) <br />
[pipeline_repair_cost.ipynb](https://github.com/IN-CORE/incore-docs/blob/main/notebooks/pipeline_repair_cost.ipynb) <br />
Expand Down
Loading

0 comments on commit 9ac88d5

Please sign in to comment.