tcra.recovery package

Submodules

tcra.recovery.recovery module

These tcra rep, rep_EPN, recovery_monte_carlo_simulation functions calculate estimated repair times and Monte Carlo simulation for recovery process.

recovery_monte_carlo_simulation(data, num_simulations)[source]

this function simulate Monte Carlo process of recovery of buildings given damage level.

Parameters:
  • data – building invetory with damage states and occupancy type

  • num_simulations – number of simulaitons.

  • dmg – building damage state

  • Occupancy – building occupancy type based on HAZUS classification

Returns:

  • tt – recovery time in days

  • all_simulations – recovery time from all Monte Carlo sampling

  • mean_simulation – mean recovery time from all sampling

  • min_simulation – minimum recovery time from all sampling

  • max_simulation – maximum recovery time from all sampling

rep(data)[source]

this function estimates repair time (days) given damage level of buildings. params need to adjusted for local building types. 0: none, 1: slight, 2: moderate, 3: extensive, 4: complete

Parameters:
  • data – building invetory with damage states and occupancy type

  • dmg – building damage state

  • Occupancy – building occupancy type based on HAZUS classification

Returns:

recovery time

Return type:

recovery

rep_EPN(data)[source]

this function estimates repair time (days) for damage electrical poles. parameters need to be adjusted as required. 0: non failure, 1: failure

Parameters:
  • data – epn invetory

  • dmg_pole – electrical pole damage state

  • params – a dictionary provides expected recovery time for recovery time for damaged electrical poles.

Returns:

recovery time in days

Return type:

recovery

Module contents