University

Physics 1

Physics 1

Fall 2024

In this lab we simulate dynamic systems by computing a force and finding acceleration. The computer will use this to add a tiny change to velocity, and use the velocity to add a tiny change to position. It then finds a new force at the new position, and repeats this over and over thousands of times.

This lab will require some real coding. If you haven’t done anything like this before, you will need to spend some time with the introductory materials. You may find these on the Computational Physics page. You are not required to attend lab hours, but you may do so for additional help from the instructor.

For this lab you will need to

- Read through the Jupyter Notebook called Intro to Computational Dynamics. Study the examples given there.
- Write and execute the code required to answer the questions in the
Computational Dynamics Lab. You
will find the Jupyter Notebook linked below in
*Content*. - Complete the lab report with the answers to the questions and turn it in.
- Submit your Jupyter Notebook file and your paper lab report. See
*Turn it in*, below.

*Content*

*Supplemental Resources*

- Intro to Computational
Dynamics. As a jupyter notebook:
`intro-dynamics.ipynb`

- how to use functions and loops:
`functional_programming.html`

,`functional_programming.ipynb`

, - Computational Physics page – many more resources
- Intro to Computational Physics Lab – from earlier this semester.
- Discussion Forum may be used to post questions about the lab.
*Hints*:- Be careful that when you add in gravity you add a vector that points
in the −
*y*direction. Consider something like this:`F = F1 - m*g*array((0,1))`

- Air Drag: video of my work (9 min) from a slightly older version – not required viewing, but may help.

- Be careful that when you add in gravity you add a vector that points
in the −

*Turn it in*

- Submit the completed Jupyter Notebook (the
`.ipynb`

file) on Blackboard here: Submit Jupyter Notebook . - Answer the questions on the lab report and submit it in class as you would a regular lab report.
- Due Friday, Oct 18.

*Last modified: October 09, 2024*