PyFRF
Frequency response function as used in structural dynamics
Install / Use
/learn @ladisk/PyFRFREADME
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:
.. code:: python
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_type='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:
.. code:: python
a.add_data(exc, resp)
Computing FRF:
~~~~~~~~~~~~~~
Preferable way to get the frequency response functions is via ``get_FRF()`` method:
.. code:: python
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()``:
.. code:: python
H1 = a.get_H1()
H2 = a.get_H2()
Hv = a.get_Hv()
ods_frf = a.get_ods_frf()
.. _documentation: https://pyfrf.readthedocs.io/en/latest/
|pytest|
|binder| to test the *Showcase.ipynb*.
.. |binder| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/ladisk/pyFRF/main
.. |pytest| image:: https://github.com/ladisk/pyFRF/actions/workflows/python-package.yml/badge.svg
:target: https://github.com/ladisk/pyFRF/actions
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
