Skip to Content
PhotonStack Gallery
PIC device benchmarks

Bragg grating

2D FDTD of a sidewall-corrugated Bragg grating, PSFDTD against Meep

A 500 nm guide with 50 nm sidewall corrugations on both sides, 300 nm period, 100 periods, in a 2D effective-index model, over 1450–1650 nm.

Setup

220 nm silicon strip (n = 3.476) fully clad in SiO₂ (n = 1.444), both non-dispersive, 500 nm wide access guides, TE0 launched by a mode source, 1500–1600 nm from one Gaussian-pulse run. Both solvers read the same polygon list and port planes from bench/devices.py, use a uniform grid of the same step with sub-pixel smoothing, and report TE0 mode-overlap power at each output divided by the forward TE0 power at a monitor just after the source.

Two-dimensional top view, Hz polarisation, core index 2.848 (the slab's TE effective index), domain 36 × 3.5 µm plus PML.

|E| on the silicon mid-plane at 1550 nm, PSFDTD at 10 nm cells

Spectrum

Bragg grating: TE0 transmission to out
PSFDTD, 200 cells/µmMeep, 50 cells/µmPSFDTD, 50 cells/µm
0.60.8114501500155016001650Wavelength (nm)Transmission

Stop band

Wavelength and depth of the transmission minimum and the peak TE0 reflection at each grid. The spectrum is sampled every 0.5 nm; the corrugation is 50 nm deep, i.e. 1.25 to 10 cells on these grids, so the stop band position is a direct test of how each solver smooths sub-cell features.

SolverCells per µmλ of minimum T (nm)Minimum TPeak R
PSFDTD251535.10.48770.5108
PSFDTD501529.70.45900.5396
PSFDTD1001528.30.50190.4967
PSFDTD2001527.30.55000.4485
Meep251539.10.33530.5587
Meep501529.70.53320.4457

Runtime

SolverCells per µmGridStepped cells (M)StepsTime steppingMcells·steps/s
PSFDTD25932×120×10.11895378.4 s1198
PSFDTD501832×207×10.381785636.1 s11140
PSFDTD1003632×382×11.3935712515.8 s31392
PSFDTD2007232×732×15.29714250154 s24587
Meep25950×138×10.13125000138 s ⁎120 ⁎
Meep501900×275×10.5225000025.1 min ⁎87 ⁎

PSFDTD: NVIDIA RTX 4090 (single precision); its grid column includes the PML cells. Meep 1.33.0: one core of an AMD Ryzen 9 9950X under WSL2 (the conda build has no MPI), double precision; in 3D it uses the z mirror plane, so it steps half the grid shown. Times are time stepping only, without mesh generation, mode solving or post-processing. The Meep runs themselves shared the machine with other jobs, so their wall times are not used: each Meep time is the stepping rate of that case measured alone on an idle machine (300 steps, all monitors active) multiplied by the run's step count. Rows marked ⁎ have no idle-machine rate and show the contended wall time, which overstates Meep's cost.

Reproduce

# device specs
python bench/devices.py bench/work/specs
# PSFDTD (Windows, GPU): device, cells per µm
python bench/run_psfdtd.py bench/work/specs/bragg.json 40 bench/work/psfdtd/bragg_res40 --field
# Meep (WSL, micromamba env with pymeep)
bash bench/meep.sh bragg 25

On this page