pyGMM: Ground Motion Models in PythonΒΆ
Get up and running with pyGMM in minutes. Install the package and run your first ground motion calculation.
How the scenario, the models and their outputs fit together.
The ground-motion models, and how to find them by what they predict.
Detailed documentation of all classes, functions, and modules in pyGMM.
What is pyGMM?
pyGMM is a Python library for evaluating published empirical models: ground-motion models, Fourier amplitude spectrum models, soil curves, velocity profiles and slope-displacement models. The models share an interface, so they can be compared and used as input to site response and random vibration theory calculations.
FeaturesΒΆ
π― Unified Interface
Consistent API across all ground motion models for easy comparison and analysis.
π Multiple Models
Support for dozens of published ground motion prediction equations.
π§ Easy Integration
Simple installation and integration with existing Python workflows.
Getting StartedΒΆ
Install pyGMM using pip:
pip install pygmm
Quick example:
import pygmm
scenario = pygmm.Scenario(
mag=6.5, dist_rup=20.0, dist_jb=20.0, dist_x=20.0, dip=90.0,
mechanism="SS", v_s30=760.0,
)
model = pygmm.ChiouYoungs2014(scenario)
model.periods, model.spec_accels, model.ln_stds