Skip to content

lifelines

Buried pipeline repairs from PGV.

quakecascade.lifelines

Buried pipeline damage from peak ground velocity (Hazus wave-propagation model).

Repair rate for brittle pipe from seismic wave propagation (Hazus 6.1 Earthquake Model Technical Manual, FEMA 2024, pipeline damage algorithms, after O'Rourke & Ayala, 1993):

\[ RR = 0.0001 \cdot PGV^{2.25} \quad \text{repairs/km}, \; PGV \text{ in cm/s} \]

Ductile pipe takes 0.3 times the brittle rate. Hazus splits wave-propagation repairs into 80 % leaks and 20 % breaks. Pipe of unknown material is never scored as zero and never guessed: its repairs are reported as a range from "all ductile" (low) to "all brittle" (high).

Ground-failure (permanent ground deformation) damage is not modelled here: it needs PGD, which a ground-motion scenario does not provide.

RR_COEFFICIENT module-attribute

RR_COEFFICIENT = 0.0001

Brittle-pipe repair-rate coefficient (repairs/km per (cm/s)^2.25). Hazus 6.1 Earthquake Model Technical Manual (FEMA 2024), potable-water pipeline damage algorithms (wave propagation), after O'Rourke & Ayala (1993).

RR_EXPONENT module-attribute

RR_EXPONENT = 2.25

Exponent on PGV (cm/s); same source.

HAZUS_DUCTILE_FACTOR module-attribute

HAZUS_DUCTILE_FACTOR = 0.3

Ductile-pipe multiplier on the brittle repair rate; same source.

HAZUS_PGV_LEAK_SHARE module-attribute

HAZUS_PGV_LEAK_SHARE = 0.8

Share of wave-propagation (PGV) repairs that are leaks; the rest are breaks. Hazus 6.1 Earthquake Model Technical Manual (FEMA 2024), pipeline damage states (wave propagation: 80 % leaks / 20 % breaks; ground failure: 20 % / 80 %).

MATERIAL_CLASSES module-attribute

MATERIAL_CLASSES = ('ductile', 'brittle', 'unknown')

Pipe material classes accepted in the material column.

pipeline_repair_rate

pipeline_repair_rate(pgv_cms)

Hazus wave-propagation repair rate for brittle pipe, repairs per km.

RR = 0.0001 * PGV**2.25 with PGV in cm/s (Hazus 6.1 Earthquake Model Technical Manual, FEMA 2024, after O'Rourke & Ayala, 1993, doi:10.1061/(ASCE)0733-9410(1993)119:9(1490)). Multiply by HAZUS_DUCTILE_FACTOR for ductile pipe. NaN stays NaN; negative PGV raises.

material_class

material_class(codes, ductile, brittle)

Map material codes to ductile / brittle / unknown.

The code lists are the caller's (inventories use local codes). Matching is case- and whitespace-insensitive; anything in neither list, including missing values, is unknown. Hazus lists ductile iron, steel and PVC as ductile and cast iron, asbestos cement and concrete as brittle; any other material (polyethylene, for example) is the caller's call.

length_by_class

length_by_class(frame, length_km, mclass, by=None)

Pivot segment lengths into ductile / brittle / unknown km columns.

by groups the segments (e.g. a grid-cell id); without it one row is returned. A segment without a usable length (NaN, infinite or negative) cannot be scored and is never counted as 0 km: it is left out of the km columns and counted in segments_without_length, which repairs turns into a partial (or no_length) status. A segment whose by key is missing belongs to no group; such segments are dropped and counted in attrs["segments_without_group"].

repairs

repairs(
    length_km,
    pgv_cms,
    ductile_factor=HAZUS_DUCTILE_FACTOR,
    leak_share=HAZUS_PGV_LEAK_SHARE,
)

Expected pipe repairs per unit (e.g. grid cell) with an unknown-material range.

\[ \begin{aligned} R_{low} &= RR\,(L_b + f_d L_d + f_d L_u) \\ R_{high} &= RR\,(L_b + f_d L_d + L_u) \\ R &= (R_{low} + R_{high}) / 2 \end{aligned} \]

with brittle repair rate \(RR\) (pipeline_repair_rate), lengths \(L_b, L_d, L_u\) (km) of brittle, ductile and unknown pipe and ductile factor \(f_d\).

Parameters:

Name Type Description Default
length_km mapping or DataFrame

{"ductile": km, "brittle": km, "unknown": km} (scalars or arrays; absent classes count as 0 km), or a frame with those columns, e.g. from length_by_class; other columns are carried through.

required
pgv_cms scalar or array - like

PGV (cm/s) per unit, broadcast against the lengths. NaN -> no_pgv.

required
ductile_factor float

Ductile multiplier, default 0.3 (Hazus 6.1 Earthquake Model Technical Manual, FEMA 2024, pipeline damage algorithms).

HAZUS_DUCTILE_FACTOR
leak_share float

Leak share of PGV repairs, default 0.8 (Hazus: wave propagation gives 80 % leaks, 20 % breaks).

HAZUS_PGV_LEAK_SHARE

Returns:

Type Description
DataFrame

km_ductile, km_brittle, km_unknown, km_total, pgv_cms, repair_rate_per_km (brittle), repairs_low, repairs_high, repairs (mid-range), leaks, breaks (split of the mid-range value) and repair_status: computed; partial when some pipe has unknown material (the low–high range is then wider than zero) or some segments have no length (a segments_without_length column from length_by_class; the values are lower bounds); no_pgv (NaN); no_length (NaN) when the unit's only pipe has no length; empty when the unit holds no pipe (a true 0, whatever the PGV).