Skip to content

Building fragility (Hazus 6.1 equivalent PGA)

Module: quakecascade.fragility

What it computes

For each building, the probability of each Hazus structural damage state (none, slight, moderate, extensive, complete), given peak ground acceleration (PGA), a Hazus building type with its height class, and a Hazus seismic design level.

  • damage_probabilities(im, design_levels, building_types, beta=0.64) is the array kernel. It returns a dict of five arrays that sum to 1 per building.
  • damage(pga_g, building_type, floors=None, design_levels=...) is the table interface. It returns one row per building and design level with exceedance probabilities pe_*, discrete probabilities p_* and a dmg_status column.
  • resolve_building_type and height_class turn a base type plus a storey count into the Hazus label, for example C1 with 5 storeys becomes C1M.
  • damage_medians returns the tabulated medians.
  • design_level_from_year(years, tiers) maps construction years to design levels through tiers that you supply.

Equations

The Hazus lognormal fragility function (FEMA 2024, Section 5.4, Eq. 5-2):

\[ P(DS \ge ds \mid PGA) = \Phi\!\left(\frac{\ln(PGA/\bar{\theta}_{ds})}{\beta_{ds}}\right) \]

\(\bar{\theta}_{ds}\) is the median equivalent PGA of damage state \(ds\) (Tables 5-37 to 5-40) and \(\beta_{ds}\) the lognormal dispersion. Discrete state probabilities come from differencing the nested exceedance curves:

\[ P(\text{none}) = 1 - P(DS\ge \text{slight}),\quad P(ds_i) = P(DS\ge ds_i) - P(DS\ge ds_{i+1}),\quad P(\text{complete}) = P(DS\ge\text{complete}) \]

The dispersion printed in all four tables is

\[ \beta_{SPGA} = \sqrt{\beta_M^2 + \beta_D^2} = \sqrt{0.4^2 + 0.5^2} = 0.64 \]

\(\beta_M\) is the damage-state threshold uncertainty and \(\beta_D\) the variability of the ground-motion demand. quakecascade.montecarlo uses the two components separately.

Parameters and tables

Item Value Unit Source
Medians \(\bar{\theta}_{ds}\) 36 types × 4 design levels × 4 states g FEMA (2024) Tables 5-37 (High), 5-38 (Moderate), 5-39 (Low), 5-40 (Pre-Code)
\(\beta\) (HAZUS_PGA_BETA) 0.64 – FEMA (2024) Tables 5-37 to 5-40
\(\beta_M\), \(\beta_D\) 0.4, 0.5 – FEMA (2024) Section 5.4.3, p. 5-65
Height classes low 1–3, mid 4–7, high ≥ 8 storeys storeys FEMA (2024) Table 5-1
default_height "M" where the storey count is missing – Screening convention (not Hazus); rows flagged height_assumed
tiers in design_level_from_year required years You supply them, with their source

The manual prints no Moderate-Code or High-Code curve for C3, S5 or URM. damage returns no_fragility_curve for those combinations rather than raising.

Status codes

dmg_status Meaning
computed Probabilities evaluated
no_building_type The building type is missing (None, NaN, empty); an unknown type string raises instead
no_pga PGA is NaN or infinite. Probabilities are NaN, not "no damage"
no_design_level No design level for this building (e.g. a year outside the supplied tiers)
no_fragility_curve Hazus does not tabulate this type at this design level

A PGA of zero or below means no demand (\(P(\text{none}) = 1\)). A missing PGA is NaN. This is one deliberate change from the PlanX source, which treated a missing PGA as zero.

Calibration and applicability

  • The medians are calibrated for US construction practice and US code eras. The reference demand spectrum is a large-magnitude western-US event on a soil site. Applying them elsewhere means assuming that the local stock behaves like the Hazus class.
  • That is why the year-to-level mapping has no default. Which local code era corresponds to which Hazus level is your judgement, and it needs its own citation. To show how much of the answer depends on the assumption, bracket the scenario with several design levels; damage uses all four by default.
  • Equivalent-PGA curves are the Hazus simplification of the capacity-spectrum method. They suit scenario screening, not single-building assessment.
  • Damage is structural only. Nonstructural damage and contents are not modelled.

Example

import math
import numpy as np
import pandas as pd
import quakecascade.fragility as fr

pga = pd.Series([0.45, 0.30, np.nan, 0.62], index=["b1", "b2", "b3", "b4"])
dmg = fr.damage(pga, "C1", floors=[2, 5, 4, np.nan], design_levels=("pre", "moderate"))
print(dmg[["building_id", "design_level", "building_type", "p_complete", "dmg_status"]])

# Per-building levels from analyst-supplied, sourced tiers
levels = fr.design_level_from_year(
    [1975, 1995, 2012], tiers=((1980, "pre"), (2000, "low"), (math.inf, "moderate")))
dmg_own = fr.damage([0.4, 0.4, 0.4], "C1M", design_levels=levels)

References

  • FEMA (2024). Hazus 6.1 Earthquake Model Technical Manual. Federal Emergency Management Agency, Washington, DC. Section 5.4.3, Tables 5-1 and 5-37 to 5-40. https://www.fema.gov/flood-maps/tools-resources/flood-map-products/hazus/user-technical-manuals (US federal work, public domain; no DOI.)
  • Kircher, C. A., Nassar, A. A., Kustu, O., & Holmes, W. T. (1997). Development of building damage functions for earthquake loss estimation. Earthquake Spectra, 13(4), 663–682. doi:10.1193/1.1585974