Worksheet 8

PHY201, 1999
Donev Aleksandar

Problem I-Magnetic Field of a Ring

Part a) Biot-Savart Law

  In this problem we need to use Biot-Savart's law for the magnetic field of an arbitrary current distribution:
        [Graphics:Images/index_gr_1.gif] where [Graphics:Images/index_gr_2.gif]
  
We therefore need the radius vector of the element of the ring over which we perform the integration and the radius of the point of observation, which we take to be in the xz plane:

[Graphics:Images/index_gr_3.gif]

Now we use Bio-Savart's law to find the magentic field from a current element of the ring, and we discard all constants for simplicity. Also, we need the vector dl for the current element:

[Graphics:Images/index_gr_4.gif]
[Graphics:Images/index_gr_5.gif]

Now we can perform the integration over θ to finf the total magnetic field. The integrals can be simplified a lot more, but Mathematica needs more help to do that. Since we are going to evaluate them numerically anyway, that doesn't matter:

[Graphics:Images/index_gr_6.gif]
[Graphics:Images/index_gr_7.gif]

Try to see why the y component is zero:

[Graphics:Images/index_gr_8.gif]
[Graphics:Images/index_gr_9.gif]
[Graphics:Images/index_gr_10.gif]
[Graphics:Images/index_gr_11.gif]

Part b) Some Special Cases

  At the axis of the ring (x,y=0), the field can be found very easily and is found in many textbooks:

[Graphics:Images/index_gr_12.gif]
[Graphics:Images/index_gr_13.gif]

  At the center of the ring:

[Graphics:Images/index_gr_14.gif]
[Graphics:Images/index_gr_15.gif]

  Also, for Problem 2 in Fortran, we will need values of the magnetic field at some point (to check our answers against it). Just as in Worksheet 1, here we again have two options for performing the integration. First, we can simply evaluate the analytical result at a specific point:

[Graphics:Images/index_gr_16.gif]
[Graphics:Images/index_gr_17.gif]
[Graphics:Images/index_gr_18.gif]

  Or, we can integrate numerically in the first place (notice the interesting conclusion Mathematica makes about the y component):

[Graphics:Images/index_gr_19.gif]
[Graphics:Images/index_gr_20.gif]
[Graphics:Images/index_gr_21.gif]
[Graphics:Images/index_gr_22.gif]
[Graphics:Images/index_gr_23.gif]

  You should remember that in this case it is better to use the analytic solution (we were lucky enough to have it), since Mathematica has very fast ways of evaluating the special Elliptic functions that appear in the solution.
  So at the point {0.3,0.6} (in the xz plane), the field is {0.822381,3.88234}. We will use this in the Fortran part.

Part c) The Magnetic Field

This is identical to the procedure for plotting vector fields in the previous worksheets. Can you tell where the ring is on the graph?

[Graphics:Images/index_gr_24.gif]

[Graphics:Images/index_gr_25.gif]

[Graphics:Images/index_gr_26.gif]


Converted by Mathematica      December 12, 2000