The particle is under the influence of gravity this example


n class last week, Dr. xxxx showed a particle connected to the origin by a spring with a 3 degree of freedom swivel, so that the spring could easily take any orientation in 3 dimensional space. The particle is under the influence of gravity. This example was used as an example of a case where spherical or cylindrical coordinates might make the problem easier to solve than Cartesian coordinates. This extra credit assignment will examine this.

Write a computer program (in your choice of language) that accepts an input from the user as a structure containing the following:

1. The initial location of the particle (at an arbitrary location in 3 dimensional space)

2. The initial velocity of the particle (in an arbitrary direction)

3. The spring constant

Your program should then compute the trajectory of the particle and display the motion of the particle as an animation in 3 dimensions. The animation should then be exported as a video file that can be played by VLC media player (e.g. mp4, avi)

Submit

1. A .pdf of your code (with comments)

2. A video file showing your animation for some representative choice of user input

3. A paragraph explaining what coordinate system you used to write your code and the reasoning behind why you chose it.

4. A readme file explaining to computer literate users how to run and provide input to your code.

Request for Solution File

Ask an Expert for Answer!!
Mechanical Engineering: The particle is under the influence of gravity this example
Reference No:- TGS01416201

Expected delivery within 24 Hours