pyRVT Documentation¶
A Python library and command-line application for using random vibration theory to transform between acceleration Fourier amplitude spectrum and acceleration response spectrum.
pyRVT provides random vibration theory (RVT) models for use in earthquake ground motion models. It provides multiple peak factor models in a common framework such that they can be compared and tested. Additionally, it provides an interface to define RVT based ground motion models through specification of the Fourier amplitude spectrum, acceleration response spectrum, or calculated by seismological models.
New to pyRVT? Start here for installation and basic usage.
Learn how to use pyRVT for your projects with tutorials and examples.
Complete API documentation for all modules and functions.
Contributing guidelines and development information.
Quick Start¶
Install pyRVT with pip:
$ python -m pip install pyrvt
Basic usage:
import pyrvt
import numpy as np
# Define frequency and Fourier amplitude spectrum
freqs = np.logspace(-1, 2, 100)
fourier_amps = np.ones_like(freqs)
duration = 10.0
# Create motion and calculate response spectrum
motion = pyrvt.motions.RvtMotion(freqs, fourier_amps, duration)
osc_freqs = np.logspace(-1, 1.5, 50)
resp_spec = motion.calc_osc_accels(osc_freqs, damping=0.05)