The sdypy-FRF is a namespace project of the sdypy framework and is a direct link
to the pyFRF package (developed at pyFRF).
Use the sdypy package to conveniently access the functionality of the
pyFRF package through its namespace (see example below).
Other functionalities of the sdypy framework include:
- sdypy-EMA: Experimental Modal Analysis
- sdypy-io: Input/Output operations (LVM files, UFF files)
- sdypy-excitation: Excitation signals as used in structural dynamics and vibration fatigue
For more information check out the showcase examples and see documentation.
from sdypy import FRFa = FRF.FRF(
sampling_freq,
exc=None,
resp=None,
exc_type='f', resp_type='a',
window='none',
weighting='linear',
fft_len=None,
nperseg=None,
noverlap=None,
archive_time_data=False,
frf_type='H1',
copy=True
)We can add the excitation and response data at the beginning through exc and resp arguments, otherwise, the excitation and response
data can be added later via add_data() method:
a.add_data(exc, resp)The preferable way to get the frequency response functions is via get_FRF() method:
frf = a.get_FRF(type="default", form="receptance")We can also directly get the requested FRF via other methods: get_H1(), get_H2(), get_Hv() and, get_ods_frf():
H1 = a.get_H1()
H2 = a.get_H2()
Hv = a.get_Hv()
ods_frf = a.get_ods_frf()