Skip to main content
Journal of Research of the National Institute of Standards and Technology logoLink to Journal of Research of the National Institute of Standards and Technology
. 2000 Aug 1;105(4):557–564. doi: 10.6028/jres.105.045

Equations for the Magnetic Field Produced by One or More Rectangular Loops of Wire in the Same Plane

Martin Misakian 1
PMCID: PMC4877158  PMID: 27551623

Abstract

Beginning with expressions for the vector potential, the equations for calculating the magnetic flux density from up to three rectangular loops of wire in the same plane are derived. The geometry considered is the same as that found in some walk-through metal detectors and electronic article surveillance systems. Equations for more or fewer loops can be determined by inspection. A computer program for performing the magnetic field calculation is provided in an appendix.

Keywords: equations, electronic article surveillance systems, magnetic field, metal detector, rectangular coils

1. Introduction

The expression for the magnetic flux density from a single rectangular loop of wire of many turns can be found in text books and various publications [13]. The rectangular geometry is convenient, in part, because the expressions for the three spatial components of the flux density are in closed form. Single square coils have been used for calibration of extremely low frequency magnetic field meters for applications that require uncertainties of a few percent [2]. Multiple rectangular loops with a common axis have found applications in a number of fields, including biological exposure systems for in vivo and in vitro studies [3,4]. It is also noteworthy that a square Helmholtz coil produces a greater volume of nearly uniform magnetic field than a circular Helmholtz coil of comparable dimensions [5]. This paper develops expressions for the magnetic flux density produced by three rectangular loops of wire that lie in the same plane, i.e., loops that are not co-axial. The geometry is similar to that used in some walk-through metal detectors and electronic article surveillance systems. By inspection, the expressions for more or fewer loops are easily determined. We consider static and time varying fields that are quasi-static. In the latter case, the wavelength λ of the time varying field is much greater than any dimension or distance of interest. For example, a 1 MHz alternating field (λ ≈ 300 m) is well approximated as being quasi-static a few meters or less from loops of comparable dimensions. The quasi-static condition allows us to solve the static field problem first and, with negligible error, introduce the time dependence as a multiplicative factor, e.g., the direct current in the field equations could be replaced with an alternating current. The field equations are for rectangular loops with a single turn of wire. The magnetic flux density for loops with more than one turn are found by multiplying the equations by the appropriate number of turns.

2. Field Equations

We follow the development of Weber [1] by first considering the vector potential for a rectangular loop of wire in the x-y plane, Ax and Ay, and then calculating the vector components of the magnetic flux density using the relations

Bx=Ayz,By=Axz,Bz=AyxAxy. (1)

For a single rectangular loop of wire of negligible wire cross section, designated as loop 1, with side dimensions 2a1 by 2b1 as shown in Fig. 1, the components of the vector potential are [1]

Ax1=μ0I14πln[(r1+a1+x)(r2a1+x)(r3a1+x)(r4+a1+x)], (2)

and

Ay1=μ0I14πln[(r2+b1+y)(r3b1+y)(r4b1+y)(r1+b1+y)], (3)

where μ0 is the magnetic constant (also called the magnetic permeability of vacuum), and I1 is the current in the loop.

Fig. 1.

Fig. 1

Geometry for a single rectangular loop of wire in the x-y plane. The magnetic flux density is evaluated at point P(x, y, z).

The parameters r1, r2, r3, and r4 are the distances from the corners of the loop to the point P(x, y, z) where the magnetic flux density will be evaluated (see below and Fig. 1).

The z-component of the magnetic flux density at P(x, y, z) is

Bz1=μ0I14πa=14[(1)αdαrα[rα+(1)α+1Cα]Cαrα[rα+dα]], (4)

where

C1=C4=a1+xd1=d2=y+b1C2=C3=a1xd3=d4=yb1r1=(a1+x)2+(y+b1)2+z2r2=(a1x)2+(y+b1)2+z2r3=(a1x)2+(yb1)2+z2r4=(a1+x)2+(yb1)2+z2.

Equation (4) is equivalent to that given in Ref. [1], but perhaps in a more convenient form for writing a computer program to calculate the magnetic flux density.

From Eqs. (1) to (3), the expressions for the x- and y-components of the magnetic flux density can be readily derived and are

Bx1=μ0I14πα=14[(1)α+1zrα[rα+dα]], (5)

and

By1=μ0I14πα=14[(1)α+1zrα[rα+(1)α+1Cα]]. (6)

The x-component of the vector potential for a second loop of wire of side dimensions 2a2 by 2b2 that is displaced from the origin by a distance s2 and bisected by the y-axis (see Fig. 2) is given by [1]

Ax2=μ0I24π[l=a2l=a2dlR+l=a2l=a2dlR] (7)

where

R=(xl)2+(ys2+b2)2+z2R=(xl)2+(ys2b2)2+z2,

and I2 is the current in loop 2.

Fig. 2.

Fig. 2

Geometry for a second rectangular loop of wire in x-y plane. The point P(x, y, z) coincides with that in Fig. 1 (note that the scales of Figs. 1 and 2 are not the same).

The integrals can be solved using elementary methods and yield

Ax2=μ0I14πln[(r1+a2+x)(r2a2+x)(r3a2+x)(r4+a2+x)], (8)

where r1, r2, r3, and r4 are the distances from the corners of loop 2 to the point P(x, y, z) where the magnetic flux density will be evaluated (see below).

The expression for Ay2 can be similarly determined and is given by

Ay2=μ0I14πln[(r2+b2+ys2)(r3b2+ys2)(r4b2+ys2)(r1+b2+ys2)]. (9)

Taking the appropriate derivatives of Eqs. (8) and (9), the expression for the z-component of the magnetic flux density at P(x, y, z) associated with loop 2 is

Bz2=μ0I24πα=14[(1)αdαrα[rα+(1)α+1Cα]Cαrα(rα+dα)], (10)

where

C1=C4=a2+xd1=d2=y+b2s2C2=C3=a2xd3=d4=yb2s2r1=(a2+x)2+(y+b2s2)2+z2r2=(a2x)2+(y+b2s2)2+z2r3=(a2x)2+(yb2s2)2+z2r4=(a2+x)2+(yb2s2)2+z2.

From Eqs. (1), (8), and (9), the x- and y-components of the magnetic flux density due to loop 2 are

Bx2=μ0I24πα=14[(1)α+1zrα[rα+dα]] (11)

and

By2=μ0I24πα=14[(1)α+1zrα[rα+(1)α+1Cα]]. (12)

The equations for the flux density components at P(x, y, z) from a third rectangular loop with side dimensions 2a3 by 2b3, displaced from the origin by a distance s3 and bisected by the y-axis follow by inspection. That is

Bz3=μ0I34πa=14[(1)αdαrα[rα+(1)α+1Cα]Cαrα[rα+dα]]. (13)

where

C1=C4=a3+xd1=d2=y+b3s3C2=C3=a3xd3=d4=yb3s3r1=(a3+x)2+(y+b3s3)2+z2r2=(a3x)2+(y+b3s3)2+z2r3=(a3x)2+(yb3s3)2+z2r4=(a3+x)2+(yb3s3)2+z2,

and I3 is the current in loop 3.

The x- and y-components of the magnetic flux density due to loop 3 are

Bx3=μ0I34πα=14[(1)α+1zrα[rα+dα]] (14)

and

By3=μ0I34πα=14[(1)α+1zrα[rα+(1)α+1Cα]]. (15)

The spatial components of the magnetic flux density at P(x, y, z) due to all three loops (Fig. 3) are found by summing the respective contributions from each loop, i.e.,

BzT=Bz1+Bz2+Bz3BxT=Bx1+Bx2+Bx3ByT=By1+By2+By3. (16)

Fig. 3.

Fig. 3

Geometry for three rectangular loops of wire in a vertical plane. The origin of the coordinate system is at the center of loop 1.

For direct currents in the loops, the direction of the magnetic flux density will remain fixed and is described by the vector

B=BxTi+ByTj+BzTk, (17)

where i, j, and k are unit vectors along the x, y, and z directions, respectively. The magnitude of the magnetic flux density vector will also be constant and equal to

|B|=BxT2+ByT2+BzT2. (18)

For alternating currents in the loops that are in phase, for example I1sin(ωt), I2sin(ωt), and I3sin(ωt), the magnetic flux density is described by the vector

B=[BxTi+ByTj+BzTk]sin(ωt). (19)

where I1, I2, and I3 are current amplitudes, ω is the angular frequency, and t is the time. The flux density is said to be linearly polarized because of its oscillatory motion along a straight line. The magnitude of the vector will be time dependent and equal to

|BxT2+ByT2+BxT2sin(ωt)|.

If the alternating currents in the various loops are not in phase, the magnetic flux density vector will rotate and the point of the vector will, in general, trace an ellipse [6]. The magnitude and direction of the magnetic flux density at a given point in space will change as a function of time. For this case, the flux density is said to be elliptically polarized.

As a convenience to the reader, a program for calculating the static magnetic flux density from three coils in the x-y plane as shown in Fig. 3 is provided in Appendix A.

Biography

About the author: Martin Misakian is a physicist in the Electricity Division of the NIST Electronics and Electrical Engineering Laboratory. The National Institute of Standards and Technology is an agency of the Technology Administration, U.S. Department of Commerce.

3. Appendix A. Program for Calibrating the Magnetic Flux Density

The Quick Basic1 program below calculates the magnetic flux density at a point x, y, z specified in the input statement for three rectangular loops of single turn wire with side dimensions 2a1, 2b1, 2a2, 2b2, 2a3, and 2b3. The loops are separated by distances s2 and s3, and are bisected by the y-axis. The origin of the coordinate system is at the center of loop 1. Figure 3 shows the geometry of the three loops and a point P(x, y, z) where the magnetic flux density is calculated. The program assumes that I1 = I2 = I3 = 1 A of direct current and that the current is in the counter clockwise direction as one views the current looking down on the x-y plane (e.g., see Fig. 1). All dimensions are in meters and the magnetic flux density will be in units of 10−7 T. For example, with 2a1, 2b1, 2a2, 2b2, 2a3, and 2b3 equal to 1.0 m, 0.5 m, 2.0 m, 1 m, 0.5 m, and 0.3 m, respectively, separated by distances s2 = 1.5 m and s3 = 2.5 m, the magnitude of the magnetic flux density |B| at x = 0.75 m, y = 0.75 m, and z = 1 m is 0.95170 × 10−7 T.

REM PROGRAM TO CALCULATE B-FIELD FROM THREE RECTANGULAR SINGE TURN COILS WITH REM SIDE DIMENSIONS 2A1 X 2B1, 2A2 X 2B2, AND 2A3 X 2B3, AND SEPARATED BY DISTANCES REM S2 AND S3, RESPECTIVELY. ALL THREE LOOPS ARE IN THE X-Y PLANE AND THE REM Y-AXIS BISECTS EACH RECTANGLE; SEE FIG. 3.
DEFDBL A-H, K-Z
CLS
DIM C(4), D(4), P(4), Q(4), T(4), R(4)
DIM CP(4), DP(4), PP(4),QP(4), TP(4), RP(4)
DIM CPP(4), DPP(4), PPP(4), QPP(4), TPP(4), RPP(4)
PRINT “ENTER: A1, B1, A2, B2, A3, B3, S2, S3, X, Y, Z”
INPUT A1, B1, A2, B2, A3, B3, S2, S3, X, Y, Z
REM TERMS FOR LOOP 1
C(1) = A1 + X
C(2) = A1 – X
C(3) = −C(2)
C(4) = −C(1)
D(1) = B1 + Y
D(2) = D(1)
D(3) = Y − B1
D(4) = D(3)
R(1) = SQR(C(1)^2 + D(1)^2 + Z^2)
R(2) = SQR(C(2)^2 + D(1)^2 + Z^2)
R(3) = SQR(C(2)^2 + (B1 − Y)^2 + Z^2)
R(4) = SQR(C(1)^2 + (B1 − Y)^2 + Z^2)
REM CORRESPONDING TERMS FOR LOOP 2
CP(1) = A2 + X
CP(2) = A2 – X
CP(3) = −CP(2)
CP(4) = −CP(1)
DP(1) = Y + B2 − S2
DP(2) = DP(1)
DP(3) = Y − B2 − S2
DP(4) = DP(3)
RP(1) = SQR(CP(1)^2 + DP(1)^2 + Z^2)
RP(2) = SQR(CP(2)^2 + DP(1)^2 + Z^2)
RP(3) = SQR(CP(2)^2 + DP(3)^2 + Z^2)
RP(4) = SQR(CP(1)^2 + DP(4)^2 + Z^2)
REM CORRESPONDING TERMS FOR LOOP 3
CPP(1) = A3 + X
CPP(2) = A3 – X
CPP(3) = −CPP(2)
CPP(4) = −CPP(1)
DPP(1) = Y + B3 − S3
DPP(2) = DPP(1)
DPP(3) = Y − B3 − S3
DPP(4) = DPP(3)
RPP(1) = SQR(CPP(1)^2 + DPP(1)^2 + Z^2)
RPP(2) = SQR(CPP(2)^2 + DPP(1)^2 + Z^2)
RPP(3) = SQR(CPP(2)^2 + DPP(3)^2 + Z^2)
RPP(4) = SQR(CPP(1)^2 + DPP(4)^2 + Z^2)
REM CALCULATE X COMPONENT OF LOOP 1 (BX1)
FOR J = 1 TO 4
P(J) = (Z*(−1)^(J+1))/((R(J) + D(J))*R(J))
NEXT J
BX1 = 0
FOR I = 1 TO 4
BX1 = BX1 + P(I)
NEXT I
PRINT “BXFIELD1 =”; BX1
REM CALCULATE Y COMPONENT OF LOOP 1 (BY1)
FOR J = 1 TO 4
P(J) = (Z*(−1)^(J+1))/((R(J) + ((−1)^(J +1))*C(J))*R(J))
NEXT J
BY1 = 0
FOR I = 1 TO 4
BY1 = BY1 + P(I)
NEXT I
PRINT “BYFIELD1 =”; BY1
REM CALCULATE Z COMPONENT OF LOOP 1 (BZ1)
FOR J = 1 TO 4
P(J) = ((−1)^J)*D(J)/(R(J)*(R(J) + ((−1)^(J + 1))*C(J)))
Q(J) = C(J)/(R(J)*(R(J) + D(J)))
T(J) = P(J) + Q(J)
NEXT J
BZ1 = 0
FOR I = 1 TO 4
BZ1 = BZ1 + T(I)
NEXT I
PRINT “BZFIELD1 =”; BZ1
PRINT
REM CORRESPONDING TERMS FOR LOOP 2; BEGIN WITH X COMPONENT OF LOOP 2 (BX2)
FOR J = 1 TO 4 PP(J) = (Z*(−1)^(J+1))/((RP(J) + DP(J))*RP(J))
NEXT J
BX2 = 0
FOR I = 1 TO 4
BX2 = BX2 + PP(I)
NEXT I
PRINT “BXFIELD2 =”; BX2
REM CALCULATE Y COMPONENT OF LOOP 2 (BY2)
FOR J = 1 TO 4
PP(J) = (Z*(−1)^(J+1))/((RP(J) + ((−1)^(J +1))*CP(J))*RP(J))
NEXT J
BY2 = 0
FOR I = 1 TO 4
BY2 = BY2 + PP(I)
NEXT I
PRINT “BYFIELD2 =”; BY2
REM CALCULATE Z COMPONENT OF LOOP 2 (BZ2)
FOR J = 1 TO 4
PP(J) = ((−1)^J)*DP(J)/(RP(J)*(RP(J) + ((−1)^(J + 1))*CP(J)))
QP(J) = −CP(J)/(RP(J)*(RP(J) + DP(J)))
TP(J) = PP(J) + QP(J)
NEXT J
BZ2 = 0
FOR I = 1 TO 4
BZ2 = BZ2 + TP(I)
NEXT I
PRINT “BZFIELD2 =”; BZ2
PRINT
REM CORRESPONDING TERMS FOR LOOP 3; BEGIN WITH X COMPONENT OF LOOP 3 (BX3)
FOR J = 1 TO 4
PPP(J) = (Z*(−1)^(J+1))/((RPP(J) + DPP(J))*RPP(J))
NEXT J
BX3 = 0
FOR I = 1 TO 4
BX3 = BX3 + PPP(I)
NEXT I PRINT “BXFIELD3 =”; BX3
REM CALCULATE Y COMPONENT OF LOOP 3 (BY3)
FOR J = 1 TO 4
PPP(J) = (Z*(−1)^(J+1))/((RPP(J) + ((−1)^(J +1))*CPP(J))*RPP(J))
NEXT J
BY3 = 0
FOR I = 1 TO 4
BY3 = BY3 + PPP(I)
NEXT I
PRINT “BYFIELD3 =”; BY3
REM CALCULATE Z COMPONENT OF LOOP 3 (BZ3)
FOR J = 1 TO 4
PPP(J) = ((−1)^J)*DPP(J)/(RPP(J)*(RPP(J) + ((−1)^(J + 1))*CPP(J)))
QPP(J) = −CPP(J)/(RPP(J)*(RPP(J) + DPP(J)))
TPP(J) = PPP(J) + QPP(J)
NEXT J
BZ3 = 0
FOR I = 1 TO 4
BZ3 = BZ3 + TPP(I)
NEXT I
PRINT “BZFIELD3 =”; BZ3
PRINT
REM COMBINE SPATIAL COMPONENTS OF B-FIELD FROM LOOPS 1, 2, AND 3
BXT = BX1 + BX2 + BX3
BYT = BY1 + BY2 + BY3
BZT = BZ1 + BZ2 + BZ3
REM MAGNITUDE OF B VECTOR
BMAG = SQR(BXT^2 + BYT^2 + BZT^2)
PRINT “BXTOTAL =”; BXT; “BYTOTAL =”; BYT; “BZTOTAL =”; BZT
PRINT “MAGNITUDE OF B =”; BMAG
PRINT “X =”; X; “Y =”; Y; “Z =”; Z
END

Footnotes

1

Certain commercial products are identified in this paper to foster understanding. Such identification does not imply recommendation or endorsement by the National Institute of Standards and Technology, nor does it imply that the materials identified are necessarily the best available for the purpose.

4. References

  • 1.Weber E. Electromagnetic Theory. Dover; New York: 1965. p. 131. [Google Scholar]; The positive sign for the second integral in Eq. (7) is incorrectly shown as a minus sign in Weber’s text.
  • 2.IEEE Standard Procedures for Measurement of Power Frequency Electric and Magnetic Fields from AC Power Lines. Institute of Electrical and Electronic Engineers, Inc.; New York: 1995. [Google Scholar]
  • 3.Misakian M, Sheppard AR, Krause D, Frazier MF, Miller D. Biological, Physical, and Electric Parameters for In Vitro Studies With ELF Magnetic and Electric Fields: A Primer. Bioelectromagnetics. 1993;(Supplement 2) doi: 10.1002/bem.2250140703. [DOI] [PubMed] [Google Scholar]
  • 4.Baum JW, Kuehner AV, Benz RD, Carston AL. A System for Simultaneous Exposure of Small Animals to 60-Hz Electric and Magnetic Fields. Bioelectromagnetics. 1991;12:85–99. doi: 10.1002/bem.2250120204. [DOI] [PubMed] [Google Scholar]
  • 5.Frix WM, Karady GG, Venetz BA. Comparison of Calibration Systems for Magnetic Field Measurement Equipment. IEEE Trans Power Delivery. 1994;9:100–109. [Google Scholar]
  • 6.Adler RB, Chu LJ, Fano RM. Electromagnetic Energy, Transmission, and Radiation. Wiley; New York: 1960. p. 15. [Google Scholar]

Articles from Journal of Research of the National Institute of Standards and Technology are provided here courtesy of National Institute of Standards and Technology

RESOURCES