Skip to main content

Rotated response spectrum calculation implemented in Python.

Project description

PyPi Cheese Shop Build Status Documentation Status Test Coverage License https://zenodo.org/badge/2800441.svg

Acceleration response spectrum calculations implemented in Python.

Introduction

Simple Python functions for calculating psuedo-spectral acceleration and rotated psuedo-spectral acceleration. The response of the single-degree-of-freedom oscillator is computed in the frequency domain along with frequency-domain interpolation to accurately capture the high-frequency characteristics.

The calculation of the response spectrum is performed using frequency domain transfer functions, as well as frequency domain interpolation methods to insure that the time step of the motions is greater than 10 times the natural frequency of the oscillator frequency. Two perpendicular ground motions can be rotated to compute the response at various percentiles. For example, the minimum, median, and maximum could be computed using percentiles of 0, 50, and 100. The orientation of both the minimum and maximum percentile are provided, but not orientation is provided for other percentiles because the rotate spectral acceleration is not monotonically increasing.

Installation

pyrotd is available from the Python Cheese Shop:

pip install pyrotd

Example

Spectral accelerations may be computed for a single time series:

osc_damping = 0.05
osc_freqs = np.logspace(-1, 2, 91)
spec_accels = pyrotd.calc_spec_accels(
    time_step, accels, osc_freqs, osc_damping)

Rotated spectral accelerations may be computed for a pair of time series:

rot_osc_resps = pyrotd.calc_rotated_spec_accels(
    time_step, accels_a, accels_b, osc_freqs, osc_damping)

A more detailed example is in this Jupyter Notebook.

History

0.5.4 (2018-07-27)

  • Added MANIFEST.in

0.5.3 (2018-07-27)

  • Fix packaging issues

0.5.2 (2018-03-26)

  • Bump version for PyPi conflict

0.5.1 (2018-03-23)

  • Added tests/ directory

  • Added support for computing: SA, PSV, SV, and SD.

0.5.0 (2017-06-15)

  • Added support for Python 2.7

  • Added support for multiprocessing

  • Changed from using setup.cfg for metadata.

0.4.6 (2017-04-19)

  • Changed to use setup.cfg

  • Incremented version several times due to issues releasing.

0.4.1 (2017-04-11)

  • Fix release via Travis.

0.4.0 (2017-04-06)

  • Changed to return numpy.recarrays

0.3.0 (2017-04-05)

  • Added example

  • Added support for typing

0.2.0 (2017-02-20)

  • Changed from camelCase to underscores

  • Added PEER NGA West2 test cases

  • Fixed: numpy.array creation

0.1.0 (2016-03-04)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrotd-0.5.4.tar.gz (7.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page