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:


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:


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:


Try to see why the y component is zero:


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:


  At the center of the ring:


  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:


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


  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?




Converted by Mathematica      December 12, 2000