Skip to main content

python library for earthquake engineers.

Project description

earthquakepy

A python library for earthquake engineers and seismologists.

Installation

earthquakepy can be installed using pip. It’s an absolute breeze. Try it!

pip install earthquakepy

Thats it! This will install the earthquakepy and other required libraries. Wasn’t that easy?

Import and use

Probably you know how to import the library. Let me just remind you.

import earthquakepy as ep

Getting started

  • Read a PEER NGA record from file
ts1 = ep.read_peer_nga_file(filename)
  • Read a raw file containing timeseries data
ts2 = ep.read_raw_timeseries_file(filename)
  • Build a SDOF system object to carry out some magic later!
s1 = ep.sdof(T=1.0, xi=0.05)
  • Get response of above SDOF system subjected to base excitation ts2
s1.get_response(ts2)
  • Build a MDOF system object
import numpy as np

M = np.random.rand(3, 3)
C = np.random.rand(3, 3)
K = np.random.rand(3, 3)

m1 = ep.mdof(M=M, C=C, K=K)
  • Read OpenSees node output file
o1 = ep.read_ops_node_output(filename, 3, compNames=["x", "y", "z"])  # 3 : ncomps = number of components per node
  • Read OpenSees element output file
o2 = ep.read_ops_element_output(filename, 3, compNames=["x", "y", "z"])  # 3 : ncomps = number of components per element
  • Read OpenSees JSON model file
model = ep.read_ops_json_model(jsonFile)

Each object generated above has its own methods which are given in detail in the documentation. Please click on this link to view it.

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

earthquakepy-0.3.8.tar.gz (27.3 kB view hashes)

Uploaded Source

Built Distribution

earthquakepy-0.3.8-py3-none-any.whl (29.9 kB view hashes)

Uploaded Python 3

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