Nonstandard Finite Difference Time Domain Methodology to Simulate Light Propagation in Nonlinear Materials
James B. Cole
University of Tsukuba, Japan
cole@cavelab.cs.tsukuba.ac.jp
Submitted On: July 17, 2023; Accepted On: April 24, 2024
We extend the nonstandard (NS) finite difference time domain (FDTD) methodology, originally developed to solve Maxwell’s equations in linear materials, to nonlinear ones. We validate it by computing harmonics generation in a nonlinear dielectric and comparing with theory. The methodology also applies to the quantum electrodynamics that describes the interaction of charged particles with electromagnetic fields, and also to the Ginzburg-Landau model of superconductivity.
Index Terms: Finite difference time domain (FDTD), nonlinear optics, nonlinear susceptibility, nonstandard FDTD, quantum electrodynamics, superconductivity.
The conventional or standard (S) finite difference time domain (FDTD) methodology [1] is widely used for linear electromagnetic calculations, but its accuracy is low relative to the computational cost. At wavelength for space-step size , its error scales as and in three dimensions its computational also cost scales as . We [2] have introduced what is called a nonstandard (NS) FDTD methodology [3] for which the error scales as , but computational cost still scales as .
Nonlinear problems are generally difficult to solve analytically, but numerical methods also often fail to yield good solutions unless the discretization steps are small, and even then numerical instability can arise. A classic example is the logistic equation, the discrete form of which is a well-known example of deterministic chaos. In this paper we extend the NS-FDTD methodology to solve Maxwell’s equations for nonlinearmaterials.
Although not the topic of this paper, the methodology is also useful to solve certain problems in quantum mechanics. For example, the Hamiltonian of a changed particle (of mass charge ) in an electromagnetic field [4] (vector potential A, scalar potential ) is nonlinear in the form:
(1) |
In a nonlinear dielectric the electric displacement is , where is the vacuum electric permeability, and the electric field. We use units in which and the vacuum magnetic permeability is (vacuum velocity of light). Retaining only second order nonlinearity, and defining then . Taking the magnetic susceptibility to be everywhere, Maxwell’s equations become:
(2) |
and the index of refraction is . In a linear material implies but this is not true in a nonlinear one. If, however, is small, is a good approximation [5], and Maxwells equations reduce to a nonlinear wave equation of the form:
(3) |
For simplicity, we first develop the finite difference model of (3) in one dimension, where it reduces to:
(4) |
Before proceeding further, we first introduce the nonstandard methodology for the linear wave equation.
Define the partial difference operator () by . Then it is easy to show that is given by:
(5) |
The second derivative is thus approximated by:
(6) |
The operator is defined analogously to and:
(7) |
We now construct finite difference models of the homogeneous wave equation:
(8) |
Writing and replacing the derivatives in (8) with the FD expressions (6) and (7), gives the conventional or standard (S) finite difference (FD) model of (8):
(9) |
General solutions of (8) arewhere is arbitrary. Substituting into the S-FD model above, we find:
(10) |
The right side of (10) is the model error. Although it vanishes for , across multiple media in which varies, maintaining by adjusting or gives rise to large errors on the media boundaries and is thus of limited use in practice.
It is, however, possible to construct an exact FD model with respect to harmonic waves, where . Writing , , and substituting into (9) gives:
(11) |
The right side of (11) can be made to vanish with the substitution , where:
(12) |
Thus, an exact model of the wave equation with respect to harmonic waves is:
(13) |
This FD model is exact because is a solution of both the wave equation (8) and its model (13). This is an example of what is called an NS model [3]. Expanding via (5) and solving for , we obtain an exact NS FDTD algorithm:
(14) |
The numerical stability condition [2, 6] for the S- and NS-FDTD algorithms is:
(15) |
In the case , the S- and NS-FD models are equivalent and exact with respect to any waveform. However, whatever the value of , for a supposition different frequencies, the shortest period () corresponding to the highest frequency () must satisfy the Nyquist sampling criterion [7]:
(16) |
and the minimum wavelength () must satisfy:
(17) |
To iterate the FDTD algorithm, two initial fields are needed. They can be generated by turning on sources at time = 0. The wave equation with a source is:
(18) |
Standard finite difference model
Substituting FD expressions of the derivatives in (18) the S-FD model is:
(19) |
It is interesting to note that while the stability conditions of (15), (16) and (17) still hold, the S-FDTD algorithm for the wave equation with a source is not exact even for .
Nonstandard finite difference model
To derive the NS-FD model, we examine the analytic solution of (18). Imposing the initial conditions that and its first time derivative vanish for , , the Green’s function that solves (18) is:
(20) |
where the step function is defined by for and for . Using (20) it can be shown that the harmonic point source:
(21) |
generates an outgoing unit sine wave:
(22) |
Modeling as , where for and for , and putting in (19), the S-FD model becomes:
(23) |
We now postulate the NS-FD model to be:
(24) |
where , which is to be determined. Requiring that be a solution of both (18), with , and of (24), we find [3]:
(25) |
When a source is abruptly switched on in FDTD calculations it produces extraneous frequency components which give rise to large errors [3]. This is remedied by replacing the step function with a slow switch-on function. A commonly used one is:
(26) |
Taking to be several wave periods suffices to suppress the errors. The NS source model which generates in a NS-FDTD calculation is thus:
(27) |
With given by (25) the NS-FD model (24) is exact. As expected, in the limits and , the NS-FD model reduces to the S-FD one.
The NS-FDTD model of the wave equation with a harmonic point source is thus:
(28) |
When the iteration of (28) generates the outgoing unit sine wave given by (22), where and are related by:
(29) |
Initialization and iteration
The FDTD calculation is initialized by taking
(30) |
and switching on the source at generates the incident field.
The boundary conditions at material interfaces are determined by the wave equation itself, viz. continuity of both the field and its first partial derivative with respect to position. Since null fields obviously satisfy these conditions, and because FDTD derives directly from the wave equation, the generated fields automatically satisfy the boundary conditions as they impinge upon material interfaces when the algorithm is iterated.
It might seem that NS-FDTD is applicable only to monochromatic waves, but it is also valid for multiple frequencies. For a fixed value of , models (13) and (24) are exact for any angular frequency-wavenumber pair related by:
(31) |
Thus, the NS-FD model is exact with respect to a multi-frequency wave of the form:
(32) |
which is produced by multi-frequency source superposition. For example:
(33) |
generates a frequency superposition of unit sine waves. Such a superposition is useful for high accuracy computations of reflection or transmission spectra. The maximum frequency is limited by the time step according to the Nyquist sampling criterion given by (16).
Let be the vacuum wave number and be the angular frequency of a light wave. In a medium of refractive index the wavenumber is . From (12) the algorithmic vacuum velocity of light in the NS-model is:
(34) |
In a medium of refractive index the algorithmic velocity of light is:
(35) |
Define the nonstandard index of refraction to be:
(36) |
The nonstandard FDTD algorithm (28) is thus:
(37) |
Before proceeding to the nonlinear NS-model we introduce a simplified and abbreviated notation. Discretizing space time as , and defining ,
(, integers), (37) is compactly rewritten as:
(38) |
with the definitions , (compare with equation 5).
First construct the S-FD model of (4). For notational clarity suppress the spatial dependence and denote time as a subscript, thus . Writing , the S-FD model of nonlinear wave equation (4) is:
(39) |
The intractability of this model is immediately evident. Since (39) is quadratic in , there are two solutions and it is unclear a priori which one to use.
In nonstandard models a term of power (a positive integer), such as is modeled as [3, 8]:
(40) |
The NS-model of is thus . Modeling as:
(41) |
postulate the NS-FD model of (4) to be:
(42) |
where is a nonstandard source term that generates the fields. Solving for we find:
(43) |
Whereas the FDTD algorithms for the linear wave equation require two initial fields, the NS-FDTD for nonlinear wave equation requires three. To iterate (4.2) Take , and switch on the source at .
We take the computational domain to be . In Fig. 1 the nonlinear dielectric (magenta) is immersed in vacuum (white) and illuminated by a point harmonic source (S) of angular frequency . S is located at , away from the computational boundary, thus:
(44) |
where . We choose and such that , and thus . Thus (only) in vacuum, as noted in Section II D, the S-FDTD and NS-FDTD algorithms are equivalent and exact. With the choices above in the vacuum:
(45) |
where . Because the boundaries of the computational domain are vacuum and , the Mur absorbing boundary [9, 10] is exact, and is given by:
(46) | ||
(47) |
Taking the vacuum wavelength of the incident field be , let , which implies the wave period . Setting
(48) |
gives . For this choice, the source simplifies to:
(49) |
Take = 1.6, , the source amplitude to be 1.1, , and the source rise time , where .
Figure 2 is a snapshot of the position dependence of . A time series of the electric field amplitude was collected at an observation point outside the dielectric after the source switched on and the field had completely traversed the dielectric. The data were analyzed with a discrete Fourier transform (DFT). The DFT amplitudes of the harmonic frequencies are shown in Fig. 3.
In Fig. 4 we compare our simulation with a semi-analytic calculation based on the low depletion approximation [1]. The low depletion model assumes that energy is slowly transferred from the fundamental mode to the higher harmonics. This is the usual case when is small.
The linear homogeneous wave equation in three dimensions is:
(50) |
where . Defining and by analogy with , define the Laplacian difference operator:
(51) |
Taking :
(52) |
The S-FD model for the three-dimensional wave equation is thus:
(53) |
where .
To construct the NS-model, define:
(54) |
The motivation and derivation of this definition is found in [3]. The NS-FD model of wave equation (50) becomes
(55) |
where is given by (12) and . The NS-source model remains the same but with .
Table 1 lists the stability conditions for the S- and NS- algorithms.
Table 1: Stability conditions for the S- and NS- algorithms
Maximum Stable Value | ||
---|---|---|
Theoretical/Practical | ||
S-FDTD | NS-FDTD | |
1-D | ||
2-D | ||
3-D |
For S-FDTD, the maximum value of is given, while for the NS-FDTD algorithm the maximum value of is given. The practical stability limits are somewhat lower due to the termination of the computational boundary. Details of the derivation are found in [2]. The greater stability of NS-FDTD allows the solution of problems using fewer time steps. The advantage over S-FDTD is greatest in three dimensions.
The NS-FD model has been validated against analytic solutions of Mie scattering [11, 12], as depicted in Fig. 5. An infinite plane wave (not shown) is incident from the left and the scattered field intensitycomputed.
In the vacuum (black) the wavelength is 800 nm and in the dielectric (white) it is , thus in the vacuum , but in the dielectric , which is just slightly greater that the minimum allowed by the Nyquist criterion for a 2-dimensional (uniform) grid where must satisfy . Nonetheless the NS-FDTD error remains low. The theoretical error of the NS-FDTD calculation is , while that of S-FDTD is .
The three-dimensional NS-FDTD algorithm for the nonlinear dielectric derives from the one-dimensional form (42) with the substitution :
(56) | |
where stands for the , , or component of .
We introduced a high precision finite difference time domain algorithm derived from a nonstandard finite difference model to simulate electromagnetic propagation in nonlinear dielectrics. We validated the results of our simulation against an analytic calculation based on the low depletion approximation [5].
This NS-methodology can also be applied to other nonlinear problems, such as quantum electrodynamics in magnetic fields, and to higher order nonlinearities.
We introduced our methodology in one-dimension and extended it to two and three dimensions and have verified its high accuracy and numerical stability [2].
[1] K. S. Kunz and R. J. Luebbers, The Finite Difference Time Domain Method for Electromagnetics. Boca Raton: CRC Press, 1993.
[2] J. B. Cole and S. Banerjee, Computing the Flow of Light, Bellingham: SPIE Press, 2017.
[3] R. Mickens, Advances in the Applications of Nonstandard Finite Difference Difference Schemes, Singapore: World Scientific, 2005.
[4] E. Merzbacher, Quantum Mechanics, 2nd ed. Hoboken: John Wiley, 1970.
[5] R. W. Boyd, Nonlinear Optics, 3 ed. Cambridge, MA: Academic Press, 2008.
[6] J. Strikwerda, Finite Difference Schemes and Partial Differential Equations, 2nd ed. Philadelphia: SIAM, 2004.
[7] J. R. Pierce, An Introduction to Information Theory: Symbols, Signalsand Noise, 2nd ed. New York: Dover Publications, 1980.
[8] A. Kiran Güçoğlu, The Solution of Some Differential Equations by Nonstandard Finite Difference Method, MS Dissertation, İzmir Institute of Technology, Türkiye, 2005.
[9] B. Engquist and A. Majda, “Absorbing boundary conditions for the numerical simulation of waves,” Mathematics of Computation, vol. 31, pp. 629–651, 1977.
[10] G. Mur, “Absorbing boundary conditions for the finite- difference approximation of the time domain electromagnetic field equations,” IEEE Transactions on Electromagnetic Compatibility, vol. 23, pp. 377–382, 1981.
[11] J. A. Stratton, Electromagnetic Theory. New York: McGraw-Hill Book Company, 1941.
[12] P. W. Barber and S. C. Hill, Light Scattering by Particles: Computational Methods, World Scientific, Singapore, 1990.
James B. Cole graduated from the University of Maryland, PhD particle physics. After a post-doctoral fellowship (US National Research Council) at the NASA-Goddard Space Flight Center, he was a research physicist at several US National Laboratories, before joining the faculty of University of Tsukuba (Japan).
After returning to the US, he was a senior research fellow of the National Academy of Sciences, and is now a corporate research physicist. He specializes in mathematical models and high precision algorithm development for applications to computational optics and photonics, quantum mechanics, and machine learning. He is one of the pioneers of the methodology of nonstandard finite differences, and has published numerous papers and a book on the subject.
ACES JOURNAL, Vol. 39, No. 3, 183–188
doi: 10.13052/2024.ACES.J.390303
© 2024 River Publishers
III. FINITE DIFFERENCE MODELS FOR THE LINEAR WAVE EQUATION
B. Standard finite difference model
C. Nonstandard finite difference model
D. Numerical stability and accuracy
E. Wave equation with a source
G. Nonstandard model of refractive index
IV. FINITE DIFFERENCE MODELS OF THE NONLINEAR WAVE EQUATION
A. Standard finite difference model
B. Nonstandard finite difference model
V. RESULTS AND COMPARISON WITH SEMI-ANALYTIC CALCULATION