Excitation signals as used in structural dynamics.
Project description
pyExSi - Excitation signals as used in structural dynamics and vibration fatigue
Supported excitation signals are:
pulse (e.g. half-sine)
random:
uniform random distribution
normal random distribution
pseudorandom distribution
random, defined by power spectral density (PSD):
stationary Gaussian
stationary non-Gaussian
non-stationary non-Gaussian random process
burst random
sine sweep
Simple example
A simple example on how to generate random signals on PSD basis:
import pyExSi as es
import numpy as np
N = 2**16 # number of data points of time signal
fs = 1024 # sampling frequency [Hz]
t = np.arange(0,N)/fs # time vector
# define frequency vector and one-sided flat-shaped PSD
M = N//2 + 1 # number of data points of frequency vector
f = np.arange(0, M, 1) * fs / N # frequency vector
f_min = 50 # PSD upper frequency limit [Hz]
f_max = 100 # PSD lower frequency limit [Hz]
PSD = es.get_psd(f, f_min, f_max) # one-sided flat-shaped PSD
#get gaussian stationary signal
gausian_signal = es.random_gaussian((N, PSD, fs)
#get non-gaussian non-stationary signal, with kurtosis k_u=10
#amplitude modulation, modulating signal defined by PSD
PSD_modulating = es.get_psd(f, f_low=1, f_high=10)
#define array of parameters delta_m and p
delta_m_list = np.arange(.1,2.1,.5)
p_list = np.arange(.1,2.1,.5)
#get signal
nongaussian_nonstationary_signal = es.nonstationary_signal(N,PSD,fs,k_u=5,modulating_signal=('PSD', PSD_modulating),param1_list=p_list,param2_list=delta_m_list)
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
pyExSi-0.1.tar.gz
(9.6 kB
view details)
Built Distribution
pyExSi-0.1-py3-none-any.whl
(9.8 kB
view details)
File details
Details for the file pyExSi-0.1.tar.gz
.
File metadata
- Download URL: pyExSi-0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91bb3d585a8b0512d44d8cdf3f5d7d30120b25da4eba5c93d6315961318e4932 |
|
MD5 | 723ba65c6e8827504c7d8eb81aa64865 |
|
BLAKE2b-256 | 9e371c89eb8d166cf09bfab73b0edae3f78bf518b476a18274ef0008d4465561 |
File details
Details for the file pyExSi-0.1-py3-none-any.whl
.
File metadata
- Download URL: pyExSi-0.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1bb8255ab6df21f4c6a8435387d78f69dc3788e8c039325d158c9fa94a84e36 |
|
MD5 | 29a94e3cdced7a4c787667ebb6b1c330 |
|
BLAKE2b-256 | 1e487fd38ba56794029634945c028b0b92d76a57c399d06f8afa986405dac4af |