Question: This week you used VPython to calculate the electric field above a 2 D plane of charge. You would have gotten something similar to the

This week you used VPython to calculate the electric field above a 2D plane of charge. You would have gotten something similar to the code shown below. Weve written out the steps needed to complete the code in pseudo-code. Place the steps in order to make the code given.
"For each cloud chunk in the x-direction
for i in range (0,nx) :
#Define the x-location of the cloud chunk
xloc = startx +i** stepx
#For each cloud chunk in the z-direction
for j in range (0,nz) :
#Define the z-location of the cloud chunk
zloc= startz +j**s tepz
#Make a sphere at that x-z location
cloudChunk = sphere pos
For this row of observation points
Find the separation vector between that charge and the observation point
Split the sheet into individual point charges
Calculate the electric eld from the charge at the observation point and add it to the net field
Make an arrow to indicate the electric field
Reset the net electric eld
For every point in this row
For every charge in the sheet
 This week you used VPython to calculate the electric field above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!