A causal block diagram representation of a spring mass damper system.

Joeri Exelmans 10ff526217 Merge remote-tracking branch 'origin/master' %!s(int64=2) %!d(string=hai) anos
damper 605bb3817b Update CBD diagram: added annotations to signals and added mass parameter %!s(int64=2) %!d(string=hai) anos
docs 00708161b7 Add diagrams docs title %!s(int64=2) %!d(string=hai) anos
.editorconfig 05080826cc Fix editor config %!s(int64=2) %!d(string=hai) anos
.gitignore 4e0133a7ab Copy diagram files before building docs %!s(int64=2) %!d(string=hai) anos
.gitlab-ci.yml 15d435080f Bypass relative path error in ci %!s(int64=2) %!d(string=hai) anos
README.md 63887ae1ec Fix whitespace %!s(int64=2) %!d(string=hai) anos
pyproject.toml 47902d3618 Create project %!s(int64=2) %!d(string=hai) anos
requirements.txt 83a7d19be5 Update requirements %!s(int64=2) %!d(string=hai) anos
tasks.py 15d435080f Bypass relative path error in ci %!s(int64=2) %!d(string=hai) anos

README.md

Spring Mass Damper

A causal block diagram representation of a spring mass damper system. Simulated using a causal block simulator.

The formula we follow to achieve this is: 0 = 100 - 2y' - 100y - y". Here, the friction coefficient is 0.02 Ns/m and the spring constant is 1 N/m with the block weighing in at 0.01 kg.

The simulated position (distance) of the spring is described by the following graph.

execution-trace

In the example we are interested in the spring constant k which results in almost zero oscillation (equilibrium) in the time frame of [5, 7] seconds after impulse release.