Skip to content

PML reflection at normal incidence ​

CasesIssuesTypeBackendsFigureRegression
pml-reflection sweep (16 runs)#145 (item 3), #106 (open: oblique incidence)PCPU, FNL (one point)yesno (measurement, not a leg)

Case and scope ​

A plane Gaussian pulse travels along +x in a 1-D domain and meets an absorbing boundary at normal incidence. The perfectly matched layer is measured against its design reflection: for a layer of thickness L backed by a perfect conductor, with the damping graded as γ=γmax(d/L)n, the continuum reflection coefficient at normal incidence is

R(L)=exp⁡(−2c∫0Lγdx)=exp⁡(−2γmaxL(n+1)c),

the same for every frequency, so the reflected pulse is the incident one scaled by R. The code samples the profile at the cell centres, γm=γmax(1−m/(N−1))n for the cell m=0…N−1 from the wall (profiles), so the design value of the discrete layer is Rs=exp⁡(−2Δx∑mγm/c); for N=20 it is 2.84⋅10−2 against the continuum 3.11⋅10−2 of L=NΔx. What the layer adds is the reflection of its own grading, which grows with γmaxΔx/c and falls as the layer thickens.

The sweep measures:

  • the thickness N=10,20,40,80 cells at γmax=7.8⋅1010 s−1, n=2 (the paper's absorbing-layer test is the N=20 point);
  • γmax from 3.9⋅1010 to 6.24⋅1011 s−1 at N=20;
  • N=10,20,40,80 at one design value, R=9.4⋅10−7 (γmaxL fixed): what is left is the grading reflection;
  • the CFS layer at N=20, with κmax=1, αmax=0 (the classical layer through the CFS path) and with the κmax=5, αmax=2.5⋅108 s−1 of rmf-pml-amr;
  • the boundaries without a layer: the first-order Silver–Müller condition, Neumann, PEC;
  • the noise floor of the measurement: a wall 0.40 m away, beyond reach in the measured time.

The reflection against the angle of incidence is not measured here (#106).

Models and numerics ​

ItemChoiceCode
EquationsMaxwell, SI, no sourcemodels
Space, timecentred finite differences of order 6; SSP Runge–Kutta (5,4), CFL 0.5numerics
PMLclassic (n=2 unless stated) or CFS, on both x faces, a PEC wall behind; the split variables as SELAH companions; step cap Δt≤0.1/γmaxeffadam_prism_pml_object.F90; absorbing layers
Silver–Müllerfirst-order impedance ghosts, normal components solved for zero divergenceboundary conditions
Neumannmirror ghosts of every componentadam_prism_cpu_object.F90

Initial and boundary conditions ​

ItemValue
Domaininterior [−0.08,0.08] m, plus the layer of N cells on each x face; y, z: 6 cells, periodic
Gridone block, Δx=1 mm (ni = 160+2N)
Initial conditionGaussian pulse along +x: centre 0, σ=4 mm, cut at 5σ, Bz peak 10 T (9.922 T at the cell centres), Ey=cBz
Timeuntil the pulse reflected by the wall behind the layer has its centre at x=−0.04 m (2(0.08+L)+0.04 m of travel; a CFS layer adds its 2(κmax−1)L/3); Δt=8.34⋅10−13 s, lower where the PML cap binds
Ranks1

Measurement (pml_reflection.py). Ar/A0 is the largest |Bz| in the window [−0.04,0.04] m over the checkpoints (every 4 steps, 1 mm of travel) after tin=0.07m/c, when the incident pulse and the first centimetre of its dispersive trail have left the window, over the initial peak. No reflection reaches the window before 0.10m/c. (Er/E0)1/2 is the same with the electromagnetic energy in the window: it equals Ar/A0 for a scaled copy of the pulse and differs for a distorted reflection.

Input files ​

FileRole
src/tests/prism/verification/pml-reflection/make_pml_reflection.pywrites one input (--boundary pml|cfs|silver-muller|neumann|pec|far, --cells, --gamma-max, --exponent, --alfa-max, --k-max)
src/tests/prism/verification/pml-reflection/pml_reflection.pythe measurement; --profiles keeps Bz(x,t) for the figure
src/tests/prism/verification/pml-reflection/sweep.shruns the 16 cases (--jobs, --cases), writes results.txt, results.json
src/tests/prism/verification/make_paper_figures.pythe figures from the sweep
bash
src/tests/prism/verification/pml-reflection/sweep.sh /tmp/pml --jobs 16                     # CPU, about 15 min on 16 cores
PRISM_EXE=$PWD/exe/adam_prism_fnl src/tests/prism/verification/pml-reflection/sweep.sh /tmp/pml-fnl --cases "pml-n20 silver-muller far"

PRISM allocates its block pool from the free memory of the node; set ADAM_MEMORY_FRACTION (e.g. 0.02) when the runs share a node, or they are killed for memory.

Results ​

BoundaryNγmax [s−1]R(L)Rs (sampled)Ar/A0, CPU(Er/E0)1/2, CPUAr/A0, FNL
classical PML107.8⋅10101.77⋅10−11.60⋅10−11.607⋅10−11.603⋅10−1
classical PML207.8⋅10103.11⋅10−22.84⋅10−22.846⋅10−22.843⋅10−22.846⋅10−2
classical PML407.8⋅10109.70⋅10−48.88⋅10−48.878⋅10−48.875⋅10−4
classical PML807.8⋅10109.41⋅10−78.62⋅10−79.6⋅10−71.0⋅10−6
classical PML203.9⋅10101.77⋅10−11.69⋅10−11.688⋅10−11.686⋅10−1
classical PML201.56⋅10119.70⋅10−48.08⋅10−48.15⋅10−48.08⋅10−4
classical PML203.12⋅10119.41⋅10−76.53⋅10−74.69⋅10−56.81⋅10−5
classical PML206.24⋅10118.9⋅10−134.3⋅10−139.42⋅10−51.36⋅10−4
classical PML106.24⋅10119.41⋅10−74.35⋅10−74.39⋅10−46.20⋅10−4
classical PML401.56⋅10119.41⋅10−77.88⋅10−75.63⋅10−68.08⋅10−6
CFS, κmax=1, αmax=0207.8⋅10103.11⋅10−22.84⋅10−22.846⋅10−22.843⋅10−2
CFS, κmax=5, αmax=2.5⋅108207.8⋅1010——2.631⋅10−22.696⋅10−2
Silver–Müller (first order)————3.96⋅10−26.01⋅10−23.96⋅10−2
Neumann————3.96⋅10−2; then 0.987 (re-emitted by the opposite face, below)6.01⋅10−2; then 0.999
PEC——111.00071.0000
none within reach (floor)————3.2⋅10−74.4⋅10−73.2⋅10−7

Measured: ADAM 0bcdf870 + the night-2026-11-22 tree (HEAD 95ffd728 with the working tree of 2026-11-23), CPU gfortran 16.2.0 + Open MPI 5.0.11 (iac_gnu) on medooza (gnode25), FNL nvfortran 26.9, CUDA 12.9 (iac_nvf) on NVIDIA A30 (gnode23), 2026-11-23 (pml-reflection/sweep.sh, jobs 1369621 CPU, 1369626 FNL). FNL reproduces the three CPU values to every printed digit, both measures.

PML reflection against the layer thickness and the damping rate

Reflected amplitude against the thickness at γmax=7.8⋅1010 s−1 and at a fixed design R=9.4⋅10−7 (left), and against γmax at N=20 (right), with the design reflection (line: continuum; crosses: the sampled profile); the grid-scale wave of Silver–Müller and Neumann and the noise floor as horizontal lines.

Findings ​

  • The layer reflects what its design says, as long as the grading is resolved. Up to Rs≈10−3 the measured amplitude is the sampled design value to 1 % (N=10,20,40 at 7.8⋅1010 s−1; 3.9⋅1010 and 1.56⋅1011 s−1 at N=20), and the reflected pulse is a scaled copy of the incident one (the amplitude and the energy measures agree to 0.1 %). The paper's 20-cell layer reflects 2.85⋅10−2 of the incident amplitude: the sampled profile integrates to 2.6 % more damping than the continuum one, whose R(L) is 3.11⋅10−2.
  • Beyond, the grading sets the floor. A steeper profile (larger γmax at fixed N) stops paying at R≈5⋅10−5 for N=20: from 3.12⋅1011 to 6.24⋅1011 s−1 the reflection doubles while the design value falls by six decades, and it arrives first (the inner part of the layer), with the opposite sign and a distorted shape (the energy measure 1.45 times the amplitude one). At a fixed design R=9.4⋅10−7 the grading reflection falls from 4.4⋅10−4 (N=10) to 4.7⋅10−5 (20), 5.6⋅10−6 (40) and 9.6⋅10−7 (80, the design value): about N−3, the order of a quadratic profile. The best measured values are 4.7⋅10−5 with 20 cells and 5.6⋅10−6 with 40.
  • CFS. With κmax=1, αmax=0 the CFS path reproduces the classical layer to every printed digit. With the rmf-pml-amr parameters it reflects 2.63⋅10−2: the stretching delays the reflection (the pulse crosses the layer at c/κ) and leaves the amplitude near the classical one.
  • Silver–Müller is not exact at normal incidence on this grid. The continuum condition reflects nothing at normal incidence; the discrete one returns 0.36 % of the energy, (Er/E0)1/2=6.0⋅10−2, as a grid-scale (odd–even) wave packet of peak |Bz|=3.96⋅10−2 of the incident one that travels back at 2.2 times the speed of light (the group velocity of the kΔx=π mode of the sixth-order centred derivative). In the energy measure the 20-cell classical layer at the paper's γmax reflects 2.1 times less (4.5 times less energy), the 40-cell one 68 times less.
  • Neumann does not reflect the pulse. The mirror ghosts let 99.6 % of the energy leave through the face, and send back the same grid-scale packet as Silver–Müller (0.36 % of the energy; the window energy of the two runs agrees to four digits from step 360 to step 560). At the opposite Neumann face that packet turns into a smooth pulse of nearly the incident amplitude (A/A0=0.987) travelling in +x: the energy in the domain grows from 0.36 % to 99.7 % of the initial one within 80 steps. A Neumann face is not energy-stable for the centred scheme; the "large reflection" of a Neumann boundary in a 1-D run is this re-emission at the opposite face, not a reflection.
  • The floor of the measurement, 3.2⋅10−7, is the dispersive trail of the pulse (its high-wavenumber content, which the centred scheme carries backwards), not round-off.