Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Using the Euler method, create a code to model the trajectory of a projectile with a known initial position, speed, and angle of
Using the Euler method, create a code to model the trajectory of a projectile with a known initial position, speed, and angle of inclination to the
horizontal, theta Extra marks will be awarded for:
a The quality, conciseness and readability of your code.
b The flexibility of your code ie how easy is it to change variables?
c The quality of your comments.
d How well it works!
Using your code, and ignoring drag forces, determine how far a projectile
launched from ground level would travel for an initial velocity of ms
at an angle of i degrees to the horizontal and ii degrees to the
horizontal. Extra marks will be awarded for:
a A highquality, welllabelled plot of the projectiles motion.
b A reasoned discussion of how well the value obtained agrees with
your expectations.
c A discussion of how varying the timestep dt affects your results.
d Bonus work I: Repeat the above using Velocity Verlet or another
suitable method. How do your answers differ?
Extend your model to simulate a ball bouncing on a flat, solid surface.
Use the simple hardsphere model taught in the lectures. For the case of
a steel ball in air, model a particle being dropped vertically on the surface
and:
a Adjust the timestep used and comment on how it affects your results.
In particular, see what happens at too large a timestep.
b Use your observations to choose a sensible timestep to use. Justify
your choice.
c Bonus work II: Add a drag model to your code. Calculate the
terminal velocities of a mm diameter nylon sphere and a mm
diameter steel sphere in air, water and glycerine. Comment on the
results obtained. Compare your results to theoretical values for each
of the cases tested. Comment on your results.
Note: It is up to you to choose sensible values for all relevant particle
and fluid properties, and to justify these choices in your answer.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started