Animating the time response of a mass-spring system: Matlab animation code and effect of damping

Antonio Sala, UPV

Difficulty: *** ,       Relevance: PIC,      Duration: 12:35

*Enlace a Spanish version

Materials:    [ Cód.: simulspringdamperEN.m ] [ PDF ]

Summary:

This video presents animation results of the free response of a mass-spring system (with frictional damping) obtained in the videos [masmusym1EN] and [masmusym2EN] by means of dsolve. The basic drawing commands are patch, xline, yline, plot, inside a loop that generates each “frame” (not in real time, this is not a videogame).

Actually, the detail of the code is merely “cosmetic” with drawing functions, it does not address any conceptually important issues of solving differential equations.

We also check what happens when decreasing and increasing the coefficient of friction.

An example of code, similar but more laborious, for animation of the vibrations of a system with three masses and four springs is described in the video [moll3aniEN].

*Link to my [ whole collection] of videos in English. Link to larger [ Colección completa] in Spanish.

© 2024, A. Sala. All rights reserved for materials from authors affiliated to Universitat Politecnica de Valencia.
Please consult original source/authors for info regarding rights of materials from third parties.