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
freq = np.arange(0, M, 1) * fs / N # frequency vector
freq_lower = 50 # PSD lower frequency limit [Hz]
freq_upper = 100 # PSD upper frequency limit [Hz]
PSD = es.get_psd(freq, freq_lower, freq_upper) # 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(freq, freq_lower=1, freq_upper=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.41.tar.gz
(10.0 kB
view details)
Built Distribution
pyExSi-0.41-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file pyExSi-0.41.tar.gz
.
File metadata
- Download URL: pyExSi-0.41.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 580e2f221efd8269d7ba1a7c34f544ce13e8588e757dddc5a8d408c27fe44b45 |
|
MD5 | 587d571cd9d355cab80e6303c3a3ce2a |
|
BLAKE2b-256 | 78c034c5b195df2b4cc3ae77920e91598b76d0149e2e022ffc02974720ecdc5e |
File details
Details for the file pyExSi-0.41-py3-none-any.whl
.
File metadata
- Download URL: pyExSi-0.41-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e7ee48205df96fa28b679f94e95dacc83e4dc02fefc565d1b7d07ecbca58c3f |
|
MD5 | 664fddf5a97da7a692955c8574ef60f9 |
|
BLAKE2b-256 | 5a76f4f85783703a4b52e8a1972603b4d18cab028bafd881563bfe715a1d4b69 |