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_3 [2019/01/22 17:41] – tallpaul | course_planning:184_projects:f18_project_3 [2019/01/24 17:33] (current) – tallpaul | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Project 3 ===== | ===== Project 3 ===== | ||
- | /* | + | ==== Project 3A: Charge |
- | ==== Project 3A: StickyStuff and the Dust Particle | + | |
- | {{ 183_projects: | + | |
- | + | ||
- | Adhesive tape is manufactured by repeatedly rolling and unrolling large sheets of plastic, which can cause there to be a charge on the surface of the tape. Why this important you may ask? Trapped in the town of Lakeview, S.P.A.R.T.A.N force has been called to the premises of StickyStuff Corporation. StickyStuff Corp has been tasked with producing a special type of adhesive tape to be used on a new top-secret spacecraft called Artemis 13. Unfortunately, | + | |
- | + | ||
- | (There' | + | |
- | + | ||
- | <WRAP INFO> | + | |
- | === Learning Goals === | + | |
- | * Create an analytic model for a line of charge | + | |
- | * Be able to explain how you set up each part of the integral, dQ, r, limits, etc. | + | |
- | * Explain how you used superposition in your solution | + | |
- | * Understand how surfaces become charged (particularly as an insulator in this case) | + | |
- | </ | + | |
- | + | ||
- | ==== Project 3B: Better Thundercloud Model ==== | + | |
- | {{ 184_projects: | + | |
- | The storms over Lakeview have gotten worse, with an almost permanent pitch black cloud system hovering overhead. A new model for the thundercloud needs to be produced to obtain a better understansding of how it is functioning. While they greatly appreciated the model you created last week for the Mapping N→Etwork Sensory Array (MNSA), the data they are collecting from the sensors are simply not matching the model' | + | |
- | Given that the negative charge is much closer to the ground (and headquarters), | + | You have become trapped in the town of Lakeview. The town and surrounding landscape are under a constant barrage of storms. Not only are people being struck by lightning within |
< | < | ||
- | #Set up of the objects | + | ## Creating |
- | ground = box(pos = vec(0,0,0), width=5000, length=5000, | + | scene.range = 2 |
- | mountains = [cone(pos=vec(-1800, | + | |
- | cone(pos=vec(-1800, | + | |
- | cone(pos=vec(-1800, | + | |
- | HQ = box(pos = vec(-100, | + | |
- | cloud = box(pos = vector(0, | + | |
+ | ## Constants | ||
+ | TotalCharge = 15 #C | ||
+ | pointcharge = TotalCharge/ | ||
+ | k = 9e9 | ||
+ | vscale = 1e-4 | ||
- | #Lines 13-48 create a grid of spheres to represent the bottom of the cloud (this part of the code doesn' | + | ## Objects |
+ | charge1 = sphere(pos=vec(-3,0,0), Q=pointcharge, | ||
+ | charge2 = sphere(pos=vec(-2, | ||
+ | charge3 = sphere(pos=vec(-1, | ||
+ | charge4 = sphere(pos=vec(0, | ||
+ | charge5 = sphere(pos=vec(1, | ||
+ | charge6 = sphere(pos=vec(2, | ||
+ | charge7 = sphere(pos=vec(3, | ||
+ | charges = [charge1, charge2, charge3, charge4, charge5, charge6, charge7] | ||
- | #Define how many chunks to split the cloud in the x direction | + | ## Calculation Loop 1 |
- | nx = 10 | + | E = vec(0,0,0) |
- | #Define how many chunks to split the cloud in the z direction | + | point = vec(0,0,0) |
- | nz = 10 | + | for c in charges: |
+ | r = point - c.pos | ||
+ | field = arrow(pos=point, | ||
- | #Define where the cloud should start/stop in the x direction | + | ## Calculation Loop 2 |
- | startx | + | x = -5 |
- | endx = 250 | + | dx = 0.5 |
- | #Define the spacing between each chunk in the x, based on where the cloud start/stops and how many chunks there are | + | xmax = 5 |
- | stepx = (endx - startx)/nx | + | while x< |
+ | theta = 0 | ||
+ | dtheta = 0.1 | ||
+ | R = 0 | ||
+ | while theta < 2*pi: | ||
+ | E = vec(0,0,0) | ||
+ | | ||
+ | field = arrow(pos=point, | ||
+ | theta += dtheta | ||
+ | x+=dx | ||
+ | </code> | ||
+ | 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. | ||
- | #Define where the cloud should start/stop in the z direction | + | <WRAP info> |
- | startz | + | ===Learning Goals=== |
- | endz = 250 | + | * Understand what a list (or an array) does in the code and why you would want to use one |
- | #Define the spacing between each chunk in the z, based on where the cloud start/stops and how many chunks there are | + | * Understand how a " |
- | stepz = (endz - startz)/nz | + | * Make a model of a line of charge using point charges |
+ | * Use superposition to calculate and visualize the electric field around a line of charge | ||
+ | </WRAP> | ||
- | #Create an empty list to store each cloud chunk | + | ==== Project 3B: StickyStuff and the Dust Particle ==== |
- | listOfCloudChunks | + | {{ 183_projects: |
- | #For each cloud chunk in the x-direction | + | Adhesive tape is manufactured by repeatedly rolling and unrolling large sheets of plastic, which can cause there to be a charge on the surface |
- | for i in range(0,nx): | + | |
- | + | ||
- | # | + | |
- | xloc = startx + i*stepx | + | |
- | + | ||
- | #For each cloud chunk in the z-direction | + | |
- | for j in range(0,nz): | + | |
- | + | ||
- | # | + | |
- | zloc = startz + j*stepz | + | |
- | + | ||
- | #Make a sphere | + | |
- | cloudChunk = sphere(pos = vector(xloc, | + | |
- | #Add the sphere to the list of cloud chunks | + | (There' |
- | listOfCloudChunks.append(cloudChunk) | + | |
- | + | ||
- | #This part needs to be fixed and commented... | + | |
- | obsLocation = vector(0, | + | |
- | Enet = vector(0, | + | |
- | + | ||
- | + | ||
- | Q = -15 | + | |
- | dQ = Q/(nx*nz) | + | |
- | k = 9e9 | + | |
- | + | ||
- | + | ||
- | for chunk in listOfCloudChunks: | + | |
- | + | ||
- | Enet = vector(0, | + | |
- | </ | + | |
<WRAP INFO> | <WRAP INFO> | ||
=== Learning Goals === | === Learning Goals === | ||
- | * Visualize the electric field from a 2D plane of charge | + | * Create an analytic model for a line of charge |
- | * Use multiple loops to create many observation points from many charges | + | * Be able to explain how you set up each part of the integral, dQ, r, limits, etc. |
- | * Identify patterns | + | * Explain how you used superposition |
- | * Compare/ | + | * Understand how surfaces become charged (particularly as an insulator in this case) |
</ | </ | ||
- | /* | + |