Dielectric blocks in a waveguide reflect part of the wave; spaced right, the reflections add up to resonances that pass one band and reject the rest. Here an 81 mm insert in WR-90 (22.86 × 10.16 mm) is the design: its permittivity, limited to what ceramic-filled filament can print, 1 ≤ εr ≤ 10, in 2.54 mm pixels along the guide, each uniform across the guide height and width, so that the insert cannot convert the TE10 wave into any other mode. The specification is a mask: |S11| ≤ −15 dB over 10.0–10.6 GHz, and |S21| ≤ −25 dB over 8.2–9.0 GHz and 11.6–12.4 GHz. Adam lowers how far |S11| and |S21| stand outside the mask, with the gradient taken through the FDTD solve and the waveguide S-matrix.

What happened
The descent starts from the insert filled uniformly with εr = 1.5, which passes the whole band. Over 400 iterations it grows two high-permittivity slabs and lower steps near the ends and between them, a stepped-impedance filter along the guide. The descent runs on a mesh of a/36 (0.635 mm), where the final design’s worst stopband |S21| is −25.2 dB, as the picture and the loop show. Solved again without the optimiser on meshes of a/36, a/54 and a/72 (0.635, 0.423 and 0.318 mm), the response stays inside the mask on all three. On the finest mesh the worst passband |S11| is −16.6 dB and the worst stopband |S21| is −25.5 dB, 0.5 dB inside the mask.

How it was checked
The checks below and their thresholds were fixed before any run, in §2.5 of the pre-declaration.
- Gradient against central differences at the start: 4.8×10⁻³, 2.3×10⁻³ and 9×10⁻⁵ on the three judged pixels.
- Gradient against a 1.5× longer simulation time: 1.6×10⁻⁶ at the start, 9.3×10⁻⁴ at the final design, and below 2×10⁻³ at every iterate the loop shows.
- End of the simulation: the response still arriving after the simulation ends would change every frequency value read by less than 1 % in amplitude (−40 dB), for both drives, on every mesh. rfx calls this check settling; CST’s time-domain solver instead stops on the decay of the total field energy.
- Power: the insert is lossless; |S11|² + |S21|² stays within 4×10⁻⁵ of 1 on every mesh (the check allowed 0.98–1.01).
- Three meshes: from a/36 to a/54 to a/72 the worst passband |S11| moves 0.15 then 0.06 dB and the worst stopband |S21| 0.25 then 0.09 dB.
Computed with rfx main 9ed83eb8 (2026-10-05); the numbers will be recomputed after rfx 2.0. The walls are perfect conductors and the insert is lossless, so the filter has no insertion loss here.
Downloads
Run it
python scripts/showcase/design_filter.py --stage describe --out out/filter # builds the three meshes, no solveThe full stages need a GPU. A --stage trial run comes first; the descent is
--stage main --record <trial output> --out <new folder> --start S1 --iterations 400 --y-uniform,
and --stage resolve --record <main output> --out <new folder> solves its final
design again on the three meshes. scripts/vessl_showcase_filter.yaml is the lab’s
cluster job file, with the pinned package versions.
