Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

PHY211 Projectile Motion Homework: Adding Air Resistance, Assignments of Physics

Instructions for a physics homework assignment focusing on projectile motion with added air resistance. Students are required to modify the code, run simulations, and analyze results for various values of air resistance constant 'k'.

Typology: Assignments

Pre 2010

Uploaded on 08/09/2009

koofers-user-yn1-1
koofers-user-yn1-1 🇺🇸

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download PHY211 Projectile Motion Homework: Adding Air Resistance and more Assignments Physics in PDF only on Docsity! Homework 2 1. Cut/paste the code for the projectile problem discussed in class (note: that listing is not quite complete: you will need to look at earlier codes to see how to access the 3D environment and how to set the scaling and range). 2. Modify the line updating the velocity vector to add an air resistance force proportional to the velocity: ball.vel=ball.vel+force*dt-k*dt*ball.vel where the constant k must be asigned earlier in the code. 3. Also add a line after the while loop to print out the horizontal distance travelled (be careful the range of the projectile is the final x-coordinate minus its initial value). 4. Run the code for k = 0 (no air resistance). Compare your answer to the exact result (consult standard PHY211 like textbooks to find the formula for the range of simple projectile motion in terms of the angle of projection, speed and acceleration due to gravity. Notice that the latter is set to g = 1 here). 5. Now compute the range for k = 0.01, and k = 0.1. Include screen shots of the trajectory. 6. Optional: calculate the range for k = 0.001 as the speed of projection varies. Draw a plot of your results. Compare it to the same curve for k = 0 1
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved