10. Demos
The repository ships with a set of Jupyter notebooks under the
demos/
folder that walk through the typical oq-vmtk workflow end-to-end. Each
notebook is self-contained: it lists the modules it uses, loads its own input
files, and saves outputs to its own out/ directory.
10.1. Launching JupyterLab
JupyterLab is pulled in as a transitive dependency when oq-vmtk is
installed, so you do not need to install it separately. From the project root
with the virtual environment activated:
# On Windows
.venv\Scripts\activate
# On Linux/macOS
source .venv/bin/activate
jupyter-lab
Then navigate to the demos/ directory in the JupyterLab file browser and
open the notebook of interest.
10.2. Available Demos
Notebook |
What it shows |
|---|---|
|
Compute response spectra and a wide range of intensity measures (PGA,
PGV, PGD, Sa, AvgSa, Arias intensity, CAV, significant duration, FIV3,
RotDxx) from raw acceleration records using the |
|
Compare candidate intensity measures using information-theoretic
sufficiency metrics from the |
|
Compile single- and multi-degree-of-freedom OpenSeesPy models from
low-level parameters; demonstrates the |
|
Run modal analysis on a compiled MDOF model and extract periods and mode shapes. |
|
Static and cyclic pushover on an MDOF stick model — base shear, interstorey drift, and energy dissipation. |
|
Nonlinear response-history analysis using ground-motion records, with postprocessing of peak storey drifts and floor accelerations. |
|
End-to-end cloud-analysis workflow producing fragility and vulnerability functions from MDOF response. |
|
Multiple-stripe analysis variant of the same end-to-end workflow. |
|
Incremental dynamic analysis (IDA) with collapse-fragility derivation. |
|
Multiple fragility-fitting approaches (lognormal CDF, GLM, ordinal), fragility rotation, and additional epistemic uncertainty. |
|
Generate Storey Loss Functions from a component inventory using the
|
|
Apply previously generated SLFs to derive nonstructural-component vulnerability functions. |
Each demo folder contains a short README.md describing the inputs,
outputs, and the modules being exercised.
10.3. Suggested Reading Order
For first-time users, we recommend the following order:
IntensityMeasureProcessing— get familiar with the IM types.ModelCompilation— build an MDOF stick model.NonlinearTimeHistoryAnalysis— run dynamic analysis.CloudAnalysis— full vulnerability workflow.StoreyLossFunctionGenerationandStoreyLossFunctionApplication— add component-level loss modelling.