Performance-Based Earthquake Engineering toolkit
Project description
PyPBEE — Performance-Based Earthquake Engineering in Python
A modular, high-performance framework that lets researchers and engineers run the full Performance-Based Earthquake Engineering (PBEE) workflow — from site‑specific seismic‑hazard curves to demand, damage and (soon) loss metrics — entirely in Python.
Key Capabilities
- End‑to‑end PBEE pipeline
Probabilistic Seismic Hazard Analysis (PSHA), Ground‑Motion Selection (GMS), Non‑linear Time‑History Analysis (NLTHA), Probabilistic Seismic Demand Hazard Analysis (PSDemHA) and Probabilistic Seismic Damage Hazard Analysis (PSDamHA). - Object‑oriented core, plug‑and‑play extensions
Clean template‑method lifecycle (setup → run → wrap_up) and abstract entity classes (IM,EDP,DS,Structure) make it straightforward to add new intensity measures, demand parameters, fragilities, or analysis stages. - Advanced Uncertainty Quantification
Treat aleatory and epistemic sources (random FE parameters, parameter‑estimation uncertainty, model‑form alternatives) withMultivariateNataf,Mixture, Latin‑Hypercube sampling, etc. - Finite‑element back‑ends out of the box
Adapters for OpenSeesTcl and OpenSeesPy; extendable to Abaqus, Ansys, … - Scales from laptop to cluster
Local multi‑processing via pathos or embarrassingly‑parallel Slurm jobs on HPC/HTC systems with a one‑linecomp_envswitch. - Built‑in visualisation
Hazard curves, conditional spectra, demand / damage hazard surfaces, deaggregation plots — all ready for publication.
Installation
# clone the repo
git clone https://github.com/angshuman311/PyPBEE.git
cd PyPBEE
# Windows users can run the helper script
setup_venv.bat # Windows CMD / double‑click
⚠️ PyPBEE is research software; pinned dependency versions are in
requirements.txt.
Quick‑start
from pypbee.structures import OSB # Ordinary Standard Bridge
from pypbee.intensity import AvgSa
from pypbee.edp import MaxColRebarStrain
from pypbee.analysis import PrelimAnalysis, PSHA, GMS, NLTHA, PSDemHA, PSDamHA
# 1 ── define model‐space & site info ------------------------------------------------
model_params = {...} # dict of deterministic design vars
random_params = {...} # dict of {param: (dist, mean, std, ...)}
corr_matrix = [...] # numpy array
location_info = {"lat": 37.7531, "lon": -121.1427, "region": "California"}
# 2 ── create entities ---------------------------------------------------------------
bridge = OSB(model_params, random_params, corr_matrix, location_info)
im = AvgSa(bridge)
edp_list = [MaxColRebarStrain(bridge, tag='col_rebar_strain')]
# 3 ── assemble analyses -------------------------------------------------------------
pre = PrelimAnalysis(bridge)
psha = PSHA(im)
gms = GMS(im)
nltha = NLTHA(im, edp_list)
psdemha = PSDemHA(edp_list, im)
psdamha = PSDamHA([], im) # add DS objects when available
# 4 ── run workflow ------------------------------------------------------------------
for a in (pre, psha, gms, nltha, psdemha, psdamha):
a.setup()
a.run()
a.wrap_up()
Full, commented examples live in examples/.
Contributing
- Fork the repo and create a feature branch.
- Open a pull request; describe why your change matters.
- Bug reports and feature requests are equally welcome — open a GitHub issue.
Acknowledgements
Development supported by Caltrans (65A0594, Task 2880), PEER Transportation Systems Research Program (Project #1147‑NCTRTE), and the Reissner Chair, UC San Diego. HPC tests used TACC resources.
License
This project is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypbee-0.1.0.tar.gz.
File metadata
- Download URL: pypbee-0.1.0.tar.gz
- Upload date:
- Size: 85.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1b8285f5df9bc9e12739f3ccebec9c724b039c4d6e31e2805a6ad0f22e32ab6
|
|
| MD5 |
3d8679e8e304bd58086e79751f2e7e5f
|
|
| BLAKE2b-256 |
546a2e33064e404644255da37d59f2ff8368af1913bc0beca239fe6b19501323
|
File details
Details for the file pypbee-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pypbee-0.1.0-py3-none-any.whl
- Upload date:
- Size: 96.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d1d59fec5cae3c362d38405dd4f3f7f6f9bce8d7ef62c62d87c8cdb2037ba38
|
|
| MD5 |
79de3586048fbacbfa482f448c626028
|
|
| BLAKE2b-256 |
8079022f4a54aded3514305c0ce55c26cf294201b25f58e38933a7ffa500427e
|