Penghui0616 / responseSpect

acceleration,velocity and displacement response spectra calculation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

responseSpect

acceleration,velocity and displacement response spectra calculation

After installation through python script, then go to python site-package, and find the responseSpect module. Copy responseSpect.dll to your working directory.

The followings are the basic example of using responseSpect.

from responseSpect import responseSpectMain
import numpy as np
dt=0.02 #time interval (s)
acc=np.loadtxt("acc.txt") #one column acceleration time history (g)
beta=0.05 #damping ratio
T=[1,2,3,4,5] # periods list
sa,sv,sd=responseSpectMain.SaSvSd(acc,dt,T,beta)   

About

acceleration,velocity and displacement response spectra calculation

License:MIT License


Languages

Language:C++ 51.6%Language:Python 38.3%Language:C 10.1%