Investigatory Project: Multipole Expansion
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
where
For
where
where
With the random seed fixed for reproducibility, all the pre-execution code was defined as a MultipoleExpansion
class
that takes an arbitrary even number
The electric potential was calculated for a meshgrid
for Axes3D
object [4]. To quantify the accuracy of the dipole and
quadrupole approximations, the potential was also plotted as a function of
Finally, the electric field was numerically evaluated using the central difference algorithm, as defined in
[5, 6], and was plotted using streamplot
[7].
Results
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
To compare the dipole and quadrupole approximations to the exact potential, a plane parallel to the
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.
Figure 3: Electric field of 10 unit charges viewed at (a) 2 m, and (b) 64 m away from the charge distribution.
References
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).
Griffiths, D.J. (1999). Multipole expansion. Introduction to electrodynamics (3rd ed.), pp. 146-159. New Jersey: Prentice-Hall.
Gradshteyn, I.S., and I.M. Ryzhik. (1994). Table of integrals, series, and products. Boston, MA: Academic Press.
Hunter, J.D. (2007). Matplotlib: a 2D graphics environment. Computing in science and engineering 9(3), 90-95.
Wilmott, P., S. Howison, and J. Dewynne. (1995). The mathematics of financial derivatives: a student introduction, p. 137. Cambridge University Press.
Olver, P. (2013). Introduction to partial differential equations, p. 182. Springer Science & Business Media.
christian. (2015, 10 December). Visualizing a vector field with Matplotlib. Retrieved 12 October 2018, from Learning scientific programming with Python.