trick/trick_source/trick_utils/SAIntegrator/examples/MassSpringDamper
2020-12-17 15:58:29 -06:00
..
images Add new stand alone numerical integration library SAIntegrator #1056 #936 2020-09-27 18:36:49 -05:00
makefile Add new stand alone numerical integration library SAIntegrator #1056 #936 2020-09-27 18:36:49 -05:00
MassSpringDamper.cpp Add copy-constructors, assignment operators, insertion operators to SAIntegrator classes. #1091 2020-12-17 15:58:29 -06:00
plot_position.py Add copy-constructors, assignment operators, insertion operators to SAIntegrator classes. #1091 2020-12-17 15:58:29 -06:00
README.md Update README.md 2020-09-27 19:20:56 -05:00

MassSpringDamper

This program uses the SA::EulerCromerIntegrator to simulate a simple mass-spring-damper.

Generate the results as follows:

$ make
$ ./MassSpringDamper > msd.csv

Plot the results as follows:

$ python plot_position.py

and

$ python plot_velocity.py

MSD