Computing: Free Pascal Programming

Damped motion of a vertical spring (simplified equation).


Download SimpleSpring desktop application (Windows 64bit) Download SimpleSpring source code (Lazarus/Free Pascal)

Description: Physics application, that consists in modeling a vertical spring and its position over time. The application uses a simplified equation describing the stretch of the spring vs. time by combining and simplifying the equations for the amplitude for damped simple harmonic motion and the simple harmonic motion position v. time equation, as described in an article by Samhitha Bodangi (PDF available on the Internet).

Free Pascal features: Drawing graphs using bitmap canvas. Drawing mathematical functions.

Screenshot: The screenshot shows the curves for m = 0.5, k = 200 (blue); m = 2, k = 200 (red), and m = 0.5, k = 25 (lime). The calculation display is for the 3rd values set, and a time being near the movement's period (thus the stretch is the same as for t = 0, i.e. near 0).

Free physics application: Damped motion of a vertical spring (simplified equation)

If you like this application, please, support me and this website by signing my guestbook.