CPML
A convolutional perfectly matched layer (CPML) absorbs outgoing radiation around the useful domain. It modifies spatial derivatives and adds memory variables to the Yee updates.
Why a matched layer
Simply stopping the grid creates a reflecting boundary. Adding ordinary electric conductivity absorbs energy, but its impedance change can also reflect the incoming wave. A PML transforms Maxwell’s equations so that the ideal continuous interface is matched while waves decay inside the layer.
The finite, discretized layer is not perfectly reflectionless. Grid resolution, thickness, material variation, and incidence angle affect its performance. The coordinate-stretch interpretation is developed in Steven G. Johnson’s Notes on Perfectly Matched Layers.
Stretched derivatives
Using the convention, replace a derivative in direction by
Here is dimensionless, while and have conductivity units in this convention. These are artificial PML parameters, not the physical conductivity of the device. The magnetic stretching uses the matched counterpart; a magnetic conductivity formulation requires the corresponding electric/magnetic scaling.
The frequency dependence of becomes a convolution in time. CPML evaluates that convolution recursively instead of storing the entire field history.
A memory recurrence
Let be one ordinary finite-difference derivative in a curl. Replace it by
where successive values of refer to successive updates of that same derivative, separated by . The coefficients are
Initialize the memories to zero. When both and vanish, set explicitly instead of evaluating . In the interior, and the zero memory restores the original derivative.
Each affected derivative has its own memory. For TMz, the two derivatives of used to update and the two derivatives of used to update need distinct memories. Electric and magnetic updates also sample profiles at their own staggered positions. The recurrence and coefficient convention above match BeamZ’s CPML kernel.
The recursive convolution approach was introduced for this application by Roden and Gedney.
Grading the absorption
Let run from zero at the interior interface to one at the outer boundary. A common family of profiles is
These expressions illustrate smooth grading, not fixed BeamZ defaults. A gradual onset reduces discretization reflections. The frequency shift changes the memory decay and can improve absorption of slowly varying or evanescent fields. Increasing absorption strength alone can make the spatial transition harder to resolve, so stronger is not always better.
Placement and convergence
Keep sources and measurement planes in the physical interior, with a buffer between localized fields and the absorber. Continue exiting waveguides through the layer; terminating their material at its entrance creates a physical discontinuity.
Compare a result with a thicker layer and, separately, a larger physical buffer. For resolution studies, hold physical layer thickness fixed so that refinement adds cells through the absorber. Grazing waves, slow modes, and some inhomogeneous or periodic media can be difficult for PML; see Meep’s discussion of PML limitations.
To estimate reflected power, separate forward and backward modes on an interior plane or time-gate an isolated reflected pulse. A standing-wave pattern alone cannot distinguish reflection from the device from reflection at the boundary.
Continue to Mode Sources.