1: \begin{abstract}
2: We propose a high-order FDTD scheme based on the correction function method (CFM)
3: to treat interfaces with complex geometry without increasing the complexity of the numerical approach for
4: constant coefficients.
5: Correction functions are modeled by a system of PDEs based on Maxwell's equations with interface conditions.
6: To be able to compute approximations of correction functions,
7: a functional that is a square measure of the error associated with the correction functions' system of PDEs
8: is minimized in a divergence-free discrete functional space.
9: Afterward,
10: approximations of correction functions are used to correct a FDTD scheme in the vicinity of an interface where
11: it is needed.
12: We perform a perturbation analysis on the correction functions' system of PDEs.
13: The discrete divergence constraint and the consistency of resulting schemes are studied.
14: Numerical experiments are performed for problems with different geometries of the interface.
15: A second-order convergence is obtained for a second-order FDTD scheme corrected using the CFM.
16: High-order convergence is obtained with a corrected fourth-order FDTD scheme.
17: The discontinuities within solutions are accurately captured without spurious oscillations.
18: \end{abstract}
19: