In this lab students will calculate the electric potential at grid points in the in the x-y plane due to two small, uniformly-charged spheres. Students will fix the position of the first charged sphere and vary the position of the second charged sphere. The x-y plane is divided into a 26´26 grid. The upper left corner of the grid corresponds to x=-12.5m, y=12.5m, and the lower right corner corresponds to x=12.5m, y=-12.5m. The charged spheres can be placed anywhere on the grid in the x-y plane, as well as above or below the x-y plane. Students will calculate the potential at each grid point and construct a surface and a contour plot of the potential. The contour plots will display the equipotential lines. The electric field is perpendicular to the equipotential lines, E=-ŃV. Students will draw field lines indicating the direction and relative magnitude of the electric field in the vicinity of the charged spheres and calculate the magnitude of the electric field at selected points.
The potential at r=(x,y,z) outside a uniformly charged sphere centered at r’=(x’,y’,z’) is
.
The constant k has a value of 9´109 in SI units. If we measure q in units of nC=109C, then kq=9q Nm2/C.
![]()
|
Open a Microsoft Excel spreadsheet. | |||
Let cells B1-AA1 contain the numbers -12.5 - 12.5 in increments of 1 and cells A2-A27 contain the numbers 12.5 - (-12.5) as shown below.
Cells B2-AA27 are the grid points whose x- and y-coordinates (in units of m) are listed in cells B2-AA2 and cells A2-A27, respectively. | |||
|
Into row 31 type the total charge on each sphere (in units of nC) and the x-, y- and z-coordinates (in units of m) of the positions of the centers of the spheres. Start with q1=0 and q2 = +1nC at x = y = z = 0. (If you let the x- and y-coordinates always be integers. you can avoid “divide by zero” errors, since the grid points have half integer x- and y-coordinates.)
| |||
|
Now find the potential due to the two charges at grid point B2.
| |||
|
Now copy cell B2 into the other cells of your grid. The grid consists of cells B2-AA27. | |||
|
| |||
|
Construct another chart of subtype contour. Place the chart on sheet 2.
You now have a surface and a contour plot of the potential outside a uniformly charged sphere placed at the origin. The contour lines are equipotential lines. They are spaced in 1V intervals. | |||
|
Go to sheet 2. Click View, Toolbars, and make sure the Control Toolbox is checked. Excel will display a toolbar that contains the symbols shown below. You can move this toolbar to a convenient position.
| |||
|
Click the symbol for the scrollbar | |||
|
To set the properties for the scrollbar, right-click the control, and then click Properties on the shortcut menu. Choose Max = 13, Min = -13, and Value = 0. | |||
|
Label the scrollbar by typing "x-position" into a cell next to the scrollbar. | |||
|
To add macro code for the control, right-click the scrollbar control, and then click View Code on the shortcut menu. In the Visual Basic Editor, write your macro code. Enter the following code and close the Visual Basic Editor. Private Sub ScrollBar1_Change() | |||
| Click Exit Design Mode (If you are using Excel 2007, click the Design Mode button to turn design mode on and off.) | |||
| Repeat the procedure above and insert a second scrollbar. Label this
scrollbar by typing "y-position" into a cell next to the
scrollbar. Enter the following code and close the Visual Basic Editor.
Private Sub ScrollBar2_Change() | |||
| Repeat the procedure above and insert a third scrollbar. Label this
scrollbar by typing "z-position" into a cell next to the
scrollbar. Enter the following code and close the Visual Basic Editor.
Private Sub ScrollBar3_Change() | |||
| Click the symbol for the Checkbox | |||
| Right-click the Checkbox control, and then click View Code.
Enter the following code and close the Visual Basic Editor.
Private Sub CheckBox1_Change() By clicking the checkbox you can change the sign of q2. | |||
|
Now go to sheet 1 and enter the value 1 for q1 into cell A31. Then switch back to sheet 2. |
Charge q1=1 is fixed at the origin. Both charges have the same magnitude. You can move the charge q2 to different positions with the slider. You can change the sign of charge q2. In sheet 1 you can change the magnitude of either charge.
![]()
Open Microsoft Word and prepare a report using the template shown below.
|
Summarize what you have done in this the lab exercise. | |||||||||||||||||||
Describe you graphs and how they change when you move q2. What do they tell you about the potential outside two uniformly charged spheres? | |||||||||||||||||||
|
Produce a contour plot for
and paste the plott into your word document. | |||||||||||||||||||
|
Click the drawing icon on the toolbar to show the drawing toolbar. Click Autoshape, Lines, and pick the Scribble line. Draw approximately 8 field lines onto the contour plot. The field lines should accurately reflect the strength and direction of the electric field. At each point, the field lines must be perpendicular to the equipotential lines. They have to start on the positive and end on the negative charge. | |||||||||||||||||||
Pick a point on your graph at which to calculate the magnitude of the electric
field. Let the point lie on a field line. Label the point A using the textbox tool from the drawing toolbar
|
![]()
Save your Word document (your name_lab6.doc) and attach it and your
spreadsheet to an e-mail message to mbreinig@utk.edu.