Skip to content

A repository for modelling and analysing multi-degree-of-freedom systems for response characterisation of global building classes

License

Notifications You must be signed in to change notification settings

GEMScienceTools/oq-vmtk

Repository files navigation

Contributors Forks Stargazers Issues project_license


Logo

Vulnerability Toolkit

This repository contains an open source library that provides modelling of multi-degree-of-freedom systems and assessment via nonlinear time-history analyses for regional vulnerability and risk calculations. The vulnerability toolkit is developed by the Global Earthquake Model (GEM) Foundation and its collaborators.
Explore the docs »

View Demos · Report Bug · Request Feature

🛠️ Features

  • Modelling of Multi-Degree-of-Freedom Oscillators in OpenSees: Model single- and multi-degree-of-freedom system using low-level information (e.g., number of storeys, first-mode transformation factor, SDoF- or storey-based force-deformation relationships);
  • Linear and Nonlinear Analysis in OpenSees:
    • Modal Analysis: Estimate Periods of Vibration and Modal Shapes;
    • Gravity Analysis
    • Nonlinear Static Analysis: Perform Static and Cyclic Pushover Analyses to Characterise the Lateral Load-Resisting Response of the System;
    • Dynamic Analysis: Perform Nonlinear Time-History Analyses using Selected Ground-Motion Records;
  • Fragility Analysis: Calculate Median Seismic Intensities and Total Associated Dispersion (i.e., Record-to-Record Variability and Modelling Uncertainty):
    • Regression Analysis following Cloud Analysis Method to Characterise EDP|IM Relationship and Calculate Exceedance Probabilities of Damage;
  • Vulnerability Analysis: Calculate Vulnerability Functions to Estimate Decision-Variables (Economic- and Human-Based) Conditioned on Ground-Shaking Intensity using Consequence Models (Damage-to-Loss Ratios)
  • Plotting: Plot Analysis Outputs
    • Model Overview: OpenSees Model (Nodes and Elements)
    • Cloud Analysis Results and Fitted IM|EDP Relationship
    • Seismic Demand Profiles: Distribution of Peak Storey Drifts and Peak Floor Accelerations
    • Fragility Functions
    • Vulnerability Functions

👩‍💻🧑‍💻 Installation

Follow these steps to install the required tools and set up the development environment. Note that this procedure implies the installation of the OpenQuake engine dependencies. This procedure was tested on Windows and Linux OS. It is highly recommended to use a virtual environment to install this tool. A virtual environment is an isolated Python environment that allows you to manage dependencies for this project separately from your system’s Python installation. This ensures that the required dependencies for the OpenQuake engine do not interfere with other Python projects or system packages, which could lead to version conflicts.

  1. Open a terminal and navigate to the folder where you intend to install the virtual environment using the "cd" command.
 cd <virtual_environment_directory>
  1. Create a virtual environment using the following command:
 python3 -m venv <virtual_environment_name>
  1. Activate the virtual environment:
  • On Linux:

     source <virtual_environment_directory>/bin/activate
  • On Windows:

     <virtual_environment_directory>\Scripts\Activate.ps1
  1. Enter (while on virtual environment) the preferred directory for "oq-vmtk" using the "cd" command
 cd <preferred_directory>
  1. Clone the "oq-vmtk" repository
git clone https://github.com/GEMScienceTools/oq-vmtk.git
  1. Complete the development installation by running the following commands depending on your python version {py-version} (e.g., 310, 311 or 312):
  • On Linux

    pip install -r requirements-py-linux.txt
    pip install -e .
  • On Windows

    pip install -r requirements-py-win64.txt
    pip install -e .

📚 Documentation

[WIP]

📼 Demos

The repository includes demo scripts that showcase the functionality of the vulnerability-modellers-toolkit (oq-vmtk). You can find them in the demos folder of the repository.

To run a demo, simply navigate to the demos directory and execute the relevant demo script in Jupyter Lab. Jupyter Lab is automatically installed with oq-vmtk.

  1. Open a terminal and activate the virtual environment:
  • On Linux:

     source <virtual_environment_directory>/bin/activate
  • On Windows:

     <virtual_environment_directory>\Scripts\Activate.ps1
  • To deactivate virtual environment:

     deactivate
  1. Open Jupyter Lab from the terminal:
 jupyter-lab
  1. Navigate to the "demos" folder
  2. Run the examples

🌟 Contributors

Contributors are gratefully acknowledged and listed in CONTRIBUTORS.txt.

contrib.rocks image

(back to top)

© License

This work is licensed under an AGPL v3 license (https://www.gnu.org/licenses/agpl-3.0.en.html)

License: AGPL v3

🤔 Frequently asked questions

How to contribute?

You can follow the instructions indicated in the contributing guidelines

📑 References

[WIP]

About

A repository for modelling and analysing multi-degree-of-freedom systems for response characterisation of global building classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages