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
Release history Release notifications | RSS feed
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.10.tar.gz
(27.3 kB
view details)
Built Distribution
File details
Details for the file earthquakepy-0.3.10.tar.gz
.
File metadata
- Download URL: earthquakepy-0.3.10.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dee44bed0cb2ab37958f9aa1139470e538ea0c7f67b19cb29f2edb41e0afc6ea |
|
MD5 | 18036fd5a6c358fddec0ae3bbd5d874d |
|
BLAKE2b-256 | 97ab7031ec9380fb00c2c31de69b95c475b2bd4bdd95d54b7ce013817dd31e7b |
File details
Details for the file earthquakepy-0.3.10-py3-none-any.whl
.
File metadata
- Download URL: earthquakepy-0.3.10-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b43a7f1ee97e364f628adfcd9301f6db72e91bc3be0575881771ff3b6b8d1006 |
|
MD5 | 0aca7608cd49935cb6ebe98884dc973c |
|
BLAKE2b-256 | 34b6b1c9fb2a8b5456db0545d4a780843223ef81e07ccb22c2225816bd61565f |