Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
course_planning:184_projects:f17_project_9 [2017/10/24 16:43] – created dmcpadden | course_planning:184_projects:f17_project_9 [2017/10/26 16:40] (current) – dmcpadden | ||
---|---|---|---|
Line 7: | Line 7: | ||
This is the crew of the Artemis 13's last chance. Will this circuit work without drawing any more than the 0.35 A from the main battery? | This is the crew of the Artemis 13's last chance. Will this circuit work without drawing any more than the 0.35 A from the main battery? | ||
+ | |||
+ | ==== Project 9B: Detecting magnetic fields ==== | ||
+ | |||
+ | {{183_projects: | ||
+ | |||
+ | 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' | ||
+ | |||
+ | <code python> | ||
+ | |||
+ | ## Scene setup | ||
+ | scene.background = color.white | ||
+ | |||
+ | ## Parameters and Initial Conditions | ||
+ | velocity = vector(1, | ||
+ | |||
+ | ## Objects | ||
+ | charge = sphere(pos=vector(-2, | ||
+ | xaxis = cylinder(pos=vector(-3, | ||
+ | yaxis = cylinder(pos=vector(0, | ||
+ | zaxis = cylinder(pos=vector(0, | ||
+ | |||
+ | ## 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 | ||
+ | |||
+ | ##Barrow = arrow(color=color.red) | ||
+ | ## | ||
+ | ## | ||
+ | </ | ||
+ |