Skip to content
ladiskPublic

About

Frequency response function as used in structural dynamics

Resources

Stars

50 stars

Watchers

8 watching

Forks

Repository files navigation

pyFRF

Frequency response function as used in structural dynamics.

For more information check out the showcase examples and see documentation.

Basic pyFRF usage:

Make an instance of FRF class:

a = pyFRF.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_estimator='H1',
    copy=True
)

Adding data:

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)

Computing FRF:

Preferable way to get the frequency response functions is via get_FRF() method:

frf = a.get_FRF(frf_estimator="default", frf_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()

Changes in 1.5.0:

The FRF constructor keyword frf_estimator and the get_FRF() keywords frf_estimator/frf_form are available since 1.5.0. The old names (frf_type on the constructor, and type/form on get_FRF()) still work but raise a DeprecationWarning.

pytest

binder to test the Showcase.ipynb.

About

Frequency response function as used in structural dynamics

Resources

Stars

50 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages