Quick Start for Numerical Calculations
Here are some resources to get you started on numerical calculations. Don’t forget to submit your video by Friday.
This first video can help you get started with the three vpython tutorial documents I posted on moodle. I point out the difference you need to make in order to run this in Glowscript.
- Here are the instructions for the submission of the numerical standard https://phys221.wordpress.com/2015/02/05/numerical-calculations-standard/
- Here is the sample code from class a http://www.glowscript.org/#/user/rhettallain/folder/My_Programs/program/throwball – this wouldn’t be a bad place to start. You don’t have to do the three tutorials.
- Here is some feedback from a previous semester https://phys221.wordpress.com/2014/02/24/vpython-feedback/
- Here is another form of numerical calculations using a spreadsheet https://plab193.wordpress.com/2012/10/08/lab-7-numerical-modeling/ – you might find this easier, but in the long run it gets very difficult to deal with vectors and stuff.
Now for some suggestions of things to do:
- The first priority is to get anything to work. I suggest recreating (and changing a little bit) my projectile motion example from above.
- Try changing the initial velocity. Try changing the location of the landing point.
- What if you add air resistance to the ball?
- What about a mass on a spring? I already linked to an example of this – http://www.wired.com/2014/07/how-do-you-model-a-spring/
- In class, we estimated the deflection of a spacecraft as it came near an asteroid. Could you model this in glowscript? Yes, you could – in fact this would be a pretty awesome calculation (5 points if it works).
- Here is yet another introduction to numerical models http://www.wired.com/2012/08/an-introduction-to-numerical-modeling/