Author: Dr. David Montgomery, Department of Applied Mathematics, Colorado School of Mines
This code animates solutions to mx'' + bx' + kx = F(t), with x(0) = P0, x'(0) = V0. m is mass, b is the damping constant, k is the spring constant. The forcing function has amplitude F0 and forcing frequency gamma.
example = 'Freestyle' to edit parameters freely
example = 'Undamped' for undamped free vibrations
example = 'Underdamped' for underdamped free vibrations
example = 'Overdamped' for overdamped free vibrations
example = 'Critical' for critically damped free vibrations
example = 'Forced' for underdamped forced vibrations
example = 'Beats' for undamped forced vibrations w/beats phenomenom
example = 'Resonance' for undamped forced vibrations w/resonance
If you want to save a video of the animation set saveVideo = 'true'
- Undamped Free Vibrations: https://youtu.be/YitsnINk6W8
- Underdamped Free Vibrations: https://youtu.be/U6SBVkiM1KM
- Overdamped Free Vibrations: https://youtu.be/2lTSs3GS3gA
- Critically Damped Free Vibrations: https://youtu.be/B0mv7KPVGZo
- Forced Vibrations: https://youtu.be/iKqYJikkFUw
- Forced Beats: https://youtu.be/tSj_aM4kR6Y
- Forced Resonance: https://youtu.be/b3dvTHYS4Dc