Metadata-Version: 2.5
Name: pyLump
Version: 0.2.0
Summary: Multi Degree of Freedom (mass-spring-damper) Models.
Project-URL: homepage, https://github.com/ladisk/pyLump
Project-URL: documentation, https://pyLump.readthedocs.io/en/latest/
Project-URL: source, https://github.com/ladisk/pyLump
Author-email: "Luka Novak, Domen Gorjup, Janko Slavič" <janko.slavic@fs.uni-lj.si>
Maintainer-email: "Luka Novak, Domen Gorjup, Janko Slavič" <janko.slavic@fs.uni-lj.si>
License-Expression: MIT
Keywords: MDOF,dynamics,lumped mass
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.13
Requires-Dist: matplotlib
Requires-Dist: numpy>=1.11.0
Requires-Dist: py
Requires-Dist: pytest
Requires-Dist: scipy>=1.2.0
Provides-Extra: dev
Requires-Dist: jupyter; extra == 'dev'
Requires-Dist: nbconvert; extra == 'dev'
Requires-Dist: nbsphinx; extra == 'dev'
Requires-Dist: nbsphinx-link; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: sphinx; extra == 'dev'
Requires-Dist: sphinx-book-theme; extra == 'dev'
Requires-Dist: sphinx-rtd-theme; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Requires-Dist: wheel; extra == 'dev'
Description-Content-Type: text/x-rst

pyLump
======

Multi Degree of Freedom (mass-spring-damper) Models.
----------------------------------------------------
For more information check out the showcase examples and see documentation_.

Basic ``pyLump`` usage:
--------------------------

Make an instance of the ``Model`` class:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: python

    a = pyLump.Model(
        n_dof,
        mass,
        stiffness,
        damping,
        boundaries="both"
    )

Getting system properties:
~~~~~~~~~~~~~~~~~~~~~~~~~~
There are several methods available for different system properties:

.. code:: python

    M = a.get_mass_matrix()
    K = a.get_stiffness_matrix()
    C = a.get_damping_matrix()
    eig_freq = a.get_eig_freq()
    eig_val = a.get_eig_val()
    eig_vec = a.get_eig_vec()
    d_ratios = a.get_damping_ratios()

Obtaining frequency response functions and impulse response functions:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To obtain the FRF (frequency response function) matrix and the IRF (impulse reponse function) matrix we use the following methods:

.. code:: python

    FRF_matrix = a.get_FRF_matrix(freq)
    IRF_matrix = a.get_IRF_matrix(freq)

Calculating response:
~~~~~~~~~~~~~~~~~~~~~
We can calculate the systems response based on known excitation the following way:

.. code:: python

    response = a.get_response(
        exc_dof,
        exc,
        sampling_rate,
        resp_dof
    )

.. _documentation: https://pyLump.readthedocs.io/en/latest/