course_planning:184_projects:s18_project_8

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
course_planning:184_projects:s18_project_8 [2018/02/27 17:33] dmcpaddencourse_planning:184_projects:s18_project_8 [2018/03/01 17:34] (current) dmcpadden
Line 25: Line 25:
   * Understand what happens when capacitors are in parallel or in series   * Understand what happens when capacitors are in parallel or in series
   * Understand how capacitors and resistors combine in a complex circuit   * Understand how capacitors and resistors combine in a complex circuit
 +</WRAP>
 +
 +==== Project 8B: Detecting magnetic fields ====
 +
 +{{183_projects:magnetic.jpg?600}}
 +
 +An experimental magnetic field detector has been constructed outside of the town of Lakeview. Although the purpose of the detector is largely unknown to the townsfolk of Lakeview you and your team have been recruited to develop a magnetic field detector that is able to detect hawkions. Hawkions are like muons, but are slow-moving and have long lifetimes. They are a newly discovered top secret particle that experiments on the Artemis 13 have indicated should exist. You have a somewhat constructed model, in which the hawkions follow a straight line trajectory, but it looks like there's some pieces of code that the team wasn't sure what to do with. You will need to select a few locations to model the magnetic field due to the hawkions and produce arrows that represent the hawkion's magnetic field. Best hurry, the government needs more information about the hawkions particle before it is too late.
 +
 +<code python>
 +
 +## Scene setup
 +scene.background = color.white
 + 
 +## Parameters and Initial Conditions
 +velocity = vector(1,0,0)
 + 
 +## Objects
 +charge = sphere(pos=vector(-2,0,0), radius=0.1, color=color.blue)
 +xaxis = cylinder(pos=vector(-3,0,0), axis=vector(6,0,0), radius = 0.01, color=color.black)
 +yaxis = cylinder(pos=vector(0,-3,0), axis=vector(0,6,0), radius = 0.01, color=color.black)
 +zaxis = cylinder(pos=vector(0,0,-3), axis=vector(0,0,6), radius = 0.01, color=color.black) 
 + 
 +## Calculation Loop
 + 
 +t = 0
 +dt = 0.01
 + 
 +while t < 5:
 + 
 +    rate(100)
 + 
 +    charge.pos = charge.pos + velocity*dt
 +    
 +    t = t + dt
 +    
 +    
 +## Not sure what to do with these
 +
 +##p = sphere(pos=vector(-1,-1,0), radius = 0.1, color=color.cyan) 
 +##Barrow = arrow(color=color.red)
 +##Barrow.pos = p.pos
 +##Barrow.axis = vector(0,0,0) 
 +</code>
 +
 +<WRAP info>
 +=== Learning Goals ===
 +  * Visualize the magnetic field from a single moving charge
 +  * Use the right hand rule to predict the direction of the magnetic field
 +  * Understand how to use a cross product conceptually and mathematically
 +  * Explain the similarities and differences between electric and magnetic fields 
 </WRAP> </WRAP>
  • course_planning/184_projects/s18_project_8.1519752806.txt.gz
  • Last modified: 2018/02/27 17:33
  • by dmcpadden