184_projects:s21_project_8

Differences

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

Link to this comparison view

Next revision
Previous revision
184_projects:s21_project_8 [2021/01/06 22:55] – created dmcpadden184_projects:s21_project_8 [2021/03/23 22:41] (current) dmcpadden
Line 55: Line 55:
  
 ==== Project 8B: Sorting Hawkions ==== ==== Project 8B: Sorting Hawkions ====
-Since your team was so successful at creating the magnetic field detector for the Hawkions, the Lakeviewians have now hired you to analyze other characteristics of the Hawkions. The Hawkions appear to have a variety of masses, so you start by trying to sort the Hawkions by mass for further analysis (using a mass spectrometer). Before building the spectrometer, your team is asked to develop a model of the spectrometer to determine where the magnetic field should be relative to the catching plate, which stops the Hawkions. Below is the beginning of a model that was developed by another team that mysteriously disappeared.+Since your team was so successful at creating the magnetic field detector for the Hawkions, the Lakeviewians have now hired you to analyze other characteristics of the Hawkions. The Hawkions appear to have a variety of masses, so you start by trying to sort the Hawkions by mass for further analysis (using a mass spectrometer). Before building the spectrometer, your team is asked to develop a model of the spectrometer. The higher ups have specified that they would like to use a constant magnetic field of 2 T and to isolate the effects of the B-field within the magnetic housing box, but they are unsure what direction the magnetic field should be relative to the catching plate. Below is the beginning of a model that was developed by another team that mysteriously disappeared.
  
 <code python> <code python>
-GlowScript 2.VPython+GlowScript 3.VPython
  
  
 ## Model parameters ## Model parameters
-B = vec(0,0,-2) +B = vec(0,0,0)
-magconstant = 1e-7+
  
 ## Objects ## Objects
-magplateN =  box(pos=vec(1,0,1), length=2, height=2, width=0.1, opacity=0.2+mag_housing =  box(pos=vec(1,0,0), length=2, height=2, width=2, opacity=0.2)
-magplateS =  box(pos=vec(1,0,-1), length=2, height=2, width=0.1, opacity=0.2)+
 catchingplate = box(pos=vec(4,0,0), length=0.1, height=10, width=10, opacity=1) catchingplate = box(pos=vec(4,0,0), length=0.1, height=10, width=10, opacity=1)
 xaxis = cylinder(pos=vector(-3,0,0), axis=vector(6,0,0), radius = 0.05, color=color.white) xaxis = cylinder(pos=vector(-3,0,0), axis=vector(6,0,0), radius = 0.05, color=color.white)
Line 110: Line 108:
   * Understand what an "if statement" does in the code   * Understand what an "if statement" does in the code
 </WRAP> </WRAP>
- 
  
  • 184_projects/s21_project_8.1609973738.txt.gz
  • Last modified: 2021/01/06 22:55
  • by dmcpadden