Question: You w use an already written program to model a Springcmass system. The interaction that you are modeling includes a small correction to the usual


You w use an already written program to model a Springcmass system. The interaction that you are modeling includes a small correction to the usual spring force. This type of springcmass system is often called an anhannonlc oscillator. For this question, you will add code that computa the spring force with the anharmonic correction, updates the momentum, and computes the magnitudes of the parall land perpendicular components of the net force vector. Yau should download this program and run it: Annarmonicgepringgvuhwagshellgglowecrlpt [Rightccliclg select "Save Llnk 135.. t) Your program should carry out the necessary force calculations and momentum update for the spring force with the anharmonic correction and compute the magnitudes of the parallel and perpendicular components of the net force. Necessary information for the momentum update The magnitude of this spring force is given by: F = Ices + ts3 sonny This force points opposite the direction of the stretch. The small correction, ts3, cludes the small effect of the spring exceeding the elastic llmlt. This is polnt where the force is not llnearly proportlonal to the stretch which is true for most realcworld materlals. Befnre answering the questions below, write the line; of code to compute the spring force with the anharmonic correction, update the momentum, and compute the magnitudes of the parallel and perpendicular components of the net force. Tat ease , Make sure that your program produces these results before trying the Graded ngtion. (1) After downloading this program, set the initial conditions of your computer model to the following: Relaxed length ofsprlng, Lo: 03 m Sprlng constant. kal 12 MM Anhatmonlc coefcient, 6' n 7054 N/mAz Mass of hanging mass: 0.2703 kg Time step (deltal): sees s lnitlal positlon ofthe hanging mass.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
