betaFeedback

WorksMathematics

Toward Extreme-Scale Full-Wave Maxwell Simulation: Low-Dispersion Discretization and a Massively Parallel Three-Grid Solver

Abstract

Full-wave simulation of three-dimensional time-harmonic Maxwell problems over hundreds of wavelengths leads to indefinite systems with tens to hundreds of billions of unknowns. We present a matrix-free three-grid solver for such systems and its implementation on GPUs and CPUs. The solver is built on an interpolated optimized finite-difference (IOFD) discretization on the Yee grid, whose compact face and edge filters keep the phase error small at 6 points per wavelength, and it applies the same compact stencil on all three grids: an unshifted intermediate-grid correction is preconditioned by a complex-shifted auxiliary cycle, so that one preconditioner application performs a fixed number of stencil sweeps and reductions with storage linear in the number of unknowns. The implementation uses a partition nested across the grids, ss-step smoothers that need one global reduction per smoothing call, and bfloat16 storage of the smoother bases. On 216 GPUs, complete solves with approximately 71.771.7 billion complex unknowns take 77–504 seconds in homogeneous and heterogeneous media, with weak-scaling efficiencies of 89–91% per preconditioner application; strong scaling reduces solves with 2.7 billion unknowns to 4.5–18 seconds on 64 GPUs. A CPU implementation reaches approximately 574574 billion unknowns on 13,824 cores, and the computed fields agree with the outgoing Green field over domains of up to 956 wavelengths per direction.

*School of Mathematical Sciences and Fujian Provincial Key Laboratory on Mathematical Modeling and High Performance Scientific Computing, Xiamen University, Fujian 361005, China. Huangxin Chen was supported by National Key Research and Development Project of China (Grant No. 2024YFA1012600), National Natural Science Foundation of China (Grant No. 12471345, 12526102), and Fujian Provincial Natural Science Foundation of China (Grant No. 2026J011002).

†Corresponding author. School of Mathematical Sciences, Eastern Institute of Technology, Ningbo, Zhejiang 315200, P. R. China.

‡School of Mathematical Sciences, Shanghai Jiao Tong University, Shanghai 200240, P. R. China; School of Mathematical Sciences, Eastern Institute of Technology, Ningbo, Zhejiang 315200, P. R. China.

Introduction

Time-harmonic Maxwell equations govern electromagnetic propagation in scattering, antenna design, photonics, and imaging [18]. When the domain spans many wavelengths, two requirements meet. A small error in the numerical wavenumber accumulates into a large phase error along long propagation paths, while refinement is expensive: with ss points per wavelength, a domain of KK wavelengths in each direction requires O((sK)3)O((sK)^3) unknowns. The resulting systems are indefinite and, with perfectly matched layers (PMLs), complex and anisotropic [5, 9]. Simulation over hundreds of wavelengths therefore needs a discretization that is accurate at modest resolution and a solver whose work and storage grow linearly with the number of unknowns and map efficiently onto large GPU and CPU systems.

On the discretization side, the Yee grid [30] and Nédélec elements [19] preserve the curl structure of Maxwell equations but not the phase velocity. Phase accuracy has been improved through element order and quadrature blending [1, 2, 29], compact high-order staggered schemes [28], and weights or stabilization chosen from the discrete dispersion relation [21, 16, 10]. For the Helmholtz equation, optimized compact differences [17] and Stolk’s interpolated optimized finite differences (IOFD) [23] fit the stencil at the finite resolution that is actually used and tabulate the coefficients as functions of the local wavenumber. For Maxwell equations such a design must control two transverse polarizations while retaining the discrete gradient null space, and, for large-scale use, it must keep the compact stencil that a matrix-free solver applies on every level.

On the solver side, time-harmonic Maxwell systems have been solved by sparse direct methods [3] and their block low-rank variants [4], by overlapping Schwarz methods [6] and sweeping preconditioners [26, 27, 20], which transport information through coarse problems or approximate factorizations, and by geometric multigrid [15, 8]. For multigrid at high frequency, the coarse grids must represent the propagating waves while their solution stays inexpensive. Complex-shifted multigrid [12, 11], dispersion-matched coarse operators [24], and inexact unshifted coarse solves preconditioned by a shifted cycle [7] address these requirements; the three-grid methods of [14, 13] combine them into a physical and an auxiliary hierarchy for IOFD Helmholtz and edge-element Maxwell discretizations.

In this paper, we develop an extreme-scale three-grid solver for the Maxwell IOFD discretization, in which all three levels use the same compact IOFD stencil and are applied matrix-free, so one preconditioner application performs a fixed number of stencil sweeps, vector updates, and reductions, with storage linear in the number of unknowns. Since the coarse levels carry most Krylov steps but little work, their interface exchanges and reductions decide parallel efficiency; we organize the implementation around this observation. The main contributions are as follows.

  • A Maxwell IOFD discretization on the Yee grid: a six-parameter family of compact face and edge filters that retains the discrete curl and its gradient null space, with coefficients fitted to both polarizations at finite resolution and selected from the local material. At 6 points per wavelength it reduces the maximum wavenumber error of standard Yee by a factor of about 1700.

  • A matrix-free three-grid solver and its implementation on GPUs and CPUs, with a partition nested across the grids, s-step smoothers that need one reduction per smoothing call, and bfloat16 storage of the smoother bases, which leaves the convergence and the field accuracy unchanged.

  • A performance study at extreme scale: complete solves with approximately 71.7 billion complex unknowns, spanning 476 wavelengths in the homogeneous case, in 77–504 seconds on 216 GPUs with per-application weak-scaling efficiencies of 89–91%; strong scaling that reduces billion-unknown solves to seconds; and CPU solves with about 574 billion unknowns on 13 824 cores, validated against the outgoing Green field over 956 wavelengths.

The rest of this paper is organized as follows. In § 2, we construct the Maxwell IOFD discretization and optimize its coefficients for both polarizations. On this discretization we build the three-grid preconditioner and its distributed implementation in § 3. In Section 4, we validate the computed wavefields against the outgoing Green field and select the stopping tolerance, and in § 5 we report weak and strong scaling on GPUs and CPUs. The dispersion analysis and the proofs are given in the appendices.

Maxwell IOFD Discretization

In this section, we construct the Maxwell discretization that the solver of § 3 applies matrix-free. We define compact face and edge filters on the Yee grid (§ 2.2), optimize their coefficients for both polarizations at the operating resolution (§ 2.3), add a source and field filter (§ 2.4), and select the coefficients locally in variable media with a constitutive PML (§ 2.5). Derivations, the low-wavenumber expansion, and the error bounds behind the coefficient design are collected in Appendix § 7.

The Maxwell problem

With time dependence exp⁡(−iωt)\exp(-\mathrm{i}\omega t), the electric field generated by an impressed source satisfies

∇×(μ(x)−1∇×E)−k02ϵ(x)E=fin R3,(1)\nabla\times\left(\mu(\mathbf{x})^{-1}\nabla\times\mathbf{E}\right)-k_0^2\epsilon(\mathbf{x})\mathbf{E}=\mathbf{f}\quad\text{in }\mathbb{R}^3, \tag*{(1)}

where ϵ\epsilon and μ\mu are positive relative material parameters and k0k_0 is the reference wavenumber; the source is supported in a bounded physical region Ωph\Omega_{\mathrm{ph}}, and the field is outgoing at infinity [18]. For constant material values the equation reduces to

∇×∇×E−k2E=f0,k=k0ϵμ,(2)\nabla\times\nabla\times\mathbf{E}-k^2\mathbf{E}=\mathbf{f}_0,\qquad k=k_0\sqrt{\epsilon\mu}, \tag*{(2)}

with f0=μf\mathbf{f}_0=\mu\mathbf{f}, whose two transverse plane-wave polarizations share the dispersion sphere ∣ξ∣=k\lvert\boldsymbol{\xi}\rvert=k. The discretization should reproduce this surface for both polarizations at a prescribed resolution, measured by

η=kh2π=1ppw,κ=kh,(3)\eta=\frac{kh}{2\pi}=\frac{1}{\mathrm{ppw}},\qquad\kappa=kh, \tag*{(3)}

where hh is the mesh spacing and ppw the number of points per wavelength.

A compact face–edge construction

The rrth electric component is sampled at h(j+12er)h\left(\mathbf{j}+\frac{1}{2}\mathbf{e}_r\right), j∈Z3\mathbf{j}\in\mathbb{Z}^3, and the discrete curl ChC_h maps edge fields to face fields, for example

(Chv)1,i,j+12,l+12=v3,i,j+1,l+12−v3,i,j,l+12h−v2,i,j+12,l+1−v2,i,j+12,lh,(4)(C_h\mathbf{v})_{1,i,j+\frac{1}{2},l+\frac{1}{2}}= \frac{v_{3,i,j+1,l+\frac{1}{2}}-v_{3,i,j,l+\frac{1}{2}}}{h} -\frac{v_{2,i,j+\frac{1}{2},l+1}-v_{2,i,j+\frac{1}{2},l}}{h}, \tag*{(4)}

with the other components by cyclic permutation; together with the nodal-to-edge gradient GhG_h these differences satisfy ChGh=0C_hG_h=0. The filters act on one component at a time in the index coordinates of its own lattice. With the translation TjT_j by one mesh interval in direction jj and the second difference

Δj=12(Tj+Tj−1)−I,(5)\Delta_j=\frac{1}{2}\left(T_j+T_j^{-1}\right)-I, \tag*{(5)}

the face filter acts along the face normal and the edge filter componentwise,

Fh,r=I+aΔr,(6)F_{h,r}=I+a\Delta_r, \tag*{(6)}
Mh,r=I+bnΔr+bt(Δs+Δt)+bttΔsΔt+bntΔr(Δs+Δt)+bnttΔrΔsΔt,{r,s,t}={1,2,3}.(7)M_{h,r}=I+b_n\Delta_r+b_t(\Delta_s+\Delta_t)+b_{tt}\Delta_s\Delta_t +b_{nt}\Delta_r(\Delta_s+\Delta_t)+b_{ntt}\Delta_r\Delta_s\Delta_t,\qquad\{r,s,t\}=\{1,2,3\}. \tag*{(7)}

The edge filter is the general 3×3×33\times3\times3 stencil that is even in each coordinate, treats the two transverse directions equally, and reproduces constants. With

c=(a,bn,bt,btt,bnt,bntt),Fh=diag⁡rFh,r,Mh=diag⁡rMh,r,(8)\mathbf{c}=(a,b_n,b_t,b_{tt},b_{nt},b_{ntt}),\qquad F_h=\operatorname{diag}_r F_{h,r},\qquad M_h=\operatorname{diag}_r M_{h,r}, \tag*{(8)}

the homogeneous operator is

Ah=Ch∗FhCh−k2Mh.(9)A_h=C_h^*F_hC_h-k^2M_h. \tag*{(9)}

Standard Yee is the member c=0\mathbf{c}=0. Each component has a 27-point mass stencil, and the curl term couples the three edge lattices within one cell, so the six coefficients shape the dispersion relation without enlarging the stencil that the solver applies. Figure 1 shows the unknowns of one Yee cell and the supports of the two filters.

Unknowns and filter supports of the face–edge construction

Figure 1. Unknowns and filter supports of the face–edge construction. (a) The edge unknowns v1,v2,v3v_1,v_2,v_3 of one Yee cell and a face value (Chv)1(C_hv)_1, formed from the four edges around its face. (b) The face filter acts along the face normal with weights a/2a/2, 1−a1-a, a/2a/2. (c) The edge filter of component rr couples the 27 parallel edges at offsets (δr,δs,δt)∈{−1,0,1}3(\delta_r,\delta_s,\delta_t)\in\{-1,0,1\}^3, drawn as three layers δr=−1,0,1\delta_r=-1,0,1 along the edge direction, with every edge pointing along xrx_r; the six symbols mark the symmetry classes, which are first reached by the terms II, bnΔrb_n\Delta_r, bt(Δs+Δt)b_t(\Delta_s+\Delta_t), bttΔsΔtb_{tt}\Delta_s\Delta_t, bntΔr(Δs+Δt)b_{nt}\Delta_r(\Delta_s+\Delta_t), and bnttΔrΔsΔtb_{ntt}\Delta_r\Delta_s\Delta_t of (7).

Proposition 2.1 (Consistency and discrete gradient constraint). For constant k>0k>0 and bounded coefficients cc, the interior operator (9) is second-order consistent with (2). Its stiffness Kh=Ch∗FhChK_h=C_h^*F_hC_h satisfies KhGh=0K_hG_h=0 and Gh∗Kh=0G_h^*K_h=0. Consequently, a solution of Ahvh=bhA_hv_h=b_h obeys

−k2Gh∗Mhvh=Gh∗bh.(10)-k^2G_h^*M_hv_h=G_h^*b_h. \tag*{(10)}

The proof is given in Appendix § 8.

Dispersion relation and coefficient optimization

On a staggered Fourier mode

(vh)r(j)=prexp⁡(iθ⋅(j+12er)),θ∈[−π,π]3,(11)(v_h)_r(j)=p_r\exp\left(i\boldsymbol{\theta}\cdot\left(j+\frac{1}{2}e_r\right)\right),\qquad\boldsymbol{\theta}\in[-\pi,\pi]^3, \tag*{(11)}

let sj=2sin⁡(θj/2)s_j=2\sin(\theta_j/2), zj=cos⁡θj−1z_j=\cos\theta_j-1, and S=[s]×S=[s]_\times. The curl symbol is iS/hiS/h, and the filter symbols F^=diag⁡(fr)\widehat{F}=\operatorname{diag}(f_r) and M^=diag⁡(mr)\widehat{M}=\operatorname{diag}(m_r) are

fr=1+azr,(12)f_r=1+az_r, \tag*{(12)}
mr=1+bnzr+bt(zs+zt)+bttzszt+bntzr(zs+zt)+bnttzrzszt,(13)m_r=1+b_nz_r+b_t(z_s+z_t)+b_{tt}z_sz_t+b_{nt}z_r(z_s+z_t)+b_{ntt}z_rz_sz_t, \tag*{(13)}

so that the dimensionless symbol is

P(θ;η)=h2A^h(θ;η)=K^−κ2M^,K^=STF^S.(14)\mathcal{P}(\boldsymbol{\theta};\eta)=h^2\widehat{A}_h(\boldsymbol{\theta};\eta)=\widehat{K}-\kappa^2\widehat{M},\qquad\widehat{K}=S^T\widehat{F}S. \tag*{(14)}

Proposition 2.2 (Admissibility and transverse dispersion branches). Fix a real coefficient vector cc, and let frf_r and mrm_r be its filter symbols in (12)–(13). Suppose that

fr(θ)>0,mr(θ)>0,r=1,2,3,θ∈[−π,π]3.(15)f_r(\boldsymbol{\theta})>0,\qquad m_r(\boldsymbol{\theta})>0,\qquad r=1,2,3,\qquad\boldsymbol{\theta}\in[-\pi,\pi]^3. \tag*{(15)}

For θ≠0\boldsymbol{\theta}\ne0, the generalized eigenvalues of (K^,M^)(\widehat{K},\widehat{M}) are 0,λ1,λ20,\lambda_1,\lambda_2, with 0<λ1≤λ20<\lambda_1\le\lambda_2. The zero eigenvector is ss, and each propagating eigenvector satisfies sTM^p=0s^T\widehat{M}p=0. For B=M^−1/2K^M^−1/2B=\widehat{M}^{-1/2}\widehat{K}\widehat{M}^{-1/2},

λ1,2=tr⁡B±2tr⁡(B2)−(tr⁡B)22,(16)\lambda_{1,2}=\frac{\operatorname{tr}B\pm\sqrt{2\operatorname{tr}(B^2)-(\operatorname{tr}B)^2}}{2}, \tag*{(16)}

and

det⁡P=−κ2det⁡M^(λ1−κ2)(λ2−κ2).(17)\det\mathcal{P}=-\kappa^2\det\widehat{M}(\lambda_1-\kappa^2)(\lambda_2-\kappa^2). \tag*{(17)}

Condition (15) is equivalent to positivity of the face symbols at zr∈{−2,0}z_r\in\{-2,0\} and the edge symbols at (z1,z2,z3)∈{−2,0}3(z_1,z_2,z_3)\in\{-2,0\}^3.

The proof is given in Appendix § 8.

We call coefficients satisfying (15) admissible. Their propagating waves solve λb(θ;c(η))=κ2\lambda_b(\theta;\mathbf{c}(\eta))=\kappa^2, b=1,2b=1,2. Along a direction d∈S2\mathbf{d}\in S^2 we take the near-physical root qbq_b of λb(qbκd;c(η))=κ2\lambda_b(q_b\kappa\mathbf{d};\mathbf{c}(\eta))=\kappa^2, so the numerical wavenumber is qbκq_b\kappa, and measure the relative wavenumber error [23 Section 2.1]

δb(d;η)=qb−1,Eph(η)=sup⁡d∈S2max⁡b=1,2∣δb(d;η)∣.(18)\delta_b(\mathbf{d};\eta)=q_b-1,\qquad\mathcal{E}_{\mathrm{ph}}(\eta)=\sup_{\mathbf{d}\in S^2}\max_{b=1,2}|\delta_b(\mathbf{d};\eta)|. \tag*{(18)}

Over a distance LL the plane-wave phases then differ by

Δϕb=kLδb=2πLλwδb,λw=2πk,(19)\Delta\phi_b=kL\delta_b=2\pi\frac{L}{\lambda_w}\delta_b,\qquad\lambda_w=\frac{2\pi}{k}, \tag*{(19)}

so a small relative wavenumber error is essential over many wavelengths, and Eph\mathcal{E}_{\mathrm{ph}} also bounds the difference of the two polarization wavenumbers by 2Eph2\mathcal{E}_{\mathrm{ph}}.

A low-wavenumber expansion (Proposition A.1) shows that the O(κ2)O(\kappa^2) error of both polarizations cancels in every direction if and only if a=bt=1/6a=b_t=1/6 and bn=0b_n=0, whereas bttb_{tt}, bntb_{nt}, and bnttb_{ntt} enter only at higher order. At practical resolutions these higher-order terms are not negligible, so we instead fit all six coefficients at each tabulated η\eta, extending the phase fitting of [23 Section 5.1] to both polarizations:

Jph(c;η)=∑d∈Dwd∑b=12∣qb(d;η,c)−1∣2,wd>0,(20)J_{\mathrm{ph}}(\mathbf{c};\eta)=\sum_{\mathbf{d}\in\mathcal{D}}w_{\mathbf{d}}\sum_{b=1}^{2}|q_b(\mathbf{d};\eta,\mathbf{c})-1|^2,\qquad w_{\mathbf{d}}>0, \tag*{(20)}

over a weighted set of directions D⊂S2\mathcal{D}\subset S^2, with admissibility imposed through positive lower bounds on the vertex values in Proposition 2.2. Between tabulation points ηj\eta_j the coefficients are interpolated linearly,

c(η)=(1−t)cj+tcj+1,t=η−ηjηj+1−ηj,(21)\mathbf{c}(\eta)=(1-t)\mathbf{c}_j+t\mathbf{c}_{j+1},\qquad t=\frac{\eta-\eta_j}{\eta_{j+1}-\eta_j}, \tag*{(21)}

which preserves admissibility because the filter symbols are affine in c\mathbf{c}. Propositions A.2 and A.3 bound the resulting wavenumber error by the symbol defect divided by the radial slope of the branch, so the interpolation contributes a second-order term in the table spacing.

The coefficients are tabulated at ηj=0.1,0.125,…,0.4\eta_j=0.1,0.125,\ldots,0.4 together with 1/121/12, 1/61/6, and 1/31/3; outside [1/12,0.4][1/12,0.4] the filter coefficients are frozen at the nearest endpoint while the mass term retains the actual wavenumber. Table 1 compares the maximum relative wavenumber error over both branches, sampled on a 257×257257\times257 angular grid in the first octant, which covers all directions by cubic symmetry. At 6 points per wavelength the optimized filters reduce the error from 5.25×10−25.25\times10^{-2} for standard Yee to 3.08×10−53.08\times10^{-5}, so by (19) the accumulated phase error shrinks by a factor of about 1700; at 3 points per wavelength IOFD retains near-physical roots in all directions, whereas the axial Yee dispersion relation has no real root.

ppwStandard YeeMaxwell IOFD
82.7669×10−22.7669\times10^{-2}3.0602×10−53.0602\times10^{-5}
65.2465×10−25.2465\times10^{-2}3.0848×10−53.0848\times10^{-5}
41.5017×10−11.5017\times10^{-1}1.2554×10−41.2554\times10^{-4}
3—4.5864×10−44.5864\times10^{-4}

Table 1. Maximum relative wavenumber error over directions and both polarizations for standard Yee and Maxwell IOFD. A dash indicates the absence of a real Yee propagation root in some directions.

Figure 2 plots the maxima of Table 1, and Figure 3 shows the signed errors of the two polarizations along an angular cut at 6 points per wavelength; both remain below 3×10−53\times10^{-5} in magnitude, and the sampled maxima give ∣kh,1−kh,2∣/k≤6.2×10−5|k_{h,1}-k_{h,2}|/k\le6.2\times10^{-5}.

Maximum sampled relative wavenumber error

Figure 2. Maximum sampled relative wavenumber error at 8, 6, 4, and 3 points per wavelength. The standard-Yee root is absent in some directions at 3 points per wavelength.

Signed phase-slowness errors of the two Maxwell IOFD polarizations

Figure 3. Signed phase-slowness errors of the two Maxwell IOFD polarizations at ppw = 6, with fixed azimuth β=π/7\beta= \pi/7 and d=(sin⁡αcos⁡β,sin⁡αsin⁡β,cos⁡α)d = (\sin\alpha\cos\beta,\sin\alpha\sin\beta,\cos\alpha). The two branches coincide on the coordinate axis and separate away from it. Values are computed from the radial roots.

Source and field filter

The coefficient fit places the numerical wave surfaces; the amplitudes of the waves radiated by a point source are set by the residues of the discrete Green symbol at these surfaces (Proposition A.4). We move these residues toward those of the continuous symbol with a compact filter QhQ_h [23 Sections 2.4 and 5.2], applied identically to each component with weights QmQ_m on the shells Nm={δ∈{−1,0,1}3:∣δ∣1=m}\mathcal{N}_m = \{\delta\in\{-1,0,1\}^3 : |\delta|_1 = m\},

Q0=1−3β1−3β2−β3,Q1=β12,Q2=β24,Q3=β38.(22)Q_0 = 1 - 3\beta_1 - 3\beta_2 - \beta_3,\qquad Q_1 = \frac{\beta_1}{2},\qquad Q_2 = \frac{\beta_2}{4},\qquad Q_3 = \frac{\beta_3}{8}. \tag*{(22)}

For a discrete source load fhf_h, which assigns h−3h^{-3} times the source strength to its selected electric component, we solve and reconstruct

Ahvh=Qhfh=:bh,Eh=Qhvh.(23)A_hv_h = Q_hf_h =: b_h,\qquad E_h = Q_hv_h. \tag*{(23)}

In a homogeneous medium this solution operator has the symbol h2Qh2P−1h^2Q_h^2\mathcal{P}^{-1}, so the filter changes the modal residues but not the dispersion surfaces. For the resolution of 6 points per wavelength used in section 4,

(β1,β2,β3)=(−0.2002664857,0.1236538386,0.0484221099).(24)(\beta_1,\beta_2,\beta_3) = (-0.2002664857, 0.1236538386, 0.0484221099). \tag*{(24)}

Variable materials and perfectly matched layers

To apply the filtered Maxwell scheme ((23)) in a variable medium, we select its face and edge coefficients from the local material values. Freezing ϵ\epsilon and μ\mu at a point gives the normalized equation (2) with wavenumber k=k0ϵμk = k_0\sqrt{\epsilon\mu}. For each face or edge row, we therefore evaluate the interpolation ((21)) at the local dimensionless wavenumber

η(x)=k0hϵ(x)μ(x)2π.(25)\eta(x) = \frac{k_0h\sqrt{\epsilon(x)\mu(x)}}{2\pi}. \tag*{(25)}

Here xx is the row center on the component’s own staggered lattice. This selection applies the frozen-material dispersion design at the local resolution, while the sampled material values enter the constitutive factors of the Maxwell operator.

To impose the outgoing condition for this variable-material problem on a finite domain, we surround Ωph\Omega_{\mathrm{ph}} with a Cartesian PML of thickness LpmlL_{\mathrm{pml}} and denote the resulting box by Ω\Omega. Let djpml(x)d_j^{\mathrm{pml}}(x) be the distance from xjx_j to the physical interval in direction jj, so that djpml=0d_j^{\mathrm{pml}}=0 inside Ωph\Omega_{\mathrm{ph}}. We use the stretching factors

ζj=1+iρj,ρj=2cpmlk0LpmldjpmlLpml,T=diag⁡(ζ2ζ3ζ1,ζ1ζ3ζ2,ζ1ζ2ζ3),(26)\zeta_j = 1 + i\rho_j,\qquad\rho_j = \frac{2c_{\mathrm{pml}}}{k_0L_{\mathrm{pml}}}\frac{d_j^{\mathrm{pml}}}{L_{\mathrm{pml}}},\qquad T = \operatorname{diag}\left(\frac{\zeta_2\zeta_3}{\zeta_1},\frac{\zeta_1\zeta_3}{\zeta_2},\frac{\zeta_1\zeta_2}{\zeta_3}\right), \tag*{(26)}

whose absorption profile ρj\rho_j grows linearly with the depth into the layer, so that the complex coordinate stretching is quadratic. The stretching gives

∇×(μ−1T−1∇×E)−k02ϵTE=fin Ω.(27)\nabla\times\left(\mu^{-1}T^{-1}\nabla\times\mathbf{E}\right)-k_0^2\epsilon T\mathbf{E}=\mathbf{f}\quad\text{in }\Omega. \tag*{(27)}

This constitutive PML formulation [5, 9] requires material values throughout the layer. We obtain them by normal extension: each coordinate is projected onto its physical interval before ϵ\epsilon and μ\mu are evaluated. This retains the tangential material variation and continues the boundary values along each outward normal. On the exterior boundary of the PML, we impose a first-order Silver–Müller absorbing condition in stretched coordinates.

Inside the PML, the real local wavenumber (25) still selects the IOFD coefficients, and the stretching enters only through the constitutive factors. We represent these factors by diagonal face and edge matrices with staggered samples

(Dμ,h)r=(μ−1ζrζsζt)1/2,(Dϵ,h)r=(ϵζsζtζr)1/2,(28)(D_{\mu,h})_r=\left(\mu^{-1}\frac{\zeta_r}{\zeta_s\zeta_t}\right)^{1/2},\qquad(D_{\epsilon,h})_r=\left(\epsilon\frac{\zeta_s\zeta_t}{\zeta_r}\right)^{1/2}, \tag*{(28)}

where the complex square roots are continued from their positive values in the physical medium. The variable-coefficient operator is

Ah=Ch∗FhCh−k02Mh,Fh=Dμ,hFhΩDμ,h,Mh=Dϵ,hMhΩDϵ,h.(29)A_h=C_h^*F_hC_h-k_0^2M_h,\qquad F_h=D_{\mu,h}F_h^\Omega D_{\mu,h},\qquad M_h=D_{\epsilon,h}M_h^\Omega D_{\epsilon,h}. \tag*{(29)}

Here FhΩF_h^\Omega and MhΩM_h^\Omega are the locally selected filters on the truncated lattices. Rows whose filter support lies in the lattice use (2.6)–(2.7); at the outer boundary, filter rows with incomplete support are replaced by the identity, and the tangential boundary rows discretize the absorbing condition. The square-root factors enter on both sides without complex conjugation, so that FhF_h and MhM_h reproduce the complex constitutive tensors of (27).

With (29), the filtered system (23) now represents the outgoing problem on a finite domain. Its compact structure also permits the same construction on the coarser grids used by the solver below.

Three-Grid Preconditioner

In this section, we construct a three-grid preconditioner for the IOFD system that assigns two distinct roles to its coarse levels. An unshifted intermediate-grid IOFD equation supplies a global correction whose propagation is governed by the optimized coarse-grid dispersion relation. A complex-shifted auxiliary cycle introduces damping to make the iterative solution of that equation inexpensive. Since every level uses the discretization of § 2, all operators remain compact. We first define the level operators and transfers (§ 3.1), then the nested iteration (§ 3.2), and finally its cost and distributed implementation (§ 3.3).

Level operators and edge transfers

To carry the local dispersion design into the hierarchy, we discretize the operator (29) at each level’s own grid spacing and material samples. Let XhX_h, X2hX_{2h}, and X4hX_{4h} be the edge spaces on three nested grids covering the same box Ω\Omega. The spacing doubles and the number of PML cells halves from one level to the next, so the PML has the same physical width on every level. On a level ℓ∈{h,2h,4h}\ell\in\{h,2h,4h\}, write

Kℓ=Cℓ∗FℓCℓ,Aℓ=Kℓ−k02Mℓ,(30)K_\ell=C_\ell^*F_\ell C_\ell,\qquad A_\ell=K_\ell-k_0^2M_\ell, \tag*{(30)}

where the filters in FℓF_\ell and MℓM_\ell are selected by the local dimensionless wavenumber (25) with hh replaced by ℓ\ell. The physical intermediate-grid equation uses A2hA_{2h}. For heterogeneous media, the 2h2h operators use, at the knots 0.175≤ηj≤0.3250.175\leq\eta_j\leq0.325, coefficients obtained by continuation from the primary coefficients at η=1/3\eta=1/3 toward smaller η\eta under the dispersion and filter-positivity constraints; this extends the small-aa coefficient family down to η=0.175\eta=0.175, and the same linear interpolation applies. For these heterogeneous 2h2h operators, on a boundary face of Ω\Omega normal to the xrx_r-direction, the mass row of the normal component ErE_r also retains its transverse filter I+bt(Δs+Δt)+bttΔsΔtI+b_t(\Delta_s+\Delta_t)+b_{tt}\Delta_s\Delta_t wherever the transverse support is complete.

The correction on a coarser grid is transferred using the staggered geometry of each electric component. On field-component coordinates, the one-dimensional nodal and edge prolongations are

(Pnw)2j=wj,(Pnw)2j+1=12(wj+wj+1),(31)(P_nw)_{2j}=w_j,\qquad(P_nw)_{2j+1}=\frac{1}{2}(w_j+w_{j+1}), \tag*{(31)}
(Pew)2j=wj,(Pew)2j+1=wj.(32)(P_ew)_{2j}=w_j,\qquad(P_ew)_{2j+1}=w_j. \tag*{(32)}

Tensorization gives

Pℓ=diag⁡(Pe⊗Pn⊗Pn,  Pn⊗Pe⊗Pn,  Pn⊗Pn⊗Pe),Rℓ=18Pℓ∗,ℓ=h,2h.(33)P_\ell=\operatorname{diag}(P_e\otimes P_n\otimes P_n,\;P_n\otimes P_e\otimes P_n,\;P_n\otimes P_n\otimes P_e),\qquad R_\ell=\frac{1}{8}P_\ell^*,\qquad\ell=h,2h. \tag*{(33)}

The factor 1/81/8 corresponds to the pointwise finite-difference scaling of the operators. These geometric transfers copy an edge component in its own direction and interpolate linearly in the transverse directions.

The auxiliary cycle and physical correction

To compute the correction transferred by PhP_h, we solve the physical A2hA_{2h} equation iteratively. We precondition this solve with an auxiliary two-grid cycle whose operators on 2h2h and 4h4h include a complex shift. For a shift parameter σ\sigma, define

Bℓ=Kℓ−(1+iσ)k02Mℓ,ℓ=2h,4h,σ>0.(34)B_\ell=K_\ell-(1+i\sigma)k_0^2M_\ell,\qquad\ell=2h,4h,\quad\sigma>0. \tag*{(34)}

The shift multiplies only the mass term: the filters are those of the unshifted operator on the same level, selected by the real local wavenumber, and the impedance of the absorbing boundary condition is scaled consistently by 1+iσ\sqrt{1+i\sigma}. The damping makes the auxiliary equations amenable to Jacobi-preconditioned Krylov smoothing and coarse correction, and the resulting cycle serves as an approximate inverse of the physical intermediate-grid operator [12, 14, 13].

All inner solves perform a prescribed amount of work. Let SH(m)(g;x0)S_H^{(m)}(g;x_0) denote mm GMRES steps for an operator HH, applied to Hx=gHx=g with initial guess x0x_0. Each step is right-preconditioned by 2 damped Jacobi sweeps. For an input gg, these sweeps start from y(0)=0y^{(0)}=0 and use

y(j+1)=y(j)+ωjdiag⁡(H)−1(g−Hy(j)),j=0,1.(35)y^{(j+1)}=y^{(j)}+\omega_j\operatorname{diag}(H)^{-1}(g-Hy^{(j)}),\qquad j=0,1. \tag*{(35)}

The auxiliary cycle combines smoothing on 2h2h, a correction on 4h4h, and further smoothing on 2h2h. Its action on a right-hand side gg is

ypre=SB2h(ms)(g;0),g4h=R2h(g−B2hypre),e4h=SB4h(mb)(g4h;0),V2h(g)=SB2h(ms)(g;ypre+P2he4h).(36)\begin{aligned} y^{\mathrm{pre}}&=S_{B_{2h}}^{(m_s)}(g;0),\\ g_{4h}&=R_{2h}(g-B_{2h}y^{\mathrm{pre}}),\\ e_{4h}&=S_{B_{4h}}^{(m_b)}(g_{4h};0),\\ \mathcal{V}_{2h}(g)&=S_{B_{2h}}^{(m_s)}(g;y^{\mathrm{pre}}+P_{2h}e_{4h}). \tag*{(36)} \end{aligned}

The physical intermediate-grid equation is approximately solved by mcm_c FGMRES steps, with V2h\mathcal{V}_{2h} as a right preconditioner and zero initial guess. Let K2h(r2h)K_{2h}(r_{2h}) denote the resulting approximation to A2h−1r2hA_{2h}^{-1}r_{2h}. With Sh=SAh(mh)S_h = S_{A_h}^{(m_h)}, Algorithm 1 combines this correction with fine-grid pre- and post-smoothing.

Algorithm 1 Three-grid preconditioner zh=Bh(rh)z_h = \mathcal{B}_h(r_h)

  1. zhpre←Sh(rh;0)z_h^{\mathrm{pre}} \leftarrow S_h(r_h;0).

  2. r2h←Rh(rh−Ahzhpre)r_{2h} \leftarrow R_h(r_h - A_h z_h^{\mathrm{pre}}).

  3. e2h←K2h(r2h)e_{2h} \leftarrow K_{2h}(r_{2h}) using mcm_c FGMRES steps on A2hA_{2h}, preconditioned by V2h\mathcal{V}_{2h}.

  4. z~h←zhpre+Phe2h\widetilde{z}_h \leftarrow z_h^{\mathrm{pre}} + P_h e_{2h}.

  5. zh←Sh(rh;z~h)z_h \leftarrow S_h(r_h;\widetilde{z}_h).

Because the inner Krylov iterations depend nonlinearly on their input residuals, Bh\mathcal{B}_h is a variable preconditioner. We therefore apply restarted FGMRES [22] to the fine-grid system (23) and stop when the directly evaluated relative residual satisfies

∥Ahvh−bh∥2∥bh∥2≤εout.(37)\frac{\lVert A_h v_h - b_h \rVert_2}{\lVert b_h \rVert_2} \le\varepsilon_{\mathrm{out}}. \tag*{(37)}

The tolerance εout\varepsilon_{\mathrm{out}} is chosen in Section 4 by comparison with an analytic wavefield.

Cost per application and distributed implementation

We quantify the cost of Algorithm 1 by counting its prescribed Krylov steps on each level. Each step uses compact stencil evaluations, diagonal Jacobi scaling, and vector operations; geometric transfers connect the levels. For fixed Krylov dimensions, the work and storage are proportional to the number of fine-grid unknowns, and every level is applied matrix-free. Specifically, one application performs 2mh2m_h GMRES steps with AhA_h, mcm_c FGMRES steps with A2hA_{2h}, and mcm_c auxiliary cycles, each with 2ms2m_s GMRES steps with B2hB_{2h} and mbm_b GMRES steps with B4hB_{4h}. For the values (mh,mc,ms,mb)=(6,6,4,10)(m_h,m_c,m_s,m_b) = (6,6,4,10) used in § 5, this gives 12 steps on the fine grid and 6+48+60=1146 + 48 + 60 = 114 steps on the coarser grids. Although the 2h2h and 4h4h grids carry about 1/81/8 and 1/641/64 as many unknowns as the fine grid, they account for most Krylov steps. Interface exchanges and global inner products on these levels therefore remain important to the cost of a distributed application.

The distributed GPU implementation partitions Ω\Omega in the yy and zz directions, with each rank owning an xx-spanning pencil, and the CPU implementation partitions it in all three directions. The partition is nested across the three grids, so geometric transfers involve only neighboring pencils. Stencil evaluations exchange interface data while independent interior rows are evaluated, and Krylov orthogonalization uses global reductions. On the GPU platform of § 5, interface data are exchanged within a node through the vendor collective library and between nodes through MPI. The smoothing GMRES steps on all three grids are carried out in ss-step form, with a monomial Krylov basis and a single Gram reduction per smoothing call. On the hh and 2h2h grids, the basis vectors after the first are stored in bfloat16, while all arithmetic remains in single precision; this halves their storage and memory traffic.

Wavefield and Solver Validation

In this section, we compare the wavefields computed with the IOFD discretization and the three-grid solver with the outgoing Maxwell Green tensor, which provides an analytic reference for both phase and amplitude over long propagation distances and includes the effects of the source and field filter and the PML. We first measure how the field error grows with the electrical size (Section 4.1) and then use the same reference to select the stopping tolerance and the storage precision of the smoother bases (Section 4.2).

The source is a zz-oriented point load on the Yee edge nearest to (0,0.5,0)(0,0.5,0), filtered as in (23); its grid-edge location xsx_s also locates the Green reference. We use 6 fine-grid points per wavelength, 12 PML cells on each side with strength cpml=3c_{\mathrm{pml}}=3, and the first-order absorbing condition on the exterior of the PML. A source-centered ball BλB_\lambda of radius one wavelength, λ=2π/k\lambda=2\pi/k, is excluded from the field comparisons [25].

For the normalized homogeneous equation, the outgoing Green tensor is

Gk(x)=(I+k−2∇∇T)exp⁡(ik∣x∣)4π∣x∣.(38)\mathbf{G}_k(\mathbf{x})=\left(I+k^{-2}\nabla\nabla^T\right)\frac{\exp(ik|\mathbf{x}|)}{4\pi|\mathbf{x}|}. \tag*{(38)}

A unit zz-oriented point load gives the field Gk(x−xs)e3\mathbf{G}_k(\mathbf{x}-\mathbf{x}_s)\mathbf{e}_3.

We compare the computed field Ez,hE_{z,h} with Ezref=Gzz(x−xs)E_z^{\mathrm{ref}}=G_{zz}(\mathbf{x}-\mathbf{x}_s) directly at the native zz-edge locations. With rj=∣x(j)−xs∣r_j=|\mathbf{x}^{(j)}-\mathbf{x}_s| and I\mathcal{I} denoting the zz-edges in Ωph∖Bλ\Omega_{\mathrm{ph}}\setminus B_\lambda, the field error is

Err⁡=∑j∈Irj∣Re⁡(Ez,h(j)−Ezref,(j))∣∑j∈Irj∣Re⁡Ezref,(j)∣+∑j∈Irj∣Im⁡(Ez,h(j)−Ezref,(j))∣∑j∈Irj∣Im⁡Ezref,(j)∣.(39)\operatorname{Err}=\frac{\sum_{j\in\mathcal{I}}r_j\left|\operatorname{Re}\left(E_{z,h}^{(j)}-E_z^{\mathrm{ref},(j)}\right)\right|}{\sum_{j\in\mathcal{I}}r_j\left|\operatorname{Re}E_z^{\mathrm{ref},(j)}\right|}+\frac{\sum_{j\in\mathcal{I}}r_j\left|\operatorname{Im}\left(E_{z,h}^{(j)}-E_z^{\mathrm{ref},(j)}\right)\right|}{\sum_{j\in\mathcal{I}}r_j\left|\operatorname{Im}E_z^{\mathrm{ref},(j)}\right|}. \tag*{(39)}

We also report the relative vector L2L^2 error using all three field components on their respective edge lattices in the same comparison region.

Comparison with the Green field

To examine how propagation errors accumulate at fixed local resolution, we increase the mesh from 4803480^3 to 576035760^3 at 6 points per wavelength, so that the physical domain spans 76 to 956 wavelengths in each coordinate direction. The meshes up to 288032880^3 are solved on the GPUs of § 5, and the 384033840^3 and 576035760^3 meshes with the CPU implementation of § 5.5. The solves use the relative residual tolerance εout=10−3\varepsilon_{\mathrm{out}}=10^{-3}, justified in § 4.2. Table 2 summarizes the errors.

meshwavelengthsplatformErrvector L2L^2
4803480^376GPU2.8326%1.3560%
9603960^3156GPU2.9496%1.3840%
192031920^3316GPU4.4813%1.8921%
288032880^3476GPU5.7995%2.4474%
384033840^3636CPU7.1925%3.0586%
576035760^3956CPU10.1930%4.3765%

Table 2. Homogeneous Green-field errors. Mesh dimensions include the PML.

Over this more than twelvefold increase in electrical size at fixed 6-point resolution, the vector L2L^2 error rises only from 1.36% to 4.38% and Err from 2.83% to 10.19%. The slow growth reflects the dispersion design: by (19), the sampled wavenumber errors of Table 1 accumulate over 956 wavelengths to a phase discrepancy of about 2π⋅956⋅3.08×10−5≈0.192\pi\cdot956\cdot3.08\times10^{-5}\approx0.19 radians for IOFD, compared with 315 radians for standard Yee.

The same accuracy holds throughout the domain. On the 9603960^3 mesh solved on 8 GPUs, Figure 4 displays the computed and analytic EzE_z on the three planes through the source, together with their difference on the same color scale. Because the field decays with the distance from the source, Figure 5 compares distance-weighted receiver profiles along two lines away from the source, where the computed field follows the phase and amplitude of the Green field.

Computed field, outgoing Green field, and their difference on the x-, y-, and z-normal planes

Figure 4. Computed field, outgoing Green field, and their difference on the xx-, yy-, and zz-normal planes through the source for the homogeneous 9603960^3 problem, shown in the physical domain [−1,1]3[-1,1]^3. The plotted quantity is Re⁡(Ez)\operatorname{Re}(E_z); the two fields are sampled at identical native zz-edge locations. The cross marks the discrete source, and the difference is set to zero within the exclusion radius in Eq. (39). All three panels share one color scale.

One-dimensional receiver-line comparisons

Figure 5. One-dimensional receiver-line comparisons on the 9603960^3 homogeneous problem. The left panels compare rRe⁡(Ez)r\operatorname{Re}(E_z) with the outgoing Green reference; the right panels show the numerical minus analytical difference on the same lines.

Stopping residual and basis storage

All computations use complex single-precision arithmetic, and the smoother bases on the hh and 2h2h grids are stored in bfloat16 (§ 3.3). We choose the stopping tolerance by relating the algebraic residual to the error against the analytic field, and we check the reduced basis storage at the same time. For the homogeneous 9603960^3 problem on 8 GPUs, Table 3 reports the field error and the number of preconditioner applications as the residual target decreases from 10−210^{-2} to 10−510^{-5}, with the smoother bases stored in bfloat16 and in single precision.

outer targetPC calls∥Ahvh−bh∥2/∥bh∥2\lVert A_h v_h-b_h\rVert_2/\lVert b_h\rVert_2vector L2L^2 error
10−210^{-2}14 / 149.52×10−39.52 \times10^{-3} / 8.94×10−38.94 \times10^{-3}21.28% / 18.86%
10−310^{-3}23 / 226.17×10−46.17 \times10^{-4} / 9.50×10−49.50 \times10^{-4}1.384% / 1.445%
10−410^{-4}28 / 279.25×10−59.25 \times10^{-5} / 9.78×10−59.78 \times10^{-5}1.350% / 1.356%
10−510^{-5}36 / 358.48×10−68.48 \times10^{-6} / 9.08×10−69.08 \times10^{-6}1.344% / 1.344%

Table 3. Effect of the stopping residual on field accuracy for the homogeneous 9603960^3 problem, with the smoother bases stored in bfloat16 / single precision.

Tightening the target from 10−210^{-2} to 10−310^{-3} reduces the field error from about 20% to 1.4%. Further residual reduction has little effect on field accuracy: a target of 10−510^{-5} lowers the error only to 1.34%, the discretization error of this mesh, but requires 36 instead of 23 preconditioner applications. The bfloat16 basis storage changes the number of applications by at most one, and at the tightest target both variants reach the same field error, so the reduced storage does not limit the attainable accuracy. We therefore use εout=10−3\varepsilon_{\mathrm{out}} = 10^{-3} in all subsequent experiments.

Numerical Results

In this section, we evaluate the efficiency and parallel scalability of the three-grid solver on GPUs and CPUs, using the precision and stopping criterion established in Section 4. Weak-scaling tests measure how the cost grows with the domain size in wavelengths at a fixed number of points per wavelength, while strong-scaling tests measure how additional resources reduce the solution time for a fixed problem. After specifying the media and common settings (§ 5.1), we report weak and strong scaling on GPUs (§ 5.3 and § 5.4) and then extend the computation to 574 billion unknowns on CPUs (§ 5.5).

Media and common settings

We take four media from the Maxwell benchmarks of [13], which test the three-grid method under uniform propagation, smooth focusing, periodic variation, and spatial disorder. The physical domain is (−1,1)3(-1,1)^3. All heterogeneous media use ϵ(x)=μ(x)=m(x)=1/c(x)\epsilon(\boldsymbol{x}) = \mu(\boldsymbol{x}) = m(\boldsymbol{x}) = 1/c(\boldsymbol{x}), with material values extended along the outward normals into the PML as specified in § 2.5. The material fields are defined as follows:

  1. Homogeneous medium: m=1m=1.

  1. Converging lens:

m(x)=3/41−12exp⁡(−8∣x∣2)(40)m(\boldsymbol{x}) = \frac{3/4}{1-\frac{1}{2}\exp(-8\lvert\boldsymbol{x}\rvert^2)} \tag*{(40)}
  1. Periodic medium:

m(x)=[1+14{cos⁡(20x+y2)+cos⁡(20x−y2)}]1/2.(41)m(\boldsymbol{x}) = \left[1+\frac{1}{4}\left\{\cos\left(20\frac{x+y}{\sqrt{2}}\right)+\cos\left(20\frac{x-y}{\sqrt{2}}\right)\right\}\right]^{1/2}. \tag*{(41)}

Random medium: a fixed 8-term Fourier field

m(x)=4/31−12δ(x),δ(x)=12+0.453.32R(x),(42)m(\mathbf{x}) = \frac{4/3}{1-\frac{1}{2}\delta(\mathbf{x})}, \qquad\delta(\mathbf{x}) = \frac{1}{2}+\frac{0.45}{3.32}R(\mathbf{x}), \tag*{(42)}

where RR is specified in Appendix § 9.

Every mesh size n3n^3 counts fine-grid intervals including 12 PML cells on each side. With h=2/(n−24)h=2/(n-24), the frequency is set by k0hm∗=2π/6k_0 h m_* = 2\pi/6, where the reference maximum slowness m∗m_* is 1, 1.5, 1.5\sqrt{1.5}, and 2.32675 for the homogeneous, lens, periodic, and random media, respectively. Increasing nn therefore increases the electrical size of the fixed physical domain while retaining the same minimum number of points per wavelength. All sources use the zz-oriented grid-edge load described in Section 4, with the source-and-field filter of (23).

The PML uses the linear absorption profile (26) and the first-order absorbing condition on its exterior. Its strength is tied to the same wavelength normalization,

cpml=3npml2ppwm∗,npml=12,ppw=6.(43)c_{\mathrm{pml}}=\frac{3n_{\mathrm{pml}}}{2\mathrm{ppw}m_*}, \qquad n_{\mathrm{pml}}=12,\qquad\mathrm{ppw}=6. \tag*{(43)}

For the homogeneous medium, this gives the value cpml=3c_{\mathrm{pml}}=3 of Section 4. The auxiliary shift is σ=0.2\sigma=0.2 for the homogeneous medium and σ=0.6\sigma=0.6 for the heterogeneous media. The Krylov work counts of § 3.2 are

(mh,mc,ms,mb)=(6,6,4,10).(44)(m_h,m_c,m_s,m_b)=(6,6,4,10). \tag*{(44)}

The Jacobi weights on hh, 2h2h, and 4h4h are 0.5, 0.55, and 0.4, respectively. The outer FGMRES restart length is 4, and all reported solves satisfy (37) with ϵout=10−3\epsilon_{\mathrm{out}}=10^{-3} in complex single precision.

One preconditioner application (PC) denotes one complete call of Algorithm 1. We report setup and complete solution times separately, the cost per application τ=Tsolve/nPC\tau=T_{\mathrm{solve}}/n_{\mathrm{PC}}, and the maximum device-memory usage per GPU. All GPU runs use a cluster with eight Hygon BW1000 GPUs and four 400 Gb/s network adapters per node. The BW1000 is a general-purpose GPU with 64 GB of HBM, a memory bandwidth of 1.8 TB/s, a peak single-precision (FP32) throughput of 60 TFLOPS, a PCIe 5.0 ×\times16 host interface, and a 448 GB/s bidirectional GPU interconnect. Each MPI process controls one GPU. Within one node, the nested yy–zz partition of § 3.3 uses zz-slabs only; multi-node runs use eight processes per node, and each node owns one zz-slab, divided into eight yy-blocks.

Weak scaling

We first increase the electrical size of the problem together with the GPU allocation, keeping the number of unknowns per GPU nearly constant. The sequence uses 4803480^3 on 1 GPU, 9603960^3 on 8 GPUs, 192031920^3 on 64 GPUs, and 288032880^3 on 216 GPUs. Under the frequency normalization above, the homogeneous domain grows from 76 to 156, 316, and then 476 wavelengths in each coordinate direction. At the largest scale, the solver must therefore resolve three-dimensional propagation across nearly 480 wavelengths using approximately 71.7 billion complex edge unknowns, within an essentially fixed storage budget per GPU.

Let D(n)=3n(n+1)2D(n)=3n(n+1)^2 be the number of global Yee edge unknowns for a total n3n^3 mesh, and let τn,p\tau_{n,p} be the mean full-solve time per PC call on pp GPUs. We correct for the small change in the number of unknowns per GPU [14] and define

ηW(n,p)=τ480,1τn,pD(n)/pD(480),(n,p)∈{(480,1),(960,8),(1920,64),(2880,216)}.(45)\eta_{\mathrm{W}}(n,p)=\frac{\tau_{480,1}}{\tau_{n,p}}\frac{D(n)/p}{D(480)}, \qquad(n,p)\in\{(480,1),(960,8),(1920,64),(2880,216)\}. \tag*{(45)}

Thus ηW\eta_{\mathrm{W}} measures the parallel throughput of one application, whereas the PC count reflects the convergence of the solver as the propagation distance grows. Table 4 reports both and their combined effect on the solution time.

mediummeshPC callsGPUsTsetupT_{\mathrm{setup}}TsolveT_{\mathrm{solve}}solve/PCηw\eta_{\mathrm{w}}peak/GPU
homogeneous4803480^31410.240 s15.895 s1.1353 s100.0%50.35 GiB
homogeneous9603960^32380.327 s24.706 s1.0742 s105.5%51.91 GiB
homogeneous192031920^342644.922 s49.375 s1.1756 s96.3%46.83 GiB
homogeneous288032880^3612164.784 s77.480 s1.2702 s89.1%48.57 GiB
lens4803480^32212.335 s52.702 s2.3955 s100.0%48.58 GiB
lens9603960^34582.673 s98.500 s2.1889 s109.2%50.15 GiB
lens192031920^3106644.708 s239.432 s2.2588 s105.7%50.25 GiB
lens288032880^31742164.704 s459.206 s2.6391 s90.5%50.98 GiB
periodic4803480^32612.330 s62.929 s2.4203 s100.0%48.58 GiB
periodic9603960^35083.181 s110.465 s2.2093 s109.3%50.15 GiB
periodic192031920^3113644.455 s257.479 s2.2786 s105.9%50.25 GiB
periodic288032880^31902164.996 s503.773 s2.6514 s91.0%50.98 GiB
random4803480^32212.372 s53.242 s2.4201 s100.0%48.58 GiB
random9603960^34183.747 s90.591 s2.2095 s109.3%50.15 GiB
random192031920^384644.382 s191.471 s2.2794 s105.8%50.25 GiB
random288032880^31362164.671 s360.639 s2.6518 s90.9%50.98 GiB

Table 4. Weak scaling on GPUs, relative to the 4803480^3 1-GPU case for each medium. Memory is the maximum measured device usage per GPU.

The homogeneous problem spanning 476 wavelengths per direction converges in 61 PC calls and 77.5 seconds. Relative to the 1-GPU case, the propagation distance increases by a factor of 6.3, whereas the PC count grows by a factor of about 4.4. The same three-grid construction solves every heterogeneous 288032880^3 problem within 9 minutes: the random, lens, and periodic media require 360.6–503.8 seconds.

The cost per application changes little from 1 to 64 GPUs, with weak-scaling efficiencies of 96.3–109.3% across the four media. At 216 GPUs, one application to a system with approximately 71.7 billion complex unknowns takes 1.27–2.65 seconds, retaining 89.1–91.0% weak-scaling efficiency. The matrix-free construction also keeps setup and storage small: setup takes at most 5.0 seconds throughout the sequence, and device-memory usage remains below 52 GiB per GPU as the global mesh grows by a factor of 216.

Strong scaling

We next keep the mesh and frequency fixed and increase the GPU allocation to quantify the reduction in solution time. We use 4803480^3 meshes on 1 to 8 GPUs within one node, 9603960^3 meshes on 8 to 64 GPUs across 1 to 8 nodes, and 192031920^3 meshes on 64 to 256 GPUs across 8 to 32 nodes. The 9603960^3 and 192031920^3 systems contain approximately 2.66 and 21.3 billion complex unknowns and, in the homogeneous case, span 156 and 316 wavelengths per coordinate direction. The strong-scaling efficiency ηs\eta_{\mathrm{s}} is the speedup in complete solution time divided by the increase in GPU count, relative to the smallest allocation for each mesh. Table 5–Table 7 list the results.

mediumPC callsGPUsTsetupT_{\mathrm{setup}}TsolveT_{\mathrm{solve}}solve/PCηs\eta_{\mathrm{s}}peak/GPU
homogeneous1410.240 s15.895 s1.1353 s100.0%50.35 GiB
homogeneous1420.201 s7.888 s0.5634 s100.8%33.98 GiB
homogeneous1440.156 s4.442 s0.3173 s89.5%18.19 GiB
homogeneous1480.154 s2.617 s0.1869 s75.9%10.20 GiB
lens2212.335 s52.702 s2.3955 s100.0%48.58 GiB
lens2220.239 s25.644 s1.1656 s102.8%36.93 GiB
lens2240.177 s13.391 s0.6087 s98.4%19.69 GiB
lens2280.158 s7.414 s0.3370 s88.9%10.97 GiB
periodic2612.330 s62.929 s2.4203 s100.0%48.58 GiB
periodic2620.252 s30.604 s1.1771 s102.8%36.93 GiB
periodic2640.177 s15.981 s0.6147 s98.4%19.69 GiB
periodic2680.156 s8.834 s0.3398 s89.0%10.97 GiB
random2212.372 s53.242 s2.4201 s100.0%48.58 GiB
random2220.269 s25.900 s1.1773 s102.8%36.93 GiB
random2240.186 s13.518 s0.6144 s98.5%19.69 GiB
random2280.167 s7.474 s0.3397 s89.0%10.97 GiB

Table 5. Strong scaling on a fixed 4803480^3 mesh using GPUs. Efficiency is based on complete solve time; memory is the maximum measured device usage per GPU.

mediumPC callsGPUsTsetupT_{\mathrm{setup}}TsolveT_{\mathrm{solve}}solve/PCηs\eta_{\mathrm{s}}peak/GPU
homogeneous42644.922 s49.375 s1.1756 s100.0%46.83 GiB
homogeneous421280.454 s26.273 s0.6256 s94.0%36.69 GiB
homogeneous422560.339 s16.638 s0.3961 s74.2%19.04 GiB
lens106644.708 s239.432 s2.2588 s100.0%50.25 GiB
lens1021280.468 s116.840 s1.1455 s102.5%38.20 GiB
lens1042560.368 s69.695 s0.6701 s85.9%20.61 GiB
periodic113644.455 s257.479 s2.2786 s100.0%50.25 GiB
periodic1141280.455 s131.711 s1.1554 s97.7%38.20 GiB
periodic1132560.371 s76.439 s0.6765 s84.2%20.61 GiB
random84644.382 s191.471 s2.2794 s100.0%50.25 GiB
random841280.533 s97.003 s1.1548 s98.7%38.20 GiB
random852560.381 s57.327 s0.6744 s83.5%20.61 GiB

Table 7. Strong scaling on a fixed 192031920^3 mesh using GPUs. Efficiency is based on complete solve time; memory is the maximum measured device usage per GPU.

The strong-scaling results reduce billion-unknown Maxwell solves to seconds. On the 4803480^3 mesh, 8 GPUs complete every solve in at most 8.8 seconds. On the 9603960^3 mesh, increasing the allocation from 8 to 64 GPUs shortens the homogeneous solve from 24.7 to 4.5 seconds and the heterogeneous solves from 90.6–110.5 to 14.6–17.9 seconds. On the 192031920^3 mesh, increasing the allocation from 64 to 256 GPUs shortens the homogeneous solve, which spans 316 wavelengths per direction, from 49.4 to 16.6 seconds and the heterogeneous solves from 191.5–257.5 to 57.3–76.4 seconds, with strong-scaling efficiencies of 74.2–85.9%.

mediumPC callsGPUsTsetupT_{\mathrm{setup}}TsolveT_{\mathrm{solve}}solve/PCηs\eta_{\mathrm{s}}peak/GPU
homogeneous2380.327 s24.706 s1.0742 s100.0%51.91 GiB
homogeneous23160.379 s14.455 s0.6285 s85.5%36.19 GiB
homogeneous23320.423 s7.839 s0.3408 s78.8%19.24 GiB
homogeneous23640.309 s4.544 s0.1976 s68.0%10.73 GiB
lens4582.673 s98.500 s2.1889 s100.0%50.15 GiB
lens45160.397 s51.275 s1.1395 s96.1%37.95 GiB
lens46320.406 s28.234 s0.6138 s87.2%19.99 GiB
lens45640.288 s15.964 s0.3548 s77.1%10.99 GiB
periodic5083.181 s110.465 s2.2093 s100.0%50.15 GiB
periodic50160.401 s57.482 s1.1496 s96.1%37.95 GiB
periodic50320.412 s30.895 s0.6179 s89.4%19.99 GiB
periodic50640.297 s17.933 s0.3587 s77.0%10.99 GiB
random4183.747 s90.591 s2.2095 s100.0%50.15 GiB
random41160.415 s47.188 s1.1509 s96.0%37.95 GiB
random41320.419 s25.437 s0.6204 s89.0%19.99 GiB
random41640.301 s14.608 s0.3563 s77.5%10.99 GiB

Table 6. Strong scaling on a fixed 9603960^3 mesh using GPUs. Efficiency is based on complete solve time; memory is the maximum measured device usage per GPU.

CPU scaling

The CPU implementation carries the same discretization and three-grid method to full-wave Maxwell computation beyond 500 billion unknowns. The largest homogeneous problem is solved on a 576035760^3 mesh with approximately 574 billion complex unknowns, and its domain spans 956 wavelengths in each coordinate direction. The Green-field comparison in Table 2 establishes the accuracy of this solution; here we examine the resources and solution time needed to reach it.

The CPU implementation runs eight MPI ranks per two-socket Intel Xeon Platinum 8358P node, each rank using eight OpenMP threads, so that the 64 cores of a node are filled; the ranks form a three-dimensional brick partition. CPU memory denotes the total allocation over all ranks. The weak-scaling sequence pairs 9603960^3, 192031920^3, 384033840^3, and 576035760^3 meshes with 1, 8, 64, and 216 nodes, so that every rank holds a 4803480^3 block. We use the per-application efficiency (45) with the one-node 9603960^3 case as reference; the strong-scaling efficiency is based on complete solution time relative to the smallest allocation for each mesh.

The per-application weak scaling remains nearly ideal over the 216-fold increase in mesh volume and node count (Table 8). The application cost rises only from 20.4 to 21.4 seconds, giving 95.7% efficiency on 13 824 cores.

meshunknownsnodesCPU coresPC callssetupsolvesolve/PCηw\eta_{\mathrm{w}}memory
9603960^32.66×1092.66 \times10^9164235.32 s470.21 s20.444 s100.0%364.6 GiB
192031920^32.13×10102.13 \times10^{10}8512426.04 s874.55 s20.823 s98.2%29181.1 GiB
384033840^31.70×10111.70 \times10^{11}644096806.62 s1658.30 s20.729 s98.6%23350.5 GiB
576035760^35.74×10115.74 \times10^{11}216138241196.09 s2541.28 s21.355 s95.7%78837.3 GiB

Table 8. CPU weak scaling for the homogeneous medium, relative to the one-node 9603960^3 case.

This sustained throughput turns the 574-billion-unknown system into a tractable complete solve. The problem spanning 956 wavelengths per direction converges in 119 applications and approximately 42 minutes, after a hierarchy setup of about 6 seconds. Because the storage grows in proportion to the mesh volume, memory per node stays at about 365 GiB from 1 to 216 nodes, so larger electrical domains are reached by adding nodes at a fixed storage budget per node and a nearly fixed cost per application.

To complement this increase in problem size, we fix the mesh and add nodes to shorten the complete solve (Table 9). For 384033840^3, a system with approximately 170 billion complex unknowns, increasing the allocation from 64 to 256 nodes reduces the solve from 1658 to 447 seconds, with an efficiency of 92.8%. An eightfold increase in node count reduces the 192031920^3 solve from 875 to 124 seconds and the 9603960^3 solve from 470 to 68 seconds, with efficiencies of 88.1% and 87.1%, respectively.

meshunknownsnodesCPU coresPC callssetupsolvesolve/PCηs\eta_smemory
9603960^32.66×1092.66 \times10^9164235.32 s470.21 s20.444 s100.0%364.6 GiB
9603960^32.66×1092.66 \times10^92128232.74 s241.09 s10.482 s97.5%370.0 GiB
9603960^32.66×1092.66 \times10^94256231.60 s124.47 s5.412 s94.4%376.0 GiB
9603960^32.66×1092.66 \times10^98512230.82 s67.50 s2.935 s87.1%386.9 GiB
192031920^32.13×10102.13 \times10^{10}8512426.04 s874.55 s20.823 s100.0%2918.1 GiB
192031920^32.13×10102.13 \times10^{10}161024423.07 s441.70 s10.517 s99.0%2959.5 GiB
192031920^32.13×10102.13 \times10^{10}322048421.63 s227.66 s5.421 s96.0%3011.1 GiB
192031920^32.13×10102.13 \times10^{10}644096420.83 s124.14 s2.956 s88.1%3097.1 GiB
384033840^31.70×10111.70 \times10^{11}644096806.62 s1658.30 s20.729 s100.0%23350.5 GiB
384033840^31.70×10111.70 \times10^{11}1288192803.36 s853.87 s10.673 s97.1%23685.4 GiB
384033840^31.70×10111.70 \times10^{11}25616384801.65 s446.75 s5.584 s92.8%24117.7 GiB

Table 9. CPU strong scaling for the homogeneous medium, relative to the smallest allocation for each mesh.

Conclusions

We have developed a Maxwell IOFD discretization and a three-grid solver that together make accurate three-dimensional full-wave computation practical over hundreds of wavelengths. Compact face and edge filters retain the Yee curl structure while providing enough freedom to control both transverse dispersion branches. The symbol analysis connects the filter coefficients to the numerical wavenumbers and bounds the effects of coefficient interpolation. Optimizing at the operating resolution then suppresses the phase error that would otherwise accumulate along long propagation paths. This improvement is realized in the computed fields: at only 6 points per wavelength, the homogeneous problem remains accurate on a domain 956 wavelengths wide in every coordinate direction, with a vector L2L^2 error of 4.38%.

The three-grid hierarchy converts this low-dispersion representation into an efficient large-scale solver. An unshifted intermediate-grid equation supplies the propagating correction, while a complex-shifted auxiliary cycle makes its iterative solution inexpensive. The resulting compact, matrix-free operations keep storage proportional to the number of unknowns and support effective parallel execution. Complete solves with approximately 71.7 billion complex unknowns take 77–504 seconds on 216 GPUs across homogeneous, focusing, periodic, and random media. On CPUs, the same method reaches approximately 574 billion unknowns with per-application weak-scaling efficiencies above 95%. These results establish the value of combining dispersion optimization with a fully matrix-free multilevel solver: accurate propagation at modest resolution can be carried through to fast solutions of very large three-dimensional Maxwell systems.

Dispersion Analysis

In this appendix, we derive the dispersion properties behind the coefficient design of § 2.3: the leading phase errors of the two polarizations (Appendix § 7.§ 1), the radial control of the wavenumber error under coefficient perturbation and interpolation (Appendix § 7.§ 2), and the residues that the source and field filter corrects (Appendix § 7.§ 3). In the notation of (14), the stiffness symbol is

K^=(f2s32+f3s22−f3s1s2−f2s1s3−f3s1s2f1s32+f3s12−f1s2s3−f2s1s3−f1s2s3f1s22+f2s12).(46)\hat{K} = \begin{pmatrix} f_2s_3^2 + f_3s_2^2 & -f_3s_1s_2 & -f_2s_1s_3 \\ -f_3s_1s_2 & f_1s_3^2 + f_3s_1^2 & -f_1s_2s_3 \\ -f_2s_1s_3 & -f_1s_2s_3 & f_1s_2^2 + f_2s_1^2 \end{pmatrix}. \tag*{(46)}

For a prescribed frequency, η\eta fixes the coefficients c(η)c(\eta) while θ\boldsymbol{\theta} ranges over the Fourier modes. The two roots in (18) also control the artificial difference between the polarization wavenumbers,

∣kh,1−kh,2∣k=∣q1−q2∣≤∣δ1∣+∣δ2∣≤2Eph(η).(47)\frac{\lvert k_{h,1}-k_{h,2}\rvert}{k}=\lvert q_1-q_2\rvert\leq\lvert\delta_1\rvert+\lvert\delta_2\rvert\leq2\mathcal{E}_{\mathrm{ph}}(\eta). \tag*{(47)}

and cubic symmetry allows the angular search to be restricted to a symmetry sector.

Leading phase errors

Proposition A.1 (Leading phase errors of the two polarizations). Fix a real coefficient vector c\boldsymbol{c} and a unit direction d\boldsymbol{d}. Let U∈R3×2U\in\mathbb{R}^{3\times2} have orthonormal columns spanning d⊥\boldsymbol{d}^{\perp}, and define

S4=∑j=13dj4,DT=UTdiag⁡(d12,d22,d32)U.(48)S_4=\sum_{j=1}^{3}d_j^4,\qquad D_T=U^T\operatorname{diag}(d_1^2,d_2^2,d_3^2)U. \tag*{(48)}

The two positive generalized eigenvalues of (K^(td;c),M^(td;c))(\widehat{K}(t\boldsymbol{d};\boldsymbol{c}),\widehat{M}(t\boldsymbol{d};\boldsymbol{c})) satisfy, as t→0t\to0,

λb(td;c)=t2+t4γb+O(t6),(49)\lambda_b(t\boldsymbol{d};\boldsymbol{c})=t^2+t^4\gamma_b+O(t^6), \tag*{(49)}

where γ1,γ2\gamma_1,\gamma_2 are the eigenvalues of

ΓT=[bt−a2+(a2−112)S4]I2+a+bn−bt2DT.(50)\Gamma_T=\left[\frac{b_t-a}{2}+\left(\frac{a}{2}-\frac{1}{12}\right)S_4\right]I_2+\frac{a+b_n-b_t}{2}D_T. \tag*{(50)}

The near-physical roots therefore obey

δb=−κ22γb+O(κ4).(51)\delta_b=-\frac{\kappa^2}{2}\gamma_b+O(\kappa^4). \tag*{(51)}

The leading polarization difference vanishes for every direction when a+bn−bt=0a+b_n-b_t=0. The O(κ2)O(\kappa^2) phase-error term vanishes for both polarizations in every direction if and only if

a=16,bn=0,bt=16.(52)a=\frac{1}{6},\qquad b_n=0,\qquad b_t=\frac{1}{6}. \tag*{(52)}

Applying this expansion to the Yee member c=0\boldsymbol{c}=0 gives

λ1=λ2=∑j4sin⁡2(θj/2),δb=κ224∑jdj4+O(κ4).(53)\lambda_1=\lambda_2=\sum_j4\sin^2(\theta_j/2),\qquad\delta_b=\frac{\kappa^2}{24}\sum_jd_j^4+O(\kappa^4). \tag*{(53)}

which is the leading, direction-dependent Yee error removed by (A.7). The remaining parameters bttb_{tt} and bntb_{nt} first enter at order t6t^6, and bnttb_{ntt} at order t8t^8.

Radial error control and interpolation

Admissibility also bounds the spread of the constitutive symbols,

χ(c)=max⁡{max⁡r,θfrmin⁡r,θfr,max⁡r,θmrmin⁡r,θmr}.(54)\chi(\boldsymbol{c})=\max\left\{\frac{\max_{r,\boldsymbol{\theta}}f_r}{\min_{r,\boldsymbol{\theta}}f_r},\frac{\max_{r,\boldsymbol{\theta}}m_r}{\min_{r,\boldsymbol{\theta}}m_r}\right\}. \tag*{(54)}

with all extrema attained at vertices. Evaluating a branch on the physical sphere gives the residual

rb(d;η,c)=λb(κd;c)κ2−1.(55)r_b(\boldsymbol{d};\eta,\boldsymbol{c})=\frac{\lambda_b(\kappa\boldsymbol{d};\boldsymbol{c})}{\kappa^2}-1. \tag*{(55)}

whose effect on the wavenumber depends on how rapidly the branch crosses the level κ2\kappa^2.

Proposition A.2 (Radial phase-error control). Fix κ>0\kappa> 0, a unit direction d\mathbf{d}, and an admissible coefficient vector c\mathbf{c}. Let λb\lambda_b be either positive generalized eigenvalue of (K^,M^)(\widehat{K},\widehat{M}), and define Fb(q)=λb(qκd;c)−κ2F_b(q) = \lambda_b(q\kappa\mathbf{d};\mathbf{c})-\kappa^2 on I=[q−,q+]I=[q_-,q_+]. Suppose that 0<q−<1<q+0<q_-<1<q_+, that qκd∈[−π,π]3q\kappa\mathbf{d}\in[-\pi,\pi]^3 for every q∈Iq\in I, and that Fb(q−)≤0≤Fb(q+)F_b(q_-)\leq0\leq F_b(q_+). If

Fb(q2)−Fb(q1)≥γrκ2(q2−q1),q2>q1,q1,q2∈I,(56)F_b(q_2)-F_b(q_1)\geq\gamma_r\kappa^2(q_2-q_1),\qquad q_2>q_1,\qquad q_1,q_2\in I, \tag*{(56)}

for some γr>0\gamma_r>0, then FbF_b has a unique root qb∈Iq_b\in I, and

∣qb−1∣≤∣rb∣γr.(57)|q_b-1|\leq\frac{|r_b|}{\gamma_r}. \tag*{(57)}

At a simple generalized eigenpair normalized by pb∗M^pb=1\mathbf{p}_b^*\widehat{M}\mathbf{p}_b=1, the radial derivative is

Fb′(q)=pb∗(∂qK^−λb∂qM^)pb,∂q=κd⋅∇θ.(58)F_b'(q)=\mathbf{p}_b^*(\partial_q\widehat{K}-\lambda_b\partial_q\widehat{M})\mathbf{p}_b,\qquad\partial_q=\kappa\mathbf{d}\cdot\nabla_\theta. \tag*{(58)}

A differentiable branch with Fb′(q)≥γrκ2F_b'(q)\geq\gamma_r\kappa^2 satisfies (A.11), and linearizing at q=1q=1 gives

δb≃−λb(κd)−κ2κd⋅∇θλb(κd).(59)\delta_b\simeq-\frac{\lambda_b(\kappa\mathbf{d})-\kappa^2}{\kappa\mathbf{d}\cdot\nabla_\theta\lambda_b(\kappa\mathbf{d})}. \tag*{(59)}

Proposition A.3 (Coefficient perturbations and wavenumber error). Fix κ>0\kappa>0 and a unit direction d\mathbf{d}. Let c\mathbf{c} and c~\widetilde{\mathbf{c}} be admissible coefficient vectors, and let λb,λ~b\lambda_b,\widetilde{\lambda}_b denote their ordered positive generalized eigenvalues. On a common interval II of radial arguments θ=qκd\boldsymbol{\theta}=q\kappa\mathbf{d} in the Fourier cube, suppose that M^,M~⪰mI3\widehat{M},\widetilde{M}\succeq mI_3, with m>0m>0, and both stiffness symbols have norm at most Kmax⁡K_{\max} in the spectral norm. Put Δc=c~−c\Delta\mathbf{c}=\widetilde{\mathbf{c}}-\mathbf{c} and

LM=2∣Δbn∣+4∣Δbt∣+4∣Δbtt∣+8∣Δbnt∣+8∣Δbntt∣.(60)L_M=2|\Delta b_n|+4|\Delta b_t|+4|\Delta b_{tt}|+8|\Delta b_{nt}|+8|\Delta b_{ntt}|. \tag*{(60)}

At each such Fourier argument, the ordered eigenvalues satisfy

∣λ~b−λb∣≤2∣s∣2m∣Δa∣+Kmax⁡m2LM=:ελ(θ).(61)|\widetilde{\lambda}_b-\lambda_b|\leq\frac{2|s|^2}{m}|\Delta a|+\frac{K_{\max}}{m^2}L_M=:\varepsilon_\lambda(\boldsymbol{\theta}). \tag*{(61)}

If the corresponding roots qb,q~bq_b,\widetilde{q}_b lie in that interval and the unperturbed branch satisfies (A.11), then

∣q~b−qb∣≤sup⁡q∈Iελ(qκd)γrκ2.(62)|\widetilde{q}_b-q_b|\leq\frac{\sup_{q\in I}\varepsilon_\lambda(q\kappa\mathbf{d})}{\gamma_r\kappa^2}. \tag*{(62)}

For a twice continuously differentiable reference coefficient curve c⋆\mathbf{c}^\star, linear interpolation has the componentwise error bound

∥ci⋆−Ici⋆∥L∞[ηj,ηj+1]≤(ηj+1−ηj)28∥(ci⋆)′′∥L∞[ηj,ηj+1].(63)\|c_i^\star-\mathcal{I}c_i^\star\|_{L^\infty[\eta_j,\eta_{j+1}]}\leq\frac{(\eta_{j+1}-\eta_j)^2}{8}\|(c_i^\star)''\|_{L^\infty[\eta_j,\eta_{j+1}]}. \tag*{(63)}

Under the conditions of Proposition A.3, substitution into (A.15)–(A.17) gives a second-order interpolation contribution to the wavenumber error when the mass lower bound and radial slope remain bounded away from zero.

Residues and the source and field filter

For admissible coefficients let p0,p1,p2\mathbf{p}_0,\mathbf{p}_1,\mathbf{p}_2 be M^\widehat{M}-orthonormal generalized eigenvectors of (K^,M^)(\widehat{K},\widehat{M}), with λ0=0\lambda_0=0. Then

G−1=−p0p0∗κ2+∑b=12pbpb∗λb−κ2.(64)\mathcal{G}^{-1}=-\frac{\mathbf{p}_0\mathbf{p}_0^*}{\kappa^2}+\sum_{b=1}^{2}\frac{\mathbf{p}_b\mathbf{p}_b^*}{\lambda_b-\kappa^2}. \tag*{(64)}

Proposition A.4 (The residue of a simple transverse pole). Fix η\eta and an admissible coefficient vector. Suppose that the matrix symbol P(θ∗;η)\mathcal{P}(\theta_*;\eta) in (14) has a simple zero eigenvalue with Euclidean unit eigenvector ebe_b. Choose a unit normal nbn_b to its characteristic surface and assume

αb=eb∗(nb⋅∇θP)eb≠0at θ∗.(65)\alpha_b=e_b^*(n_b\cdot\nabla_\theta\mathcal{P})e_b\ne0 \quad\text{at }\theta_*. \tag*{(65)}

Then

P(θ∗+tnb;η)−1=ebeb∗tαb+O(1),t→0.(66)\mathcal{P}(\theta_*+tn_b;\eta)^{-1}=\frac{e_be_b^*}{t\alpha_b}+O(1),\qquad t\to0. \tag*{(66)}

In the generalized normalization of (A.19), eb=pb/∥pb∥2e_b=p_b/\lVert p_b\rVert_2 and

αb=nb⋅∇λb∥pb∥22.(67)\alpha_b=\frac{n_b\cdot\nabla\lambda_b}{\lVert p_b\rVert_2^2}. \tag*{(67)}

on the characteristic surface. The continuous transverse poles have strength 1/(2κ)1/(2\kappa), so multiplying the inverse symbol by qQ2≈αb/(2κ)q_Q^2\approx\alpha_b/(2\kappa) moves the discrete residues toward the continuous ones. The filter (22) has the Fourier symbol

qQ(θ)=1+β1(∑jcos⁡θj−3)+β2(∑i<jcos⁡θicos⁡θj−3)+β3(∏jcos⁡θj−1),(68)\begin{aligned} q_Q(\theta)&=1+\beta_1\left(\sum_j\cos\theta_j-3\right)+\beta_2\left(\sum_{i<j}\cos\theta_i\cos\theta_j-3\right)\\ &\quad+\beta_3\left(\prod_j\cos\theta_j-1\right), \tag*{(68)} \end{aligned}

with $q_Q(0)=1.

Proofs for Section 2

Proof of Proposition 2.1

Proof. For a smooth component field ww, Taylor expansion on its lattice gives Δjw=12h2∂j2w+O(h4)\Delta_jw=\frac{1}{2}h^2\partial_j^2w+O(h^4). Thus Fh=I+O(h2)F_h=I+O(h^2) and Mh=I+O(h2)M_h=I+O(h^2) on smooth fields. The staggered differences in ChC_h and its reverse curl are second-order accurate at their respective locations, proving consistency. The two stiffness identities follow from ChGh=0C_hG_h=0 and its adjoint. Applying Gh∗G_h^* to the discrete equation proves (10).

Proof of Proposition 2.2

Proof. For nonzero ss, the cross-product matrix SS has rank two and kernel span⁡{s}\operatorname{span}\{s\}. Since F^\widehat{F} is positive definite, K^=STF^S\widehat{K}=S^T\widehat{F}S has the same kernel and two positive eigenvalues after congruence by M^−1/2\widehat{M}^{-1/2}. Multiplying K^p=λM^p\widehat{K}p=\lambda\widehat{M}p by sTs^T gives the transverse constraint for λ>0\lambda>0. The two nonzero eigenvalues of BB have sum tr⁡B\operatorname{tr}B and squared sum tr⁡(B2)\operatorname{tr}(B^2), which proves (16). Factoring P=M^1/2(B−κ2I)M^1/2\mathcal{P}=\widehat{M}^{1/2}(B-\kappa^2I)\widehat{M}^{1/2} gives (17). Finally, frf_r is affine in zrz_r, and mrm_r is affine in each zjz_j separately. Each value inside the cube is therefore a convex combination of vertex values.

Proof of Proposition A.1. Let Sd=[d]×S_d = [d]_\times and Sd3=[(d13,d23,d33)T]×S_{d^3} = [(d_1^3,d_2^3,d_3^3)^T]_\times. Expanding sine and cosine gives

S(td)=tSd−t324Sd3+O(t5),S(t d) = tS_d - \frac{t^3}{24}S_{d^3} + O(t^5),
F^(td)=I−αt22diag⁡(dj2)+O(t4),\widehat{F}(t d) = I - \frac{\alpha t^2}{2}\operatorname{diag}(d_j^2) + O(t^4),
M^(td)=I+t2M2+O(t4),\widehat{M}(t d) = I + t^2 M_2 + O(t^4),
M2=−12[btI+(bn−bt)diag⁡(dj2)].M_2 = -\frac{1}{2}\left[b_t I + (b_n-b_t)\operatorname{diag}(d_j^2)\right].

Consequently, K^=t2(I−ddT)+t4K4+O(t6)\widehat{K} = t^2(I-dd^T) + t^4 K_4 + O(t^6), where

K4=−124(Sd3TSd+SdTSd3)−α2SdTdiag⁡(dj2)Sd.(69)K_4 = -\frac{1}{24}\left(S_{d^3}^T S_d + S_d^T S_{d^3}\right) - \frac{\alpha}{2}S_d^T\operatorname{diag}(d_j^2)S_d. \tag*{(69)}

To extract the transverse correction, expand B=M^−1/2K^M^−1/2B = \widehat{M}^{-1/2}\widehat{K}\widehat{M}^{-1/2}. Its leading eigenspace is d⊥d^\perp, and restriction to that space gives the t4t^4 correction UT(K4−M2)UU^T(K_4-M_2)U. The transverse identities are

UT(Sd3TSd+SdTSd3)U=2S4I2,U^T\left(S_{d^3}^T S_d + S_d^T S_{d^3}\right)U = 2S_4I_2,
UTSdTdiag⁡(dj2)SdU=(1−S4)I2−DT.U^T S_d^T\operatorname{diag}(d_j^2)S_dU = (1-S_4)I_2-D_T.

The second identity follows from the action of SdS_d as a right-angle rotation on d⊥d^\perp. Substitution gives (A.5).

Inserting qb=1+O(κ2)q_b = 1+O(\kappa^2) into λb(qbκd)=κ2\lambda_b(q_b\kappa d)=\kappa^2 gives (A.6). The scalar term of ΓT\Gamma_T is common to both polarizations; its DTD_T term vanishes when α+bn−bt=0\alpha+b_n-b_t=0.

For all-direction cancellation of the leading phase error, d=(1,0,0)Td=(1,0,0)^T forces bt=1/6b_t=1/6. Taking d=(1,1,0)T/2d=(1,1,0)^T/\sqrt{2}, for which DTD_T has eigenvalues 00 and 1/21/2, then forces α=1/6\alpha=1/6 and bn=0b_n=0. These values make ΓT\Gamma_T zero for every direction, proving sufficiency.

Proof of Proposition A.2. The generalized eigenvalues are continuous because the mass symbol is positive definite. The sign condition and intermediate-value theorem give a root; (A.11) makes it unique. Applying that inequality between 11 and qbq_b gives γrκ2∣qb−1∣≤∣Fb(1)∣=κ2∣rb∣\gamma_r\kappa^2|q_b-1|\leq|F_b(1)|=\kappa^2|r_b|, which proves (A.12).

For the derivative formula, differentiate K^pb=λbM^pb\widehat{K}p_b=\lambda_b\widehat{M}p_b and multiply by pb∗p_b^*. The eigenvector-derivative terms cancel, yielding (A.13).

Proof of Proposition A.3. The bounds ∣zj∣≤2|z_j|\leq2 give ∥M^−M~^∥2≤LM\lVert\widehat{M}-\widehat{\widetilde{M}}\rVert_2\leq L_M. Since ∥S∥2=∣s∣\lVert S\rVert_2=|s|, ∥K^−K~^∥2≤2∣s∣2∣Δα∣\lVert\widehat{K}-\widehat{\widetilde{K}}\rVert_2\leq2|s|^2|\Delta\alpha|.

For any Euclidean unit vector vv, compare the generalized Rayleigh quotients with numerators v∗Kvv^*Kv and v∗K~vv^*\widetilde{K}v. Their difference is bounded by ∥ΔK^∥2/m+Kmax⁡∥ΔM^∥2/m2\lVert\Delta\widehat{K}\rVert_2/m+K_{\max}\lVert\Delta\widehat{M}\rVert_2/m^2. The min–max principle gives (A.16) for the ordered eigenvalues, including at a polarization coincidence.

At q~b\widetilde{q}_b, the perturbed eigenvalue is κ2\kappa^2. Applying (A.11) between the two roots and using (A.16) proves (A.17).

Proof of Proposition A.4. The simple eigenvalue of the Hermitian matrix P\mathcal{P} is tαb+O(t2)t\alpha_b+O(t^2) along this crossing. Its spectral projector is ebeb∗+O(t)e_b e_b^*+O(t), while the other eigenvalues remain separated from zero. Inverting the spectral decomposition proves (A.21).

The Random Material Field

The fixed realization in (42) is the trigonometric sum

R(x)=∑j=18Ajψj(2πνj⋅x+φj),(70)R(\boldsymbol{x}) = \sum_{j=1}^{8} A_j \psi_j(2\pi\boldsymbol{\nu}_j \cdot\boldsymbol{x} + \varphi_j), \tag*{(70)}

where each ψj\psi_j is either sine or cosine, as specified together with the amplitudes, frequencies, and phases in Table 10. This representation defines the same material at every grid resolution.

AjA_jνj\boldsymbol{\nu}_jφj\varphi_jψj\psi_j
0.71(0.50, 1.00, −0.25-0.25)0.37cos
0.53(1.25, −0.50-0.50, 0.75)1.11sin
0.47(−0.75-0.75, 1.50, 0.50)2.23cos
0.41(1.50, 0.25, −1.00-1.00)3.17sin
0.37(0.25, −1.25-1.25, 1.50)4.03cos
0.31(−1.50-1.50, 0.75, 1.25)5.19sin
0.29(1.00, 1.00, 1.00)0.83cos
0.23(−1.25-1.25, −0.75-0.75, 0.50)2.71sin

Table 10. Fourier coefficients of the random material field.

Declaration of AI assistance

AI tools were used to assist with the proofs, the implementation of the algorithms, and the writing of the manuscript. The authors take full responsibility for the content of this paper.

References

  1. [1]M. Ainsworth, Dispersive properties of high order Nédélec/edge element approximation of the time-harmonic Maxwell equations, Philosophical Transactions of the Royal Society A, 362 (2004), pp. 471–493, 10.1098/rsta.2003.1331.pubmed.ncbi.nlm.nih.gov/15306504
  2. [2]M. Ainsworth and H. A. Wajid, Optimally blended spectral-finite element scheme for wave propagation and nonstandard reduced integration, SIAM Journal on Numerical Analysis, 48 (2010), pp. 346–371, 10.1137/090754017.DOI
  3. [3]P. R. Amestoy, I. S. Duff, J.-Y. L’Excellent, and J. Koster, A fully asynchronous multi-frontal solver using distributed dynamic scheduling, SIAM Journal on Matrix Analysis and Applications, 23 (2001), pp. 15–41, 10.1137/S0895479899358194.
  4. [4]P. R. Amestoy, C. Ashcraft, O. Boiteau, A. Buttari, J.-Y. L’Excellent, and C. Weisbecker, Improving multifrontal methods by means of block low-rank representations, SIAM Journal on Scientific Computing, 37 (2015), pp. A1451–A1474, 10.1137/120903476.
  5. [5]J.-P. Bérenger, A perfectly matched layer for the absorption of electromagnetic waves, Journal of Computational Physics, 114 (1994), pp. 185–200, 10.1006/jcph.1994.1159.DOI
  6. [6]M. Bonazzoli, V. Dolean, I. G. Graham, E. A. Spence, and P.-H. Tournier, Domain decomposition preconditioning for the high-frequency time-harmonic Maxwell equations with absorption, Mathematics of Computation, 88 (2019), pp. 2559–2604, 10.1090/mcom/3447.DOI
  7. [7]H. Calandra, S. Gratton, X. Pinel, and X. Vasseur, An improved two-grid preconditioner for the solution of three-dimensional Helmholtz problems in heterogeneous media, Numerical Linear Algebra with Applications, 20 (2013), pp. 663–688, 10.1002/nla.1860.DOI
  8. [8]M. Chanaud, L. Giraud, D. Goudin, J.-J. Pesqué, and J. Roman, A parallel full geometric multigrid solver for time harmonic Maxwell problems, SIAM Journal on Scientific Computing, 36 (2014), pp. C119–C138, 10.1137/130909512.
  9. [9]W. C. Chew and W. H. Weedon, A 3D perfectly matched medium from modified Maxwell’s equations with stretched coordinates, Microwave and Optical Technology Letters, 7 (1994), pp. 599–604, 10.1002/mop.4650071304.DOI
  10. [10]P.-H. Cocquet and M. J. Gander, Improving Yee’s scheme with asymptotic dispersion correction for time-harmonic Maxwell’s equations, Journal of Computational Physics, 550 (2026), article 114602, 10.1016/j.jcp.2025.114602.DOI
  11. [11]S. Cools and W. Vanroose, Local Fourier analysis of the complex shifted Laplacian preconditioner for Helmholtz problems, Numerical Linear Algebra with Applications, 20 (2013), pp. 575–597, 10.1002/nla.1881.DOI
  12. [12]Y. A. Erlangga, C. W. Oosterlee, and C. Vuik, A novel multigrid based preconditioner for heterogeneous Helmholtz problems, SIAM Journal on Scientific Computing, 27 (2006), pp. 1471–1492, 10.1137/040615195.
  13. [13]S. Fu, A fully matrix-free three-grid preconditioner for the time-harmonic Maxwell equations at extreme scale, arXiv:2608.22903, 2026, https://arxiv.org/abs/2608.22903.
  14. [14]S. Fu, Y. Wang, and Z. Zhao, A massively parallel three-grid preconditioner for the high-frequency Helmholtz equation, arXiv:2608.22946, 2026, https://arxiv.org/abs/2608.22946.
  15. [15]J. Gopalakrishnan, J. E. Pasciak, and L. F. Demkowicz, Analysis of a multigrid algorithm for time harmonic Maxwell equations, SIAM Journal on Numerical Analysis, 42 (2004), pp. 90–108, 10.1137/S003614290139490X.DOI
  16. [16]J. Jagalur-Mohan, G. Feijóo, and A. Oberai, A Galerkin least squares method for time harmonic Maxwell equations using Nédélec elements, Journal of Computational Physics, 235 (2013), pp. 67–81, 10.1016/j.jcp.2012.10.003.
  17. [17]C.-H. Jo, C. Shin, and J. H. Suh, An optimal 9-point, finite-difference, frequency-space, 2-D scalar wave extrapolator, Geophysics, 61 (1996), pp. 529–537, 10.1190/1.1443979.DOI
  18. [18]P. Monk, Finite Element Methods for Maxwell’s Equations, Oxford University Press, Oxford, 2003, 10.1093/acprof:oso/9780198508885.001.0001.
  19. [19]J.-C. Nédélec, Mixed finite elements in ℝ³, Numerische Mathematik, 35 (1980), pp. 315–341, 10.1007/BF01396415.
  20. [20]J. Poulson, B. Engquist, S. Li, and L. Ying, A parallel sweeping preconditioner for heterogeneous 3D Helmholtz equations, SIAM Journal on Scientific Computing, 35 (2013), pp. C194–C212, 10.1137/120871985.DOI
  21. [21]M. Rewienski and M. Mrozowski, An iterative algorithm for reducing dispersion error on Yee’s mesh in cylindrical coordinates, IEEE Microwave and Guided Wave Letters, 10 (2000), pp. 353–355, 10.1109/75.867848.DOI
  22. [22]Y. Saad, A flexible inner-outer preconditioned GMRES algorithm, SIAM Journal on Scientific Computing, 14 (1993), pp. 461–469, 10.1137/0914028.DOI
  23. [23]C. C. Stolk, A dispersion minimizing scheme for the 3-D Helmholtz equation based on ray theory, Journal of Computational Physics, 314 (2016), pp. 618–646, 10.1016/j.jcp.2016.03.023.DOI
  24. [24]C. C. Stolk, M. Ahmed, and S. K. Bhowmik, A multigrid method for the Helmholtz equation with optimized coarse grid corrections, SIAM Journal on Scientific Computing, 36 (2014), pp. A2819–A2841, 10.1137/13092349X.DOI
  25. [25]P.-H. Tournier, P. Jolivet, V. Dolean, H. S. Aghamiry, S. Operto, and S. Riffo, 3D finite-difference and finite-element frequency-domain wave simulation with multilevel optimized additive Schwarz domain-decomposition preconditioner: A tool for full-waveform inversion of sparse node data sets, Geophysics, 87 (2022), pp. T381–T402, 10.1190/GE02021-0702.1.DOI
  26. [26]P. Tsuji, B. Engquist, and L. Ying, A sweeping preconditioner for time-harmonic Maxwell’s equations with finite elements, Journal of Computational Physics, 231 (2012), pp. 3770–3783, 10.1016/j.jcp.2012.01.025.DOI
  27. [27]P. Tsuji and L. Ying, A sweeping preconditioner for Yee’s finite difference approximation of time-harmonic Maxwell’s equations, Frontiers of Mathematics in China, 7 (2012), pp. 347–363, 10.1007/s11464-012-0191-8.
  28. [28]I. Versano, E. Turkel, and S. Tsynkov, Fourth-order accurate compact scheme for first-order Maxwell’s equations, Journal of Scientific Computing, 100 (2024), article 31, 10.1007/s10915-024-02583-5.arxiv.org/abs/2306.17263
  29. [29]H. A. Wajid and S. Ayub, An optimally blended finite-spectral element scheme with minimal dispersion for Maxwell equations, Journal of Computational Physics, 231 (2012), pp. 8176–8187, 10.1016/j.jcp.2012.07.047.DOI
  30. [30]K. S. Yee, Numerical solution of initial boundary value problems involving Maxwell’s equations in isotropic media, IEEE Transactions on Antennas and Propagation, 14 (1966), pp. 302–307, 10.1109/TAP.1966.1138693.DOI

Paper details

vlnc:W_g9y26rmp
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

AI tools

View statement
Looking for related papers…
Contents