183_notes:vpython_resources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
183_notes:vpython_resources [2020/07/16 04:39] pwirving183_notes:vpython_resources [2022/11/14 15:52] (current) valen176
Line 13: Line 13:
 All of this allows us to create computational models that are modeling real-world physical phenomenon that can help you gain an understanding and insight into physics concepts that you will interact within this class.  All of this allows us to create computational models that are modeling real-world physical phenomenon that can help you gain an understanding and insight into physics concepts that you will interact within this class. 
  
-===== PhysUtil ===== 
- 
-The majority of the codes that you will use in this class will start with two lines. The first line tells the program which version of Glowscript it is using: "GlowScript 3.0 VPython". 
- 
-The second line which will not always be there but will be the majority of the time will be "get_library('https://cdn.rawgit.com/PERLMSU/physutil/master/js/physutil.js')". This is importing a bunch of code in the program that is called PhysUtil which is a module for VPython that makes it simpler to create highly visual simulations. With very little code, PhysUtil lets you: 
- 
-  * generate motion maps, {{:183_projects:motionmap.png?300}} 
-  * plot graphs, {{:183_projects:graph.png?400}} 
-  * make timers, and 
-  * import CSV data 
  
  
 +Below is a list of errors or unexpected behaviors that you might experience and how you might go about resolving them. By no means is this comprehensive and we definitely encourage you to research the internet to find solutions. You can copy and paste code from other places you just have to understand why it is doing what it is doing.
  
 ===== Python Troubleshooting ===== ===== Python Troubleshooting =====
Line 36: Line 27:
  
  
-Extensive documentation for PhysUtil is [[https://github.com/perlatmsu/python-physutil/wiki|available here]].+
  • 183_notes/vpython_resources.1594874350.txt.gz
  • Last modified: 2020/07/16 04:39
  • by pwirving