The courses about optics and photonics are a kind of professional foundation compulsory courses for information science and engineering undergraduates. It is an important part of the knowledge structure system of undergraduates majored in information science and engineering. However, due to the abstract concept of electromagnetic and optical theories in such courses, the spatial and temporal distributions are complex, and students need strong abstract thinking ability and spatial imagination ability. If we follow the traditional classroom static teaching methods, students cannot form a dynamic physical picture and this not only makes the classroom teaching effect poor, time-consuming and laborious, but also easily cause students to lose their interest in the process of learning. At the same time, the current optics and photonics courses place two much emphasis on the theory teaching and don’t have corresponding actual experiments due to the lack of expensive equipment facility or place, resulting in students unable to master and accurately understand the optical waves and fields of the actual spatial distribution and dynamic space process. In order to solve the existing teaching problems in these courses and improve the teaching quality and teaching effect, we should try to explore the introduction of the methods of computational photonics as the new teaching methods, and actively carry out visual teaching research in such courses. At present, computer-aided teaching tools, represented by professional math software such as MATLAB, Mathematica and Maple, have played an important role in many science and engineering teaching. The use of professional mathematical software can be combined with theoretical teaching and visual teaching, but also can design a large number of simulation teaching experiments, so as to deepen students’ understanding of optical theory and space-time imagination of electromagnetic fields. In this paper, we will analyze the classification and characteristics of the simulation function of Finite-difference Time-Domain (FDTD) method, a popular method of computational photonics, and explore its programming tactics in order to improve the visualization and attraction of teaching and learning in the relevant courses. Two examples with FDTD simulations are presented as two typical teaching cases in optics courses with MATALB graphical visualization in the form of animated pictures that allow students to more deeply understand the dynamic process of light propagation in classical optical structures.
In the past several decades, the finite-difference time-domain (FDTD) method has become one of the most powerful numerical techniques in solving the Maxwell’s curl equations  and has been widely applied to solve the complex optical and photonic problems . FDTD modeling has many strength. FDTD is a versatile modeling technique used to solve Maxwell’s equations. It is intuitive, so users can easily understand how to use it and know what to expect from a given model. The FDTD technique allows the user to specify the material at all points within the computational domain. Thus it can model any type of complicated structures. Nevertheless, a wide variety of dispersive dielectric and magnetic materials can be naturally and easily modeled. Since FDTD method calculates the electric and magnetic fields everywhere in the computational domain as they evolve in time, it lends itself to providing animated displays of the electromagnetic field movement through the model. Thus the obtained simulation results can be shown with graphical visualization by MATLAB in the form of animated pictures allow students to more deeply understand the dynamic process of light propagation in classical optics and photonics structures. Such as for modelling a dispersive medium described by the Drude model, and the corresponding constitutive relation is rewritten as
By applying the Maclaurin series expansion (MSE) approach proposed in  to realize the dispersive dielectric constant in the FDTD method, we have
with . In fact, the accuracy of MSE approach is higher than the other approaches in view of the FDTD implementation of Drude model .
On the other hand, the optical wave sources are critically important for solving any optics and photonics problems. Since the total-field/scattered-field (TF/SF) technique can be applied based on the well-known equivalence principle , the FDTD method also offers a great degree of convenience and flexibility in the excitation of various types of optics wave sources . Assume, without loss of generality, that the laser beam has the electromagnetic fields, EL(x, y, z, t) and HL(x, y, z, t). By utilizing the TF/SF source condition in the FDTD method, we can artificially generate arbitrary types of laser beams with the designed pattern and parameters. The TF/SF interface is perpendicular to the z axis and locates at z = (ks –1 / 4)Δz, so that the tangential components of total electric field on the grid plane z = ksΔz of YEE cells at the instant t = (n + 1)Δt can be updated by
with the y component of the magnetic field of the incident laser beam
with the x component of the magnetic field of the incident laser beam
On the other hand, the tangential components for the scattering magnetic field on the grid plane z = (ks –1 / 2)Δz at the instant t = (n +1 / 2)Δt can be updated by
with the y component of the electric field of the incident laser beam
with the x component of the electric field of the incident laser beam
Under this TF/SF source condition, we can numerically generate arbitrary types of optical waves with the designed pattern and parameters.
Total reflection at a diamond-air interface
The first teaching case is to study the phenomenon of total reflection at a diamond-air interface. The diamond is with refractive index 2.42 for a Gaussian beam with wavelength λ0 = 589nm. The Gaussian beam is with a waist width w0 = 2λ0 and is incident on the interface with an incident angle 45°, in which case the total reflection occurs. The FDTD simulation results about the transient and amplitude of the electric field of the Gaussian beam that are shown in Fig.1. It is apparent that the Gaussian beam does experience total reflection for an incident angle larger than critical angle.
Optical wave scattering from a dielectric cylinder
The second teaching case is to show a y-polarized uniform plane wave with amplitude E0y = 1V/m and wavelength λ0 = 589.29nmpropagating in air and scattered by a circular fused-quartz cylinder with radius R = 2.5λ0. The total sizes of the computation region is 16λ0 x 16λ0 and also surrounded by 20-layer PMLs. The spatial and temporal discretization parameters are Νλ = 20, nCFL = 1/2 and NT = 40. The simulation results are illustrated in Fig. 2. However, this problem has the analytical solution for the steady state calculated by using the formulas in Section 6.4.3 of Ref.  Fig. 3 show the FDTD simulation results when the steady sate is reached. Fig. 3 (b) and (c) show the simulation and analytical solution to the amplitude of the scattered waves, where the series summation is evaluated from n = -200 to n = 200. It can be seen that the FDTD method is highly accurate for this type of simulation and suitable for modeling the phenomena of light scattering.
The optics and photonics courses have always been difficult to teach and learn without the support of graphical visualization, numerical simulations and hands-on experiments. The finite-difference time-domain(FDTD) method combined with MATLAB is introduced to model typical teaching cases in optics and photonics courses. The FDTD method has many strengths that can be utilized to improve the visualization and attraction of teaching and learning in the optical and photonics courses. The obtained results with graphical visualization in the form of animated pictures allow students to more deeply understand the dynamic interaction of light propagation with classical optical structures. The discussed teaching methodology has a beneficial effect on enhancing the teaching effectiveness of optics and photonics courses and arousing the students’ learning interest.
This work is supported by the Undergraduate Education and Teaching Reform Research Project of Fujian Province (No: JZ160081) and the Undergraduate Education and Teaching Reform Key Project of Huaqiao University (No: 15JGZD08).
Taflove A. and Hagness, S. C., [Computational Electrodynamics: The Finite-Difference Time-Domain Method], Artech House, Norwood, MA (2005).Google Scholar
Taflove, A., Oskooi, A., and Johnson, S. G., [Advances in FDTD Computational Electrodynamics: Photonics and Nanotechnology], Artech House, Norwood, MA (2013).Google Scholar
Lin, Z., “Interaction of high power laser beams with plasma in ICF hohlraum using the FDTD method,” Proc. of SPIE, 10016, 100160W–11 (2016).Google Scholar
Lin, Z., Zhu, D., and Pu, J., “Research on MATLAB animation techniques in visual teaching of electromagnetic theory courses,” China Modern Educational Equipment, 259, 30–32 (2017).Google Scholar
Jin, J.-M., [Theory and computation of electromagnetic fields], John Wiley & Sons, Hoboken, NJ (2015).Google Scholar