Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Earthquake Modeling

Earthquake Modeling

The earthquake model can be imported using the following command. The earthquake model has been build using the following literature resources

Jeddi et al. (2022) Baghmisheh & Mahsuli (2021) FEMA (2020) Farahani et al. (2020) Kongar et al. (2017) Kongar et al. (2014) Cirone (2013) Atkinson & Wald (2007) Rajabzadeh & Kalantar (2022) Mo et al. (2017)

from IPython.display import display, HTML
import plotly.graph_objects as go
import plotly.io as pio

pio.renderers.default = "plotly_mimetype"

from erad.models.hazard import EarthQuakeModel
/opt/homebrew/Caskroom/miniconda/base/envs/erad/lib/python3.12/site-packages/kaleido/__init__.py:14: UserWarning:



Warning: You have Plotly version 6.0.1, which is not compatible with this version of Kaleido (1.0.0).

This means that static image generation (e.g. `fig.write_image()`) will not work.

Please upgrade Plotly to version 6.1.1 or greater, or downgrade Kaleido to version 0.2.1.


An instance of EarthQuakeModel requires four pieces of information,

  • timestamp: The timestamp the earthquake happened

  • origin: Epicenter of the earthquake in lat / long format

  • depth: Depth of the earthquake, beneth the surface of the earth

  • magnitude: Magnitude of the earthquake

from datetime import datetime

from gdm.quantities import Distance
from shapely.geometry import Point

earthquake = EarthQuakeModel(
    name="same name",
    timestamp=datetime.now(),
    origin=Point(-120, 36),
    depth=Distance(30, "km"),
    magnitude=6.2,
)
earthquake.pprint()
Loading...

An example of the EarthQuakeModel can be built using the example() methods for testing purposes.

earthquake = EarthQuakeModel.example()
earthquake.pprint()
Loading...

Building from historical events

Erad allows users to build earthquake models from historic earthquake events as well. The from_earthquake_code class method can be used to build earthquake models representing historic events.

earthquake = EarthQuakeModel.from_earthquake_code("ISCGEM851547")
earthquake.pprint()
Loading...

Plotting Earthquake Model

fig = go.Figure()
earthquake.plot(figure=fig)
fig.show()
Loading...
References
  1. Jeddi, A. B., Shafieezadeh, A., Hur, J., Ha, J.-G., Hahm, D., & Kim, M.-K. (2022). Multi-hazard typhoon and earthquake collapse fragility models for transmission towers: An active learning reliability approach using gradient boosting classifiers. Earthquake Engineering & Structural Dynamics, 51(15), 3552–3573.
  2. Baghmisheh, A. G., & Mahsuli, M. (2021). Seismic performance and fragility analysis of power distribution concrete poles. Soil Dynamics and Earthquake Engineering, 150, 106909.
  3. FEMA. (2020). Hazus Earthquake Model Technical Manual Hazus 4.2 SP3. Federal Emergency Management Agency Washington, DC.
  4. Farahani, S., Tahershamsi, A., & Behnam, B. (2020). Earthquake and post-earthquake vulnerability assessment of urban gas pipelines network. Natural Hazards, 101, 327–347.
  5. Kongar, I., Giovinazzi, S., & Rossetto, T. (2017). Seismic performance of buried electrical cables: evidence-based repair rates and fragility functions. Bulletin of Earthquake Engineering, 15, 3151–3181.
  6. Kongar, I., Rossetto, T., & Giovinazzi, S. (2014). Seismic fragility of underground electrical cables in the 2010 - 11 Canterbury (NZ) earthquakes. Second European Conference on Earthquake Engineering & Seismology, Istanbul.
  7. Cirone, P. (2013). Valutazione speditiva di sicurezza sismica degli edifici esistenti. D. Flaccovio.
  8. Atkinson, G. M., & Wald, D. J. (2007). “Did You Feel It?” intensity data: A surprisingly good measure of earthquake ground motion. Seismological Research Letters, 78(3), 362–368.
  9. Rajabzadeh, M., & Kalantar, M. (2022). Improving the resilience of distribution network in coming across seismic damage using mobile battery energy storage system. Journal of Energy Storage, 52, 104891.
  10. Mo, R., Kang, H., Li, M., & Zhao, X. (2017). Seismic fragility analysis of monopile offshore wind turbines under different operational conditions. Energies, 10(7), 1037.