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 D 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 pseudocode. Place the steps in order to make the code given.
"For each cloud chunk in the direction
for in range :
#Define the location of the cloud chunk
xloc startx stepx
#For each cloud chunk in the zdirection
for in range :
#Define the location of the cloud chunk
zloc startz tepz
#Make a sphere at that 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
