Skip to main content

Lightning-fast integration of single degree-of-freedom systems.

Project description

sdof

SDOF logo

Lightning-fast integration of single degree-of-freedom systems.


Latest PyPI version NPM version


This package solves scalar differential equations of the form

$$ m \ddot{u} + c \dot{u} + k u = f(t) $$

Integration is carried out using a Generalized - $\alpha$ integrator that is implemented under the hood in highly optimized multi-threaded C code.

Generalized - $\alpha$ is an implicit method that allows for high frequency energy dissipation and second order accuracy. With the right selection of parameters, the method can be specialized to the Hibert-Hughes-Taylor (HHT), or Newmark families of integration schemes.


Python API

import numpy as np
from sdof import integrate, peaks, spectrum

k  = 10.0
c  = 0.1592
m  = 0.2533
f  = np.sin(np.linspace(0, 5*np.pi, 100))
dt = 5*np.pi/100


u, v, a = integrate(f, dt, k, c, m)

D, V, A = spectrum(f, dt, periods=(0.02, 3.0, 100), damping=[0.02, 0.05])

See Also

Support

PEER Logo Caltrans Logo BRACE2 Logo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

sdof-0.0.10-pp39-pypy39_pp73-win_amd64.whl (31.3 kB view hashes)

Uploaded PyPy Windows x86-64

sdof-0.0.10-pp38-pypy38_pp73-win_amd64.whl (31.3 kB view hashes)

Uploaded PyPy Windows x86-64

sdof-0.0.10-pp37-pypy37_pp73-win_amd64.whl (31.3 kB view hashes)

Uploaded PyPy Windows x86-64

sdof-0.0.10-cp311-cp311-win_amd64.whl (31.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

sdof-0.0.10-cp311-cp311-win32.whl (40.8 kB view hashes)

Uploaded CPython 3.11 Windows x86

sdof-0.0.10-cp310-cp310-win_amd64.whl (31.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

sdof-0.0.10-cp310-cp310-win32.whl (40.8 kB view hashes)

Uploaded CPython 3.10 Windows x86

sdof-0.0.10-cp39-cp39-win_amd64.whl (31.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

sdof-0.0.10-cp39-cp39-win32.whl (40.8 kB view hashes)

Uploaded CPython 3.9 Windows x86

sdof-0.0.10-cp38-cp38-win_amd64.whl (31.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

sdof-0.0.10-cp38-cp38-win32.whl (40.8 kB view hashes)

Uploaded CPython 3.8 Windows x86

sdof-0.0.10-cp37-cp37m-win_amd64.whl (31.2 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

sdof-0.0.10-cp37-cp37m-win32.whl (40.8 kB view hashes)

Uploaded CPython 3.7m Windows x86

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page