184_projects:detecting_b_fields

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
184_projects:detecting_b_fields [2023/10/24 16:30] dmcpadden184_projects:detecting_b_fields [2023/10/24 16:42] (current) dmcpadden
Line 3: Line 3:
 {{183_projects:magnetic.jpg?600}} {{183_projects:magnetic.jpg?600}}
  
-An experimental magnetic field detector has been constructed outside of the town of Lakeview, due to the presence of a new mysterious particle. You and your team have been contacted to determine the charge of this new particle and construct a model of the magnetic field should look like. Thankfully, you've gotten some initial data from your colleagues. They've were able to measure two different magnetic fields for a particle that was moving with velocity of $\vec{v} = <0, -200, 0> m/s.Thefirstfieldwasmeasured1mtotherightand1mupfromthechargeparticleandfoundtobe\vec{B}_1 = <0, 0, +3.398E-24> T.Thesecondfieldwasmeasured4mbeneaththeparticle,andinterestinglywasfoundtobe\vec{B}_2 = <0,0,0>T$. +An experimental magnetic field detector has been constructed outside of the town of Lakeview, due to the presence of a new mysterious particle. You and your team have been contacted to determine the charge of this new particle and construct a model of what the magnetic field should look like. Thankfully, you've gotten some initial data from your colleagues. They were able to measure two different magnetic fields for a particle that was moving with velocity of $\vec{v} = <0, -20, 0> m/s.Thefirstfieldwasmeasured1mtotherightand1mupfromthechargeparticleandfoundtobe\vec{B}_1 = <0, 0, +7.07E-5> T.Thesecondfieldwasmeasured4mbeneaththeparticle,andinterestinglywasfoundtobe\vec{B}_2 = <0,0,0>T$. 
  
 Your colleagues have also worked on a somewhat constructed model of the field, but it looks like there are 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 new particles and produce arrows that represent the magnetic field as the particle moves by. This will provide much needed information about these new particles! Your colleagues have also worked on a somewhat constructed model of the field, but it looks like there are 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 new particles and produce arrows that represent the magnetic field as the particle moves by. This will provide much needed information about these new particles!
Line 13: Line 13:
    
 ## Parameters and Initial Conditions ## Parameters and Initial Conditions
-velocity = vector(0,-200,0) +velocity = vector(0,-20,0) 
-q =  ##??? Don't know this?? +#q =  ??? Don't know this?? 
 + 
 ## Observation Points - Need at least 3??? ## Observation Points - Need at least 3???
    
 ## Objects ## Objects
-charge = sphere(pos=vector(-2,0,0), radius=0.1, color=color.blue)+charge = sphere(pos=vector(0,2,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) 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) yaxis = cylinder(pos=vector(0,-3,0), axis=vector(0,6,0), radius = 0.01, color=color.black)
Line 27: Line 27:
    
 t = 0 t = 0
-dt = 0.01+dt = 0.001
    
-while t < 5:+while t < 2:
    
     rate(100)     rate(100)
    
     charge.pos = charge.pos + velocity*dt     charge.pos = charge.pos + velocity*dt
-    + 
     t = t + dt     t = t + dt
          
          
 +    if charge.pos.y < -3:
 + 
 +            velocity = vector(0,0,0)
 + 
 + 
 ## Not sure what to do with these ## Not sure what to do with these
 + 
 ##p = sphere(pos=vector(-1,-1,0), radius = 0.1, color=color.cyan)  ##p = sphere(pos=vector(-1,-1,0), radius = 0.1, color=color.cyan) 
 ##Barrow = arrow(color=color.red) ##Barrow = arrow(color=color.red)
 ##Barrow.pos = p.pos ##Barrow.pos = p.pos
-##Barrow.axis = vector(0,0,0) +##Barrow.axis = vector(0,0,0)
 </code> </code>
  
Line 60: Line 65:
   - How does the right hand rule work for calculating the magnetic field?   - How does the right hand rule work for calculating the magnetic field?
   - What is a "normal" size for magnetic fields? (Look up how big is Earth's magnetic field, fridge magnet, etc.)   - What is a "normal" size for magnetic fields? (Look up how big is Earth's magnetic field, fridge magnet, etc.)
-  - What assumptions did you make for the problem? How would you evaluate your answer? 
   - What shape is the magnetic field around the moving point charge? (Hint: make multiple observation points and move them around)   - What shape is the magnetic field around the moving point charge? (Hint: make multiple observation points and move them around)
 +  - What assumptions did you make for the problem? How would you evaluate your answer?
  
  
  • 184_projects/detecting_b_fields.1698165024.txt.gz
  • Last modified: 2023/10/24 16:30
  • by dmcpadden