Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
course_planning:184_projects:f18_project_2 [2019/01/15 17:37] – tallpaul | course_planning:184_projects:f18_project_2 [2019/01/17 17:35] (current) – tallpaul | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Project 2 ===== | ===== Project 2 ===== | ||
- | ==== Project 2A: Building Stormchaser HQ ==== | ||
- | You are part of a secret organization that sends task forces to investigate strange phenomenon. The name of your particular task force is S.P.A.R.T.A.N force. Your team has been sent to investigate an abnormal storm system that has encapsulated the town of Lakeview. You and your team are racing to be on the frontline to investigate this new system and as you speed toward Lakeview you receive a call from a group of scientists working at Stormchaser HQ. They explain that they have built their new base of operations (HQ) 2 km away from the mountains, which typically gather large clouds (on average, m=1∗109kg and q=−150C) to the west of the HQ. The Lakeview scientists have calibrated the equipment on top of HQ to deal with the electric potential from the large clouds, but they are concerned about an incoming storm system that is displaying abnormal qualities. As much as they would love to collect data on this storm, if the electric potential changes by more 20 MV due to the additional clouds, the equipment will be damaged. They have received reports that the storm system is heading toward HQ from the eastern plains (where the wind can last up to 20 minutes and exert a force of 36000 N) with a mass around m=3∗105kg and a charge between −50C and −60C. (For out-of-town-ers, | ||
- | <WRAP INFO> | ||
- | ===Learning Goals:=== | + | ==== Project |
- | * Understand how electric force, electric energy, electric potential, and electric field relate to one another (and be able to calculate these quantities for a system of point charges) | + | |
- | * Apply energy principles to a situation with charges (energy conservation, | + | |
- | * Apply momentum/ | + | |
- | * Think about what might change when there are multiple sources of charge in the problem | + | |
- | </ | + | |
- | /* | + | |
- | ==== Project | + | |
- | You have become trapped in the town of Lakeview. | + | The team back at headquarters has just received |
+ | |||
+ | The Super-Mega-Storm-Cloud-Meter 9000< | ||
< | < | ||
- | ## Creating the scene for the code to run in | + | ## Scene Setup |
- | scene.range | + | scene = display(width=1000, |
- | ## Constants | + | ## Parameters |
- | TotalCharge | + | ec = 1.6e-19 |
- | pointcharge = TotalCharge/ | + | k = 9e9 |
- | k = 9e9 | + | |
- | vscale = 1e-4 | + | |
## Objects | ## Objects | ||
- | charge1 | + | cloud = sphere(pos=vec(0,3500,0), color=color.white, radius=100) |
- | charge2 | + | ground |
- | charge3 = sphere(pos=vec(-1,0,0), Q=pointcharge, | + | HQ = box(pos = vec(-250,100,0), width = 10, length=10, height=200, color=color.green) |
- | charge4 | + | detector |
- | charge5 = sphere(pos=vec(1, | + | |
- | charge6 | + | |
- | charge7 = sphere(pos=vec(3,0,0), Q=pointcharge, | + | |
- | charges = [charge1, charge2, charge3, charge4, charge5, charge6, charge7] | + | |
- | ## Calculation Loop 1 | ||
E = vec(0,0,0) | E = vec(0,0,0) | ||
- | point = vec(0, | + | field = arrow(pos=detector.pos, axis = E, color = color.yellow) |
- | for c in charges: | + | |
- | r = point - c.pos | + | |
- | field = arrow(pos=point, axis=vscale*E, | + | |
- | + | ||
- | ## Calculation Loop 2 | + | |
- | x = -5 | + | |
- | dx = 0.5 | + | |
- | xmax = 5 | + | |
- | while x< | + | |
- | theta = 0 | + | |
- | dtheta = 0.1 | + | |
- | R = 0 | + | |
- | while theta < 2*pi: | + | |
- | E = vec(0, | + | |
- | point = vec(x, R*sin(theta), | + | |
- | field = arrow(pos=point, axis = E*vscale, color = color.green) | + | |
- | theta += dtheta | + | |
- | x+=dx | + | |
</ | </ | ||
- | Complete the program above to first represent the total electric field just to the right and left of the line of charges. Then, calculate the total electric field surrounding the line of charges. | ||
- | < | + | Complete the computer model that will calibrate the Super-Mega-Storm-Cloud-Meter 9000< |
- | ===Learning Goals=== | + | |
- | * Understand | + | == Notes on Coding == |
- | * Understand | + | [[184_notes: |
- | | + | |
- | * Use superposition to calculate | + | [[184_notes: |
- | </ | + | |
- | */ | + | [[184_notes: |
+ | |||
+ | < | ||
+ | ===Learning Goals:=== | ||
+ | * Become comfortable with reading code (where in the code are objects made, how do you make arrows/ | ||
+ | * Connect the parts of the code to what you see when you hit the " | ||
+ | * Recognize what you want to enter as a " | ||
+ | * Be able to explain | ||
+ | </WRAP> | ||
+ | |||
+ | ==== Project 2B: Building Stormchaser HQ ==== | ||
+ | You are part of a secret organization that sends task forces to investigate strange phenomenon. The name of your particular task force is S.P.A.R.T.A.N force. Your team has been sent to investigate an abnormal storm system that has encapsulated the town of Lakeview. You and your team are racing to be on the frontline to investigate this new system and as you speed toward Lakeview you receive a call from a group of scientists working at Stormchaser HQ. They explain that they have built their new base of operations (HQ) 2 km away from the mountains, which typically gather large clouds (on average, $m=1*10^9 kgandq=-150 C$) to the west of the HQ. The Lakeview scientists have calibrated the equipment on top of HQ to deal with the electric potential from the large clouds, but they are concerned about an incoming storm system that is displaying abnormal qualities. As much as they would love to collect data on this storm, if the electric potential changes by more 20 MV due to the additional clouds, the equipment will be damaged. They have received reports that the storm system is heading toward HQ from the eastern plains (where the wind can last up to 20 minutes and exert a force of 36000 N) with a mass around m=3∗105kg and a charge | ||
+ | <WRAP INFO> | ||
+ | |||
+ | ===Learning Goals:=== | ||
+ | * Understand how electric force, electric energy, electric potential, | ||
+ | * Apply energy principles to a situation with charges (energy conservation, | ||
+ | * Apply momentum/ | ||
+ | * Think about what might change when there are multiple sources | ||
+ | </ | ||