Simulation of Whip Colliding with Falling Block

Overview

Project was completed for ME314: Theory of Machines - Dynamics.

The purpose of this project was to simulate the dynamics of a swinging whip hitting a falling block using the material taught in the course. This included describing the dynamics of the system using the Euler-Lagrange equations, how impacts can affect the system, and how rotational inertia can change due to impacts.

The equation below describes the Lagrangian (L), where T represents the kinetic energy of the system and V represents the potential energy of the system.

We use the Euler-Lagrange equations to solve for the equations of motion of the system, described below.

Finally, in order to describe the impact that occurs between, we must first solve for when the geometries of the block and the tip of the whip overlap. Using this time of impact, we can find the position and velocities of the whip and block at that time, and solve for the change in velocities after impact using the impact equations described below.

Plugging in the velocities after impact into the equations of motion of the system will then describe how the system will continue to behave after impact.

The video image links below shows the simulation of this system slowed down so impact and changes in the system are seen. All video and coding done for this project was done in Mathematica. Source code and write up can be found at this link.