Skip to content

Axisymmetric (2.5D) problems

Bodies of revolution (VCSELs, micropillars, nanowires, round apertures) are computed on the meridian plane with the azimuthal Fourier decomposition

\[ E(r, \varphi, z) = \sum_{m=-\infty}^{\infty} E_m(r, z)\,e^{im\varphi}, \qquad E_m = (E_r, E_\varphi, E_z)(r, z), \]

so that every order \(m\) is an independent two-dimensional problem (ADR-0010). The mesh is the meridian domain with coordinates \(x = r \ge 0\) and \(y = z\); the axis \(r = 0\) is a boundary of the mesh with its own facet tag. The convention \(e^{-i\omega t}\) of maxwell.md applies.

Unknowns and spaces (assembly/axisymmetric_forms.hpp)

The meridian components \((E_r, E_z)\) are a 2D vector field in \(H(\mathrm{curl})\) of the \((r, z)\) plane and live in the Nédélec space; the azimuthal component is a scalar in \(H^1\). The code uses the scaled azimuthal unknown

\[ v = -i\,r\,E_\varphi, \qquad E_\varphi = \frac{i\,v}{r}, \]

in the H1 space of the same order. Two things follow. The gradient of a potential mode, \(\nabla(\psi e^{im\varphi}) = (\partial_r\psi,\ im\psi/r,\ \partial_z\psi)e^{im\varphi}\), becomes \((\nabla_{rz}\psi,\ v = m\psi)\): exactly representable in the discrete spaces, so the order-\(m\) discrete gradient \(K_m = [G;\ mI]\) (\(G\) the 2D discrete gradient) spans the kernel of the curl–curl matrix and the gauged eigensolvers remove it without spurious modes. And the factor \(-i\) turns the \(\pm im\) couplings of the curl into real numbers: for lossless media the matrices are real symmetric, otherwise complex symmetric.

With the cylindrical curl

\[ (\nabla\times E)_r = \frac{im E_z - \partial_z(rE_\varphi)}{r}, \qquad (\nabla\times E)_\varphi = \partial_z E_r - \partial_r E_z, \qquad (\nabla\times E)_z = \frac{\partial_r(rE_\varphi) - imE_r}{r}, \]

the volume element \(r\,dr\,d\varphi\,dz\) and the \(\varphi\) integration done (the factor \(2\pi\) is dropped), the bilinear forms of order \(m\) with diagonal material tensors \(\mu^{-1} = \mathrm{diag}(\mu_r^{-1}, \mu_\varphi^{-1}, \mu_z^{-1})\) and \(\varepsilon\) read

\[ a(E, V) = \int \Big[ \mu_r^{-1}\frac{(mE_z - \partial_z v)(mV_z - \partial_z w)}{r} + \mu_\varphi^{-1}(\partial_z E_r - \partial_r E_z)(\partial_z V_r - \partial_r V_z)\,r + \mu_z^{-1}\frac{(\partial_r v - mE_r)(\partial_r w - mV_r)}{r}\Big]\,dr\,dz , \]
\[ b(E, V) = \int \big[\varepsilon_r E_r V_r\,r + \varepsilon_\varphi\,v\,w / r + \varepsilon_z E_z V_z\,r\big]\,dr\,dz . \]

The test functions are the complex conjugates of the trial basis (sesquilinear pairing with \(e^{-im\varphi}\)), which is what makes the forms symmetric in \((E, v) \leftrightarrow (V, w)\); \(m \to -m\) gives the same spectrum. assemble_axisymmetric returns the stiffness (the \(a\) form) and the mass (the \(b\) form) of the block vector \((e, v)\): the first nedelec.num_dofs() entries are the Nédélec coefficients, the rest the H1 coefficients of \(v\). Per-cell diagonal tensors in \((r, \varphi, z)\) cover anisotropic media and the cylindrical PML (stretched tensors of Teixeira–Chew, stage 2).

Crystals (ADR-0015 §8, M19 S6). A tensor material is read in the cylindrical components \((r, \varphi, z)\) (axisymmetric_permittivity) and must be diagonal there: a uniaxial crystal with its optic axis along the symmetry axis (\(\varepsilon_{xx} = \varepsilon_{yy}\)) means the same in both frames, \(\varepsilon_{xx} \ne \varepsilon_{yy}\) describes a radially / azimuthally anisotropic medium, which no constant Cartesian tensor can. An optic axis tilted against z (off-diagonal entries) breaks the rotational symmetry and is refused (AnisotropicUnsupported). The PML stretches the tensor componentwise, the scattered-field source is the componentwise contrast \(k_0^2(\varepsilon_c - \varepsilon_b)_k\) on the scaled \((E_r, v, E_z)\), the absorption density is \(\sum_k \operatorname{Im}\varepsilon_k|E_k|^2\). The background medium and the layers of the layered background stay isotropic (they carry the incident and the far fields). Tests (tests/convergence/axisymmetric_anisotropic.cpp): a PEC cylinder with a uniaxial filling (axis along z) has the ordinary modes \(k_0^2\varepsilon_t = (j'_{mn}/a)^2 + (p\pi/h)^2\) and the extraordinary ones \(k_0^2 = (j_{mn}/a)^2/\varepsilon_z + (p\pi/h)^2/\varepsilon_t\) (to \(10^{-7}\) at p = 5); a flat coaxial cavity with a radially anisotropic filling and PMC caps has the \(H_z\) modes of the Bessel order \(\nu = m\sqrt{\varepsilon_\varphi/\varepsilon_r}\) in \(\sqrt{\varepsilon_\varphi}\,k_0r\), \(J'_\nu(xb)Y'_\nu(xa) = J'_\nu(xa)Y'_\nu(xb)\) (to \(5\cdot10^{-11}\) at p = 6 for ν = 0.745 and 1.491; the axis is kept out of the domain since \(H \sim r^\nu\) is not smooth there for a non-integer ν, and the inner conductor carries the axis tag, whose conditions for m ≠ 0 are those of a PEC).

The axis

The \(1/r\) terms are singular on the axis unless their numerators vanish there. The regularity of a field \(E_m e^{im\varphi}\) at \(r = 0\) requires

order conditions at \(r = 0\)
\(m = 0\) \(E_\varphi = 0\), \(E_r = 0\); \(E_z\) free
\(m = \pm1\) \(E_z = 0\); \(E_r \pm iE_\varphi = 0\) (the Cartesian components are regular)
$ m

Of these only \(v = 0\) (all \(m\); automatic for \(r E_\varphi\) and imposed on the H1 DoFs of the axis facets) and \(E_z = 0\) for \(m \ne 0\) (tangential Nédélec DoFs of the axis facets) are Dirichlet data. The remaining conditions (\(E_r\) on the axis, the \(m = \pm1\) coupling) involve the normal component of the edge elements and are not imposed; the quadrature of the cells touching the axis (rule two degrees higher, Gauss points strictly inside) weights them, which is the established body-of-revolution practice. The gauge potential \(\psi\) vanishes on the axis for \(m \ne 0\) (\(v = m\psi\)) and is free there for \(m = 0\). PEC walls fix the Nédélec trace and \(v\) (physics::AxisymmetricCavity builds all index sets from the axis tag and the PEC tags).

Eigenmodes (physics/axisymmetric.hpp)

AxisymmetricCavity assembles the order-\(m\) pencil, applies the constraints and calls solvers::gauged_curl_curl_eigenpairs with \(K_m\); it returns the lowest \(k_0\) with the meridian and azimuthal coefficients. The modes of the PEC cylinder (radius \(a\), height \(h\)) are the analytic reference,

\[ \mathrm{TM}_{mnp}:\ k^2 = \Big(\frac{j_{mn}}{a}\Big)^2 + \Big(\frac{p\pi}{h}\Big)^2,\ p \ge 0; \qquad \mathrm{TE}_{mnp}:\ k^2 = \Big(\frac{j'_{mn}}{a}\Big)^2 + \Big(\frac{p\pi}{h}\Big)^2,\ p \ge 1, \]

with the zeros \(j_{mn}\) of \(J_m\) and \(j'_{mn}\) of \(J'_m\).

Verification (tests/convergence/axisymmetric_cavity.cpp, tests/unit/physics/test_axisymmetric.cpp): on the cylinder \(a = 1\), \(h = 1.5\) the four lowest eigenvalues of \(m = 0, 1, 2\) converge with rate \(2p\) under h-refinement (\(p = 1\): \(1.9 / 1.8 / 1.9\); \(p = 2\): \(3.8 / 3.8 / 3.9\) between \(h = 1/8\) and \(1/16\), maximum relative errors \(3\cdot10^{-5}\), \(1.3\cdot10^{-5}\), \(1.0\cdot10^{-5}\) at \(p = 2\), \(h = 1/16\)) and no eigenvalue appears below the first physical one. The unit tests check that \(K_m\psi\) lies in the kernel of the stiffness matrix to rounding for every \(m\), the symmetry and positivity of the matrices, the decoupling of the blocks for \(m = 0\), the \(m\)-dependent axis conditions, and \(\mathrm{TM}_{010}\) / \(\mathrm{TE}_{111}\) on a coarse mesh.

Resonances with the cylindrical PML (physics::AxisymmetricResonance)

Open resonators (micropillars, VCSELs, spheres) have quasi-normal modes with complex \(\omega\) (maxwell.md, Resonances). The PML of ADR-0005 carries over as a material: with the stretch factors \(s_r(r)\), \(s_z(z)\) of a pml::PmlBox<2> (layers on the \(r\)-max, \(z\)-min and \(z\)-max sides, none on the axis) and the stretched radius \(\tilde r = r + i\int\hat\sigma_r\) the cylindrical PML of Teixeira and Chew is the diagonal tensor

\[ \Lambda = \mathrm{diag}\Big(\frac{s_\varphi s_z}{s_r},\ \frac{s_r s_z}{s_\varphi},\ \frac{s_r s_\varphi}{s_z}\Big), \qquad s_\varphi = \frac{\tilde r}{r}, \qquad \tilde\varepsilon = \varepsilon_r\Lambda, \quad \tilde\mu^{-1} = \mu_r^{-1}\Lambda^{-1}, \]

evaluated per quadrature point (axisymmetric_pml_form); the curl operator and the forms above are untouched. Inside the box \(\Lambda = I\). The order-\(m\) pencil becomes complex symmetric, and AxisymmetricResonance solves it with the complex gauged shift-invert solver (solvers::complex_eigenpairs_near_gauged, the gradient \(K_m\) restricted to the free DoFs) around the target \(k_0^2 = (\omega_{\text{target}}/c_0)^2\). Each mode carries \(\omega\), \(\lambda_{\mathrm{res}}\), \(Q = \mathrm{Re}\,\omega / (-2\,\mathrm{Im}\,\omega)\), the Arnoldi residual and both coefficient vectors.

Verification (tests/convergence/axisymmetric_sphere_resonance.cpp, tests/unit/physics/test_axisymmetric_resonance.cpp): the quasi-normal modes of a dielectric sphere of radius \(a\) and index \(n\) are the zeros of the Mie denominators in the complex size parameter \(x = ka\); for \(l = 1\) (the lowest modes of order \(m = 1\)) with the Riccati–Bessel functions \(\psi_1\), \(\xi_1\),

\[ \mathrm{TE}_1:\ \psi_1(nx)\,\xi_1'(x) - n\,\xi_1(x)\,\psi_1'(nx) = 0, \qquad \mathrm{TM}_1:\ n\,\psi_1(nx)\,\xi_1'(x) - \xi_1(x)\,\psi_1'(nx) = 0 , \]

solved by Newton in the test. For \(n = 3\) the poles are \(x_{\mathrm{TE}} = 0.98712 - 0.06058i\) and \(x_{\mathrm{TM}} = 1.44174 - 0.17947i\). On the half-disc meridian mesh of square_with_disc (curved interface, four cells per radius, PML of three radii beyond \(r, |z| = 3a\)) the computed poles converge exponentially under p-refinement: relative errors \(2.3\cdot10^{-2}\), \(2.6\cdot10^{-4}\), \(2.8\cdot10^{-6}\), \(1.8\cdot10^{-6}\) (TE) and \(4.3\cdot10^{-2}\), \(1.5\cdot10^{-3}\), \(2.5\cdot10^{-5}\), \(2.0\cdot10^{-6}\) (TM) for \(p = 1 \ldots 4\), with Arnoldi residuals below \(10^{-8}\). The unit test also checks the PML tensors against the formula and that a layer on the axis side is rejected.

Scattering (physics::AxisymmetricScattering)

The scattered-field formulation of maxwell.md carries over order by order: the incident field is a solution in the background medium, its \(m\)-th Fourier component in the scaled components \((E_r, v, E_z)\) drives the volume source \(k_0^2(\varepsilon_r - \varepsilon_{bg})E^{inc}_m\) in the cells whose material differs from the background (nowhere inside the PML), and the operator \(S_m - k_0^2 M_m\) with the cylindrical PML is solved for the scattered field of that order. The source enters the forms through the same pairing as the mass term, \(\int (f_r V_r + f_z V_z)\,r + f_v\,w / r\) with \(f_v = -i\,r f_\varphi\) (AxisymmetricForm::source). An \(x\)-polarised plane wave along the axis, \(E_0\hat x\,e^{ikz}\), has the orders \(m = \pm1\) only:

\[ (E_r, E_\varphi, E_z)_{\pm1} = \tfrac{E_0}{2}\,(1,\ \pm i,\ 0)\,e^{ikz}, \qquad (E_r, v, E_z)_{\pm1} = \tfrac{E_0}{2}\,(1,\ \pm r,\ 0)\,e^{ikz} \]

(axial_plane_wave); the two orders are mirror images and carry the same power, so one solve suffices. Orders do not mix in quadratic quantities: the power of the full field through a surface of revolution is the sum over \(m\) of

\[ P_m = \int_\Gamma 2\pi r\,\tfrac12\,\mathrm{Re}\big(E_m\times H_m^*\big)\cdot n\,ds, \qquad H_m = \frac{\nabla\times E_m}{i\omega\mu}, \]

with the cylindrical curl of the mode (the azimuthal component is minus the 2D scalar curl of the meridian field) over the meridian curve \(\Gamma\) of postprocess::Surface (axisymmetric_poynting_flux); the scattering cross-section is \(\sigma = P^{sca} / I^{inc}\) with \(I^{inc} = |E_0|^2 / (2Z_0)\) in vacuum.

Verification (tests/convergence/axisymmetric_mie_sphere.cpp, tests/unit/physics/test_axisymmetric_scattering.cpp): for the dielectric sphere \(n = 2\), \(ka = 1.5\) the Mie series (Bohren–Huffman \(a_l\), \(b_l\) with Riccati–Bessel functions by downward recurrence, computed in the test) gives \(\sigma / \pi a^2 = 4.2315\); the scattered power of the order \(m = 1\) through the sphere interface, doubled, converges to it under p-refinement with relative errors \(1.9\cdot10^{-1}\), \(3.9\cdot10^{-3}\), \(1.3\cdot10^{-3}\), \(3.9\cdot10^{-6}\) for \(p = 1 \ldots 4\) — the 2.5D counterpart of convergence test #4. The unit tests check the plane-wave orders, the Rayleigh limit of the Mie series, the equality of the \(m = \pm1\) powers, and that the discrete Poynting flux through the shell between the sphere and the box \(r, |z| < 2a\) vanishes up to the discretisation error.

Dipoles on the axis (axisymmetric_gaussian_dipole)

A point emitter on the axis is a current moment \(p\) [A m] at \((r, z) = (0, z_0)\). With the total-field formulation (AxisymmetricScatteringSetup::current, the source \(f = i\omega\mu_0 J\) in every cell, the PML absorbing the emitted field) and the Gaussian smearing of maxwell.md the orders are

\[ \text{axial } (p \parallel \hat z):\ m = 0,\quad (f_r, f_v, f_z) = i\omega\mu_0\,p\,g\,(0, 0, 1); \qquad \text{transverse } (p \parallel \hat x):\ m = \pm1,\quad (f_r, f_v, f_z) = i\omega\mu_0\,\tfrac{p}{2}\,g\,(1, \pm r, 0), \]

with \(g = e^{-(r^2 + (z - z_0)^2)/2\sigma^2} / ((2\pi)^{3/2}\sigma^3)\). The emitted power is the Poynting flux through any surface enclosing the source, and the Purcell factor its ratio to the free-space value. For the smeared dipole in vacuum the total power is exactly \(P_0\,e^{-k^2\sigma^2}\) with the Larmor power \(P_0 = Z_0 k_0^2 |p|^2 / (12\pi)\) (dipole_vacuum_power): the Gaussian form factor \(e^{-k^2\sigma^2/2}\) multiplies the far field in every direction, and in a lossless medium the emitted power equals the radiated one. This gives an analytic reference without any limit \(\sigma \to 0\).

Verification (tests/convergence/axisymmetric_dipole.cpp, tests/unit/physics/test_axisymmetric_dipole.cpp): for \(ka = 1.5\) and \(\sigma = 0.08a\) the axial (\(m = 0\)) and the transverse dipole (\(m = \pm1\), doubled) converge to \(P_0 e^{-k^2\sigma^2}\) with relative errors \(1.7\cdot10^{-1}\) / \(3.9\cdot10^{-2}\), \(1.9\cdot10^{-3}\) / \(4.8\cdot10^{-3}\), \(2.0\cdot10^{-4}\) / \(6.4\cdot10^{-5}\) and \(2.4\cdot10^{-5}\) / \(2.2\cdot10^{-5}\) for \(p = 1\ldots4\). The unit test places the axial dipole at the centre of the sphere \(n = 3\): the electric dipole couples to the \(\mathrm{TM}_1\) modes, and the Purcell factor peaks at \(\mathrm{Re}\,x_{\mathrm{TM}}\) of the Mie pole found by the resonance solver, which ties the three problem classes together.

Far field (axisymmetric_far_field)

The near-to-far transform of maxwell.md (Stratton–Chu with the equivalent currents \(J = n\times H\), \(M = -n\times E\) on a closed surface in the background medium, \(F = \frac{ik}{4\pi}[Z N_t - \hat r\times L]\) with \(N = \int J e^{-ik\hat r\cdot x'}\), \(L = \int M e^{-ik\hat r\cdot x'}\)) is applied to one order: on a surface of revolution the azimuthal integration of \(e^{im\varphi'}\) against the plane-wave phase \(e^{-ik\rho\sin\theta\cos(\varphi' - \varphi)}\) is analytic,

\[ \int_0^{2\pi} e^{im\varphi'}\,e^{-ik\rho\sin\theta\cos(\varphi'-\varphi)}\,d\varphi' = 2\pi\,(-i)^m J_m(k\rho\sin\theta)\,e^{im\varphi}, \]

and the Cartesian components of a cylindrical vector bring the factors \(\cos\varphi'\), \(\sin\varphi'\), i.e. the orders \(m \pm 1\). Only the meridian curve is integrated numerically (same quadrature as the flux), and the pattern of order \(m\) is \(E \approx F(\theta)\,e^{im\varphi}\,e^{ikR}/R\) with the spherical components \(F_\theta\), \(F_\varphi\) evaluated at \(\varphi = 0\). The radiated power \(\int |F|^2 d\Omega / (2Z)\) of the order (trapezoidal rule over the sampled polar angles) must equal the Poynting flux of the order through the same surface; the total pattern of a field with several orders is the sum of the \(F_m e^{im\varphi}\).

Verification (tests/unit/physics/test_axisymmetric_farfield.cpp, tests/convergence/axisymmetric_mie_sphere.cpp): the axial dipole in vacuum radiates the Larmor pattern, \(|F_\theta| \propto \sin\theta\) to \(2\cdot10^{-3}\) with \(F_\varphi = 0\), and its far-field power equals the near-field flux to \(2\cdot10^{-3}\) (and the analytic \(P_0 e^{-k^2\sigma^2}\) to \(5\cdot10^{-3}\)) at \(p = 3\); the transverse dipole radiates along the axis and conserves power likewise; for the sphere scattering the cross-section from the far-field power agrees with the flux and converges to the Mie value (the convergence test prints both columns).

Oblique incidence (oblique_plane_wave, scatter_orders)

A plane wave at the angle \(\theta_i\) to the axis is not a single order: with the wave vector \(k(\sin\theta_i, 0, \cos\theta_i)\) and the polarisation \(\hat p\) (\(\hat y\) for s, \((\cos\theta_i, 0, -\sin\theta_i)\) for p, both relative to the plane of incidence \(x\)–\(z\)) the Jacobi–Anger expansion of the transverse phase,

\[ e^{ik_\perp\rho\cos\varphi} = \sum_{n=-\infty}^{\infty} i^n J_n(k_\perp\rho)\,e^{in\varphi}, \qquad k_\perp = k\sin\theta_i,\quad a_n = i^n J_n(k_\perp\rho), \]

spreads the field over all orders. The Cartesian polarisation enters the cylindrical components through \(\cos\varphi\) and \(\sin\varphi\), which shift the index by one:

\[ \begin{aligned} E_{\rho,m} &= \tfrac{p_x}{2}(a_{m-1} + a_{m+1}) + \tfrac{p_y}{2i}(a_{m-1} - a_{m+1}),\\ E_{\varphi,m} &= -\tfrac{p_x}{2i}(a_{m-1} - a_{m+1}) + \tfrac{p_y}{2}(a_{m-1} + a_{m+1}),\\ E_{z,m} &= p_z\,a_m, \end{aligned} \qquad\text{all times } E_0\,e^{ikz\cos\theta_i}, \]

returned in the scaled components \((E_r, v = -ir E_\varphi, E_z)\) by oblique_plane_wave. At \(\theta_i = 0\) only \(a_0 = 1\) survives and the orders \(m = \pm 1\) of axial_plane_wave remain. The orders are not coupled by a body of revolution: the operator commutes with rotations about the axis, so every \(m\) is solved separately with its own incident component and the response is the sum \(\sum_m E_m e^{im\varphi}\). The series converges once \(|m|\) exceeds \(k_\perp R\) for the radius \(R\) of the scatterer (\(J_m(k_\perp\rho)\) decays super-exponentially beyond \(m \approx k_\perp\rho\)), and the orders are orthogonal in every power integral over a surface of revolution, so the total scattered power is \(\sum_m P_m\).

scatter_orders runs this loop: it solves \(m = 0, \pm1, \pm2, \dots\) with the incident component supplied per order, measures the power of every order through a surface and stops when the pair \(\pm m\) (\(|m| \ge 2\)) contributes less than a tolerance of the total so far, or at max_order. superpose_far_field sums the patterns \(F_m(\theta)e^{im\varphi}\) at an azimuth so that the full three-dimensional pattern of the oblique problem is available from the one-dimensional patterns of the orders. The same loop serves any source that is not a single order (a tilted dipole, a focused beam): the user supplies its decomposition per \(m\).

Verification (tests/unit/physics/test_axisymmetric_orders.cpp, tests/convergence/axisymmetric_oblique_sphere.cpp): the orders summed over \(|m| \le 25\) restore the plane wave at a point to \(10^{-12}\) for both polarisations, and at \(\theta_i = 0\) the p-polarised orders coincide with axial_plane_wave. The dielectric sphere (\(n = 2\), \(ka = 1.5\)) at \(\theta_i = 50^\circ\) scatters the same cross-section as on the axis, which the sum over the orders reproduces with \(\pm m\) powers equal to \(10^{-6}\), the far field of the superposed orders carrying the total power to \(10^{-2}\), and the cross-section converging exponentially in \(p\) (both polarisations, relative errors \(3\cdot10^{-1}\), \(8\cdot10^{-3}\), \(1.5\cdot10^{-3}\), \(8\cdot10^{-5}\) for \(p = 1, \dots, 4\) with seven to nine orders).

Layered background (layered_axisymmetric_wave, ADR-0014)

A body of revolution on a substrate or in a stack of planar layers normal to the axis is a scattering problem on a layered background, as for the 2D / 3D solvers (layered background, ADR-0009). With AxisymmetricScatteringSetup::background (a LayerStack<3> whose \(z\) is the \(y\) of the meridian mesh) the scattered-field source is formed against the stack at the cell centroid,

\[ f = k_0^2\,\bigl(\varepsilon_c - \varepsilon_{stack}(z_c)\bigr)\,E^{inc}_m , \]

so it lives only where the body deviates from the stack. The sign does not matter: an air hole or a groove in a layer is a source like a particle. The bare stack has no source and scatters nothing for every order. The PML stretches each cell's own material, so the layers continue into the radial PML; the constructor rejects a cell that straddles an interface (interfaces must lie on mesh lines) and, with an incident field, a PML cell whose material deviates from the stack (the deviation must be radially bounded, otherwise the "scattered" field would contain the non-decaying reflected and transmitted waves of an infinite layer).

The incident orders. The stack's plane wave (LayerStack<3>::plane_wave, in-plane wave vector along \(+x\)) is in layer \(j\) the sum of a downward and an upward partial wave with the common real in-plane wavenumber \(k_\rho = k_0 n_{inc}\sin\theta\) (phase matching) and the vertical wavenumbers \(\mp k_{z,j}\), \(k_{z,j} = \sqrt{k_0^2\varepsilon_j - k_\rho^2}\) with \(\mathrm{Im}\,k_{z,j} \ge 0\) (complex in lossy layers and beyond the critical angle). With the scalar amplitude \(u\) of the recursion (\(E_s\) for s, \(H\) for p) the vectors of a partial wave with \(k = (k_\rho, 0, \pm k_{z,j})\) are

\[ \text{s:}\ E = u\,\hat y,\ H = \frac{k\times E}{\omega\mu_0};\qquad \text{p:}\ H = u\,\hat y,\ E = -\frac{k\times H}{\omega\varepsilon_0\varepsilon_j}, \]

complex for complex \(k_{z,j}\). Because \(k_\rho\) is real, each partial wave expands by the Jacobi–Anger formulas of oblique incidence with its complex Cartesian vector \(P\) in place of \(E_0\hat p\): \(P_{\rho,m} = \tfrac{P_x}{2}(a_{m-1}+a_{m+1}) + \tfrac{P_y}{2i}(a_{m-1}-a_{m+1})\), \(P_{\varphi,m} = -\tfrac{P_x}{2i}(a_{m-1}-a_{m+1}) + \tfrac{P_y}{2}(a_{m-1}+a_{m+1})\), \(P_{z,m} = P_z a_m\), \(a_n = i^n J_n(k_\rho r)\), times the vertical exponential of the partial wave. layered_axisymmetric_wave(stack, k0, theta, pol, m, side) returns the sum in the scaled components \((E_r, v = -irE_\varphi, E_z)\) and the cylindrical curl \(i\omega\mu_0 H_m\) (the convention of axisymmetric_error), with the reflectance, transmittance and absorptance of the bare stack. A homogeneous stack gives oblique_plane_wave at \(\theta_i = \pi - \theta\).

Incidence from the substrate side. A wave from below is the wave from above on the reversed stack (incidence medium the substrate, which must be lossless; layers in reverse order; substrate the incidence medium; top at \(-z_{bottom}\)) mirrored \(z \to -z\). The mirror maps \((E_r, v, E_z)(r, z) \mapsto (E_r, v, -E_z)(r, -z)\) and, the curl being a pseudovector, \((C_r, C_\varphi, C_z) \mapsto (-C_r, -C_\varphi, C_z)\). The mirror would turn \(H = u\hat y\) of p polarisation into \(-u\hat y\); the sign is flipped back so that p has \(H\) along \(+\hat y\) on both sides (a homogeneous stack gives oblique_plane_wave at \(\theta_i = \theta\)). Beyond the critical angle of the substrate the wave is totally reflected and evanescent in the cover: illumination of particles on a prism.

Verification (tests/unit/physics/test_axisymmetric_layered.cpp, python/tests/test_axisymmetric_layered.py): the orders agree with the numerical Fourier transform over \(\varphi\) of the 3D field of LayerStack<3>::plane_wave on rings (air, glass, a lossy metal layer and the substrate; \(m = -3 \dots 5\); s and p; normal, oblique and, from the substrate side, beyond the critical angle) to \(10^{-12}\) in value and curl; a homogeneous stack reproduces oblique_plane_wave from both sides; the reversed lossless stack has the same R and T (reciprocity), R = 1 beyond the critical angle with the field in the cover decaying as \(e^{-\kappa z}\); the flux of the summed orders through discs above and below the stack is \((1 - R)\) and \(T\) times the incident power through the disc (both sides, lossy layer included), which checks value, curl and normalisation together. On the mesh, the bare stack gives a scattered field of exactly zero for several orders, an air hole in a layer is a source, the checks reject a deviation in the PML and an interface off the mesh lines, and a vacuum stack reproduces the uniform solver coefficient by coefficient and the Mie cross-section of the sphere.

Cross-sections per channel (ADR-0014 §4, M18 S2). Every quantity is a sum over the orders, which are orthogonal in \(\varphi\); normalised by the incident intensity \(I = n_{inc}|E_0|^2/(2Z_0)\) it is a cross-section.

  • Absorbed power (axisymmetric_absorbed_power, AxisymmetricScattering::absorbed_power): the Joule heating \(\tfrac{\omega\varepsilon_0}{2}\mathrm{Im}\,\varepsilon_r|E_m|^2\) integrated with the weight \(2\pi r\), \(|E_m|^2 = |E_r|^2 + |v|^2/r^2 + |E_z|^2\), per cell and per tag, the PML cells left out. The class method adds the incident field per quadrature point, so it is the absorption of the total field (stack + scattered). The absorption of the body is the sum over scatterer_cells() (the cells deviating from the stack). Around a hole the body is lossless and the meaningful quantity is the absorption change in a bounded region: the total-field absorption with the actual materials minus incident_absorbed_power(), the stack field in the bare stack (every cell with its background material). It is negative where the hole removes more absorbing metal than the field it scatters deposits.
  • Scattered power by channel (axisymmetric_flux_channels): the Poynting flux of the scattered field through a closed surface of mesh lines around the body, each quadrature point assigned by its height to up (above the top interface, into the cover), down (below the bottom interface) or lateral (between them: power carried along the layers, guided or absorbed outside the surface). In a lossy substrate down decreases with the depth of the surface.
  • Flux of the total field (axisymmetric_poynting_flux with added_value / added_curl, the stack wave's value and curl): Poynting's theorem in a bounded region, the inflow of the total field equals its absorption inside.
  • Aperture transmission (axisymmetric_disc_flux): the flux through the disc \(r \le R\) on a mesh line \(z\), for the total field and for the stack field alone through the same facets (background; summed over the orders it is \(T\,I\cos\theta\,\pi R^2\)); change() is the transmission caused by the hole, normalised by \(I\pi a^2\) for \(T/T_{geom}\).
  • Extinction: absorption plus scattering. The optical theorem of a homogeneous background does not hold on a stack; the generalised version is out of scope.

Verification (tests/unit/physics/test_axisymmetric_channels.cpp, python/tests/test_axisymmetric_channels.py): a lossy sphere (\(\varepsilon = 4 + i\), \(ka = 1.5\), p = 3) absorbs the Mie absorption cross-section to \(10^{-2}\), scattering plus absorption give the Mie extinction to \(10^{-2}\), and the total field flows into the sphere at the rate it is absorbed; on the bare stack (air / glass / lossy metal / glass) the stack field's absorption in a cylinder and its flux through discs above and below, summed over the orders, give \(A\), \(1 - R\) and \(T\) of the stack to \(10^{-6}\) (s and p, oblique); for an air hole through the metal film the inflow of the total field into a bounded region equals its absorption (p = 3, \(2\cdot10^{-2}\)), the stack field alone balances analytically, the absorption change equals the change of the inflow, the body is exactly the hole cells, and the channels add up to the scattered flux (no lateral part on a half-space). A small sphere (\(ka = 0.05\), \(\varepsilon = -5 + i\)) half a radius above glass at normal incidence absorbs, relative to the same sphere in vacuum, the image-dipole value \(|E_{ext}/E_0|^2/|1 - \alpha\beta/(32\pi d^3)|^2\) (Wind, Vlieger and Bedeaux 1987) to \(1.7\cdot10^{-3}\), the size of the neglected multipole images, converged in p to \(10^{-4}\), while the value without the image term is 5.6 % off (tests/convergence/axisymmetric_sphere_on_substrate.cpp).

Far field per half-space (axisymmetric_layered_far_field, M18 S3). The Green's function of the stack is not needed: by Lorentz reciprocity, the field at a distant point \(R\hat r\) of a half-space with index \(n\), projected on a transverse unit vector \(\hat e\), equals the overlap of the field on a closed surface \(S\) around all sources with the field of a current element \(\hat e\) at \(R\hat r\), and near the body that field is the stack's plane wave arriving from \(\hat r\), \(\tfrac{i\omega\mu_0}{4\pi R}e^{iknR}E_{pw}\) (incident amplitude 1, reflections included). With \(E \approx F e^{iknR}/R\),

\[ F\cdot\hat e = \frac{i\omega\mu_0}{4\pi}\oint_S \bigl(E\times H_{pw} - E_{pw}\times H\bigr)\cdot n\,dS , \]

\(\hat e = \hat\theta\) for the p and \(-\hat\varphi\) for the s wave. For the order \(m\) at \(\varphi = 0\) the azimuthal integral picks the order \(-m\) of the arriving wave (in-plane wave vector along \(-x\): the wave of layered_axisymmetric_wave rotated by \(\pi\)) with the factor \(2\pi(-1)^m\); the meridian integral is done on the quadrature points of \(S\). Directions into the cover use the wave from the top at \(\theta\), directions into a lossless substrate the wave from the bottom at \(\pi - \theta\); the phase of the stack wave, referred to its top (bottom) interface, is moved to the origin. The pattern of the full field is \(\sum_m F_m(\theta)e^{im\varphi}\) (superpose_far_field per half-space), the power into a half-space radiated_power(), into a collection cone of numerical aperture NA power_between(0, asin(NA/n)) (below: \([\pi - \arcsin(\mathrm{NA}/n), \pi]\)). In a lossless stack the scattered power minus the two half-spaces is carried along the layers (guided modes). \(S\) must enclose every source; it may lie in one layer (a dipole above a substrate) or cross the layers, lossy ones included (the reciprocity theorem holds in any reciprocal medium; outside \(S\) there is only the stack).

Verification (tests/unit/physics/test_axisymmetric_farfield_layered.cpp, python/tests/test_axisymmetric_farfield_layered.py): for a vacuum stack the pattern of a scattering sphere equals the near-to-far transform axisymmetric_far_field in both half-spaces to \(3\cdot10^{-12}\) (m = ±1, stack interface through the sphere); for the total field of an axial Gaussian dipole \(0.8\lambda\) above glass (p = 3) the amplitudes in the air and in the glass, also beyond the critical angle, agree with the reciprocity value of the source, \(\tfrac{i\omega\mu_0}{4\pi}\,p\,E_{pw,z}(0, h)\,e^{-k^2\sigma^2/2}\), to \(8\cdot10^{-4}\), and the power into air and glass adds up to the flux through the surface around the dipole to \(2\cdot10^{-3}\) (no guided modes at a single interface).

Example. examples/particle_on_substrate puts the pieces together: a gold sphere on glass in dark field (channels, collection over NA 0.5), a nanoparticle on a gold mirror (the gap mode far to the red of the free sphere) and a nanohole in a gold film (T / T_geom, absorption change), each with the power balance of the total field.

hp-adaptivity on the meridian plane (adaptivity/axisymmetric_estimator.hpp)

The adaptive loop of hp-adaptivity.md runs unchanged on the meridian mesh: mesh::AdaptiveMesh<2> supplies the one-irregular h-refinement, the DoF maps the variable orders, Dörfler marking, the hp decision by error prediction and hp_refine are mesh-generic. Two pieces are specific to the body of revolution.

Hanging nodes. On a locally refined meridian mesh the hanging DoFs of both spaces are constrained (assembly::hanging_constraints of the Nédélec map for \((E_r, E_z)\) and of the H1 map for \(v\)); axisymmetric_dof_sets restricts the constraints to the free DoFs after the PEC and axis conditions and combines them into block constraints, and the three problem classes reduce their systems by \(P^H A P\) before solving (the eigenvalue problems reduce the pencil; the solution is expanded back to the full block vector). The gauge gradient of the constrained potential, \(K_m P_\psi\), satisfies the block constraints exactly (the hanging constraints are interpolation-based and the gradient of a polynomial is a polynomial), so its reduced form is the restriction \(R K_m P_\psi\) to the unconstrained rows, not \(P^H K_m P_\psi\): with \(P^H\) the kernel of the reduced pencil would be mis-represented and the gauged eigensolver would return spurious values (observed: the TM\(_{010}\) wavenumber \(2.36\) instead of \(2.405\) on a one-irregular cylinder mesh).

The r-weighted residual estimator. adaptivity::axisymmetric_residual_estimate is the residual estimator of error-estimation.md for the three-dimensional equation of the mode \(E(r, z)e^{im\varphi}\), evaluated in the norms of the body of revolution: every cell and facet integral of the meridian mesh carries the weight \(r\) of the volume element \(r\,dr\,dz\) (the factor \(2\pi\) dropped as in the forms),

\[ \eta_K^2 = \frac{h_K^2}{p_K^2}\int_K\big(|R_K|^2 + \ell^2|\nabla\cdot d|^2\big)\,r\,dr\,dz + \sum_{F\subset\partial K}\frac{h_F}{2p_F}\int_F\big(|[\![n\times w]\!]|^2 + \ell^2|[\![n\cdot d]\!]|^2\big)\,r\,ds , \]

(\(\ell = 1/k_0\) the length scale of the Gauss-law terms, see error-estimation.md)

with \(w = \mu^{-1}\nabla\times E_{hp}\), \(d = f + k^2\varepsilon E_{hp}\) and \(R_K = d - \nabla\times w\) in cylindrical components. For the scaled unknowns the curl of the mode is

\[ \nabla\times E = \Big(\frac{i}{r}(mE_z - \partial_z v),\ \partial_zE_r - \partial_rE_z,\ \frac{i}{r}(\partial_r v - mE_r)\Big), \]

and for the unscaled vector \(w\) and the field \(d\) (with \(E_\varphi = iv/r\), \(f_\varphi = if_v/r\))

\[ (\nabla\times w)_r = \frac{im}{r}w_z - \partial_z w_\varphi,\quad (\nabla\times w)_\varphi = \partial_z w_r - \partial_r w_z,\quad (\nabla\times w)_z = \frac{1}{r}\partial_r(rw_\varphi) - \frac{im}{r}w_r,\quad \nabla\cdot d = \frac1r\partial_r(rd_r) + \frac{im}{r}d_\varphi + \partial_z d_z . \]

The facet normal lies in the meridian plane, so \(|n\times w|^2 = |w_\varphi|^2 + |n_zw_r - n_rw_z|^2\) and \(n\cdot d = n_rd_r + n_zd_z\). The derivatives inside a cell come from central differences in reference coordinates as in the Cartesian estimator; facets on the axis and on PEC walls carry no term (the axis conditions are essential), hanging child facets are integrated against the cell of their parent, and cells touching the axis use a quadrature rule two degrees higher. On those cells the \(1/r\) terms of the residual are rational: the combinations that vanish for the regular solution at \(r = 0\) (for \(|m| = 1\) e.g. \(w_\varphi - imw_r\)) do so only up to the discretisation error for \(E_{hp}\), which adds a logarithmic factor to the indicator of the axis cells; the loop below shows no over-refinement of the axis. AxisymmetricScattering::estimate wraps the call with the per-cell forms of the problem (PML tensors and contrast source included) and \(k_0^2\); axisymmetric_error and AxisymmetricScattering::error measure the error against an exact field in the weighted \(L^2\) and \(H(\mathrm{curl})\) norms.

Verification (tests/unit/adaptivity/test_axisymmetric_estimator.cpp, tests/unit/physics/test_axisymmetric_adaptive.cpp, tests/convergence/axisymmetric_hp_corner.cpp): the estimator vanishes (\(< 10^{-8}\) relative) for an exact gradient mode \(\nabla(\psi e^{i\varphi})\) with polynomial \(\psi\) on conforming and on one-irregular meshes and localises a perturbed interior DoF; the cavity modes of the PEC cylinder on a one-irregular mesh stay at the Bessel values and the expanded eigenvectors satisfy the constraints. The convergence test uses a manufactured solution with a re-entrant PEC edge: the meridian domain \([0,2]\times[-1,1]\) minus the quadrant \(r > 1\), \(z < 0\) (a cylindrical cavity whose lower half is filled by a PEC ring) and the curl-free mode \(E = \nabla(\psi e^{i\varphi})\), \(\psi = r(2-r)(1-z^2)\rho^{2/3}\sin(2\theta/3)\) with polar coordinates \((\rho, \theta)\) about the edge point \((1, 0)\), which vanishes on every wall, meets the axis conditions of \(m = 1\) through the factor \(r\) and solves \(\nabla\times\nabla \times E - k^2E = -k^2E\) (\(k = 1\)) with \(|E| \sim \rho^{-1/3}\) at the edge. The hp loop (Dörfler \(0.5\), error prediction, from \(p = 1\) on 24 cells) reaches a weighted \(H(\mathrm{curl})\) error of \(2.2\cdot10^{-4}\) at \(34\,000\) DoFs from \(0.64\) on the start mesh:

DoF 33 609 2 900 6 100 11 600 16 800 25 500 34 000
error \(6.4\cdot10^{-1}\) \(1.8\cdot10^{-1}\) \(3.0\cdot10^{-2}\) \(9.8\cdot10^{-3}\) \(2.8\cdot10^{-3}\) \(1.2\cdot10^{-3}\) \(5.0\cdot10^{-4}\) \(2.2\cdot10^{-4}\)

Fit \(\exp(-bN^{1/3})\) over the last ten steps: \(b = 0.27\), algebraic slope \(-2.1\) for \(N \ge 4000\) (uniform h-refinement would give \(-1/3\)), the edge cells h-refined in 67 of 74 decisions, \(p\) up to 7 away from the edge, effectivity index between 3.5 and 5.6 throughout.

Roadmap

The micropillar example (examples/micropillar_qd) exercises resonance, Purcell factor and β factor together. Oblique incidence is covered by the sum over the orders (scatter_orders), hp-adaptivity on the meridian plane by the r-weighted estimator and the hanging-node constraints of the problem classes; the milestone is complete. The Python bindings (AxisymmetricCavity, AxisymmetricResonance, AxisymmetricScattering, axial_plane_wave, axisymmetric_gaussian_dipole, axisymmetric_poynting_flux, axisymmetric_far_field, oblique_plane_wave, scatter_orders, superpose_far_field) follow the C++ API one to one.