Professional Documents
Culture Documents
Finite Difference Solution of Maxwell's Equations
Finite Difference Solution of Maxwell's Equations
Finite Difference Solution of Maxwell's Equations
Maxwells Equations
The principles of electromagnetism have been deduced from experimental observations. These principles are Faradays law, Amp`eres law and Gausss laws for
electric and magnetic fields. James Clerk Maxwell (1831-1879) has discovered
the asymmetry in the above laws and introduced a new term in Amp`eres law, the
so-called displacement current. This alteration in Amp`eres law provides that a
changing electric flux produces a magnetic field, just as Faradays law provides that
a changing magnetic field produces an electric field. The asymmetry in Gausss laws
must be accepted until the existence of magnetic monopole is verified experimentally. The amended relationships of electricity and magnetism are called Maxwells
equations and are usually written in the form
E =
H
Jm ,
t
E
+ Je ,
t
(E) = %,
H=
(1.1.1)
(1.1.2)
(1.1.3)
(H) = 0,
(1.1.4)
(1.1.5)
where
is the electric field strength,
H = (Hx (t, x, y, z), Hy (t, x, y, z), Hz (t, x, y, z))
(1.1.6)
is the magnetic field strength (t is the time and x, y, z are the spatial coordinates),
and (electric permittivity and magnetic permeability) are material parameters, %
is the charge density, and Je and Jm are the electric and magnetic conductive current
1
densities, respectively. The first two equations are called curl equations and the last
to are the so-called divergence equations. The solution of Maxwells equations means
the computation of the field strengths using the material parameters and some initial
and boundary conditions. For the sake of simplicity we suppose that there are no
conductive currents and free charges in the computational domain (Je = 0, Je = 0,
% = 0), thus we have the system
E =
H
,
t
E
,
t
(E) = 0,
H=
(H) = 0,
(1.1.7)
(1.1.8)
(1.1.9)
(1.1.10)
It is easy to show that if equations (1.1.9) and (1.1.10) are satisfied by the initial
conditions, then they are valid automatically at any further time instant. Thus we
must solve only the system consisting of equations (1.1.7) and (1.1.8).
1.1.1. Exercise. Show the above statement, that is prove that if equations (1.1.9)
and (1.1.10) are valid in the initial state, then these equations can be omitted from
the system. 2
1.2
Figure 1.2.1: Number of FDTD publications from 1966 till 1995. (Source:
J.B. Schneider, K. Shlager, A Selective Survey of the Finite-Difference TimeDomain Literature, IEEE Antennas and Propagation Magazine, vol. 37, no. 4, 1995,
pp. 39-56.)
final results. Figure 1.2.2 shows two special computational results obtained by the
FDTD method.
The FDTD method solves the curl equations (1.1.7)-(1.1.8) supposing divergence
free initial conditions for the field strengths. The method starts with the definition
of a generally rectangular mesh (with the choice of the step-sizes x, y and z)
for the electric field and another staggered (by x/2, y/2 and z/2) grid for the
magnetic field in the computational domain. The building blocks of this mesh are
the so-called Yee-cells (see Figure 1.2.3). Let us choose a positive time step t,
and let us introduce the notation Ex |ni,j,k for the approximation of the x-component
of the electric field at the point (ix, jy, kz) and at the time instant nt. The
value of the material parameter at the point (ix, jy, kz) is denoted by i,j,k (
is supposed to be independent of time). The same notations are used for the other
field components and material parameters. With the above notations the FDTD
method computes the numerical solution as follows.
n
Ex |n+1
i+1/2,j,k Ex |i+1/2,j,k
1
i+1/2,j,k
(1.2.11)
n+1/2
n+1/2
Hz |i+1/2,j+1/2,k Hz |i+1/2,j1/2,k
n
Ey |n+1
i,j+1/2,k Ey |i,j+1/2,k
y
=
n+1/2
n+1/2
Hy |i+1/2,j,k+1/2 Hy |i+1/2,j,k1/2
z
(1.2.12)
1
i,j+1/2,k
n+1/2
n+1/2
Hx |i,j+1/2,k+1/2 Hx |i,j+1/2,k1/2
z
n
Ez |n+1
i,j,k+1/2 Ez |i,j,k+1/2
1
i,j,k+1/2
n+1/2
n+1/2
n+1/2
n+1/2
Hx |i,j+1/2,k+1/2 Hx |i,j1/2,k+1/2
y
n1/2
1
i,j+1/2,k+1/2
(1.2.14)
!
,
z
y
n1/2
n+1/2
Hz |i+1/2,j+1/2,k Hz |i+1/2,j+1/2,k
t
=
(1.2.13)
Hx |i,j+1/2,k+1/2 Hx |i,j+1/2,k+1/2
=
n+1/2
Hy |i+1/2,j,k+1/2 Hy |i1/2,j,k+1/2
n+1/2
n+1/2
Hz |i+1/2,j+1/2,k Hz |i1/2,j+1/2,k
1
i+1/2,j+1/2,k
(1.2.15)
!
.
y
x
(i,j+1,k+1)
(i,j,k+1)
Ez
(i+1,j,k+1)
(i+1,j+1,k+1)
Hy
z
Ex
Hx
Ey (i,j+1,k)
(i,j,k)
(i+1,j,k)
Hz
(i+1,j+1,k)
Divergence-free nature
It is crucial for any numerical solution of the Maxwells equations to enforce the
divergence free property of the fields. We now demonstrate that the FDTD algorithm
satisfies (1.1.10) for each cell in the grid, and therefore the grid as a whole. We will
approximate the divergence of E (that is E = Ex /x + Ey /y + Ez /z) in the
center of the Yee cell shown in Figure 1.2.3 and at the time instant (n + 1)t. (For
the sake of simplicity we suppose that is independent of the space coordinate).
Thus we have
(E)n+1
i+1/2,j+1/2,k+1/2
n+1
Ex |n+1
i+1/2,j,k Ex |i1/2,j,k
n+1
Ey |n+1
i,j+1/2,k Ey |i,j1/2,k
n+1/2
n+1/2
n+1/2
n+1
Ez |n+1
i,j,k+1/2 Ez |i,j,k+1/2
=
x
y
z
Ex |ni+1/2,j,k Ex |ni1/2,j,k Ey |ni,j+1/2,k Ey |ni,j1/2,k Ez |ni,j,k+1/2 Ez |ni,j,k+1/2
=
+
+
=
x
y
z
n+1/2
xy
xz
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
n+1/2
xz
xy
yz
xy
xy
yz
xz
yz
Hx |i,j+1/2,k1/2 Hx |i,j1/2,k1/2
yz
Hy |i+1/2,j,k1/2 Hy |i1/2,j,k1/2
xz
(1.2.16)
i/2,j/2,k/2
if
if
if
if
if
if
i/2,j/2,k/2
( H)
1
t ( E) =
,
(1.2.18)
1
( E)
t ( H) = ,
(1.2.19)
i/2,(j+1)/2,k/2 (t)
di/2,j/2,k/2 (t)
i/2,(j1)/2,k/2 (t)
1
=
dt
i/2,j/2,k/2 y i/2,(j+1)/2,k/2 y i/2,(j1)/2,k/2
(1.2.20)
i/2,j/2,(k+1)/2 (t)
i/2,j/2,(k1)/2 (t)
, if i is odd and j, k are even,
+
z i/2,j/2,(k+1)/2 z i/2,j/2,(k1)/2
"
di/2,j/2,k/2 (t)
i/2,j/2,(k+1)/2 (t)
i/2,j/2,(k1)/2 (t)
1
=
(1.2.21)
dt
i/2,j/2,k/2 z i/2,j/2,(k+1)/2 z i/2,j/2,(k1)/2
#
(i+1)/2,j/2,k/2 (t)
(i1)/2,j/2,k/2 (t)
, if j is odd and i, k are even,
+
x (i+1)/2,j/2,k/2 x (i1)/2,j/2,k/2
"
di/2,j/2,k/2 (t)
(i+1)/2,j/2,k/2 (t)
(i1)/2,j/2,k/2 (t)
1
=
dt
i/2,j/2,k/2 x (i+1)/2,j/2,k/2 x (i1)/2,j/2,k/2
(1.2.22)
i/2,(j+1)/2,k/2 (t)
i/2,(j1)/2,k/2 (t)
+
, if k is odd and i, j are even,
y i/2,(j+1)/2,k/2 y i/2,(j1)/2,k/2
"
di/2,j/2,k/2 (t)
i/2,j/2,(k+1)/2 (t)
i/2,j/2,(k1)/2 (t)
1
=
(1.2.23)
dt
i/2,j/2,k/2 z i/2,j/2,(k+1)/2 z i/2,j/2,(k1)/2
#
i/2,(j+1)/2,k/2 (t)
i/2,(j1)/2,k/2 (t)
+
, if j, k are odd and i is even,
y i/2,(j+1)/2,k/2 y i/2,(j1)/2,k/2
"
(i+1)/2,j/2,k/2 (t)
(i1)/2,j/2,k/2 (t)
di/2,j/2,k/2 (t)
1
=
(1.2.24)
dt
i/2,j/2,k/2 x (i+1)/2,j/2,k/2 x (i1)/2,j/2,k/2
#
i/2,j/2,(k1)/2 (t)
i/2,j/2,(k+1)/2 (t)
+
, if i, k are odd and j is even,
z i/2,j/2,(k+1)/2 z i/2,j/2,(k1)/2
"
di/2,j/2,k/2 (t)
i/2,(j+1)/2,k/2 (t)
i/2,(j1)/2,k/2 (t)
1
=
(1.2.25)
dt
i/2,j/2,k/2 y i/2,(j+1)/2,k/2 y i/2,(j1)/2,k/2
#
(i+1)/2,j/2,k/2 (t)
(i1)/2,j/2,k/2 (t)
+
, if i, j are odd and k is even,
x (i+1)/2,j/2,k/2 x (i1)/2,j/2,k/2
which can be written in a shorter form as
d(t)
= A(t), t > 0.
dt
(1.2.26)
1/( .,.,. .,.,. .), that is A is a sparse matrix. A is a skew-symmetric matrix (A> =
A).
The system (1.2.26) must be solved applying a divergence-free initial condition for
(0). The solution can be written in the form
(t) = exp(tA)(0),
(1.2.27)
where exp(tA) denotes the exponential matrix and it is well-defined with the Taylorseries of the exponential function. This matrix exponential cannot be computed
directly because A is a very large matrix. According to this representation, usually,
the numerical methods for the Maxwell equations are based on some approximation of the matrix exponential exp(tA). With the choice of a time-step t > 0
(t + t) = exp(tA)(t)
(1.2.28)
(1.2.29)
Contents
1 Finite Difference Solution of Maxwells Equations
1.1 Maxwells Equations . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Finite Difference Time Domain Method . . . . . . . . . . . . . . . . .
10
1
1
2