Investigatory Project: Multipole Expansion

šŸ•‘06:44, 14 Nov 2019

Investigation of the potentials and electric fields of an arbitrary discrete charge distribution using multipole expansion

Physics

In electrostatics, a multipole expansion is a useful tool in approximating the behavior of electromagnetic potentials and fields at a certain distance from a charge distribution. Multipole expansions are mathematical series that can be truncated in order to approximate a function within a reasonable margin of error [1]. The terms of the multipole expansion are expressed in powers of the reciprocal distance from the origin [2].

For an arbitrary, discrete charge distribution, the individual charges are assumed to have unit charge and are point-like. Thus, the potential at any point defined by the position vector is given by

where is the electric permittivity in a vacuum, is the the th charge, and is the position vector from the origin to the th charge. The electric field is given by

For , the potentialā€™s multipole expansion up to the quadrupole term is given by [3]

where is the total charge, is the dipole moment, and is the quadrupole tensor, given by

where is the Kronecker delta, and is the th component of .

(a)
(b)

Figure 1: (a) Random distribution of charges on the - plane. (b) Potential of 10 unit charges on the plane .

With the random seed fixed for reproducibility, all the pre-execution code was defined as a MultipoleExpansion class that takes an arbitrary even number of charges as the sole argument. The behavior of the electrostatic potentials and fields was investigated by generating unit point charges, scattered within a meter box on the - plane, centered at the origin. Random numbers were then drawn from a uniform distribution and inserted into the row vectors of an array . Thus, is a matrix, with the rows representing the position vectors of the charges and all the -components set to zero. From these vectors, the first half were assigned to be the positive charges, while the latter half were assigned as the negative charges.

The electric potential was calculated for a meter box on the - plane by dividing it into a meshgrid for , then evaluating the exact for each point in the meshgrid using (1), and setting units of . The potential was then plotted as a contour projection on the - plane using the Axes3D object [4]. To quantify the accuracy of the dipole and quadrupole approximations, the potential was also plotted as a function of using the dipole and quadrupole approximations given by (3), superimposed with the exact potential given by (6).

Finally, the electric field was numerically evaluated using the central difference algorithm, as defined in [5, 6], and was plotted using streamplot [7].

Results

Potentials for different approximations at x = z = 0.1

Figure 2: Potentials for different approximations at .

A total of ten (10) point charges were generated for the purposes of this paper. Their distribution on the - plane is shown in FigureĀ 1a. On the plane , they generate a potential, which is shown as contours of constant in FigureĀ 1b.

To compare the dipole and quadrupole approximations to the exact potential, a plane parallel to the -axis was selected and ā€œcutā€ at the location . This plane was of particular interest due to the fact that it passes close to two positive charges at , and runs right in the middle of a dipole near . FigureĀ 2 shows the result. It can be observed that the dipole approximation cannot account for both of the positive charges on either side of the origin. This is due to the fact that the dipole approximation only allows for two turning points in its curve. Even with the quadrupole correction, the actual potential is emulated only in a very rough manner.

Calculation of the electric field yields the graphs in FigureĀ 3. FigureĀ 3a shows the complex structure of the electric field for multiple charges, and as one moves away from the charge distribution, the field appears to be that of a dipole, as can be seen in FigureĀ 3b.

(a)
(b)

Figure 3: Electric field of 10 unit charges viewed at (a) 2 m, and (b) 64 m away from the charge distribution.

References

  1. Kinzel, M., and G. Reents (1998). Multipole expansion. In M. Clajus, and B. Freeland-Clajus (Trans.), Physics by computer: programming physical problems using Mathematica and C, pp. 30-36. New York: Springer (Original work published 1996).

  2. Griffiths, D.J. (1999). Multipole expansion. Introduction to electrodynamics (3rd ed.), pp. 146-159. New Jersey: Prentice-Hall.

  3. Gradshteyn, I.S., and I.M. Ryzhik. (1994). Table of integrals, series, and products. Boston, MA: Academic Press.

  4. Hunter, J.D. (2007). Matplotlib: a 2D graphics environment. Computing in science and engineering 9(3), 90-95.

  5. Wilmott, P., S. Howison, and J. Dewynne. (1995). The mathematics of financial derivatives: a student introduction, p. 137. Cambridge University Press.

  6. Olver, P. (2013). Introduction to partial differential equations, p. 182. Springer Science & Business Media.

  7. christian. (2015, 10 December). Visualizing a vector field with Matplotlib. Retrieved 12 October 2018, from Learning scientific programming with Python.

Keywords

multipole expansion
electrostatics
charge distribution
electric potential
electric field
dipole approximation
quadrupole approximation