Skip to Content
PhotonStack Gallery
PIC device benchmarks

Directional coupler

3D FDTD of a 200 nm-gap directional coupler, PSFDTD against Meep

Two 500 nm strips with a 200 nm gap, coupled over 10 µm, with 6 µm cosine S-bends on both sides (port pitch 2.7 µm). Power exchange depends exponentially on the gap, which makes this the hardest test of sub-pixel smoothing in the set.

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.

Domain 27 × 5.7 × 2 µm plus PML (PSFDTD: 16 layers; Meep: 1 µm).

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

Spectrum

Directional coupler: TE0 transmission to cross
PSFDTD, 64 cells/µmMeep, 25 cells/µmPSFDTD, 25 cells/µm
0.150.20.250.30.35150015201540156015801600Wavelength (nm)Transmission
Directional coupler: TE0 transmission to through
PSFDTD, 64 cells/µmMeep, 25 cells/µmPSFDTD, 25 cells/µm
0.650.70.750.80.85150015201540156015801600Wavelength (nm)Transmission

Grid convergence

At 25 cells per µm (40 nm), the finest grid both solvers ran, at 1550 nm T(cross) = 0.2520 (PSFDTD) against 0.2347 (Meep), largest difference over 1500–1600 nm 0.0229; T(through) = 0.7439 (PSFDTD) against 0.7610 (Meep), largest difference over 1500–1600 nm 0.0217. Refining PSFDTD from there to 64 cells per µm moves the 1550 nm value by at most 0.0184, so at that grid the two solvers differ by less than the remaining discretisation error of either.

Directional coupler: 1550 nm transmission to cross against grid resolution
Same uniform grid step in both solvers; both use sub-pixel smoothing
PSFDTDMeep
0.220.240.262030405060Grid resolution (cells per µm)T(cross) at 1550 nm
Data table
SeriesGrid resolution (cells per µm)T(cross) at 1550 nm
PSFDTD200.26122
PSFDTD250.25197
PSFDTD320.21245
PSFDTD400.2321
PSFDTD500.22311
PSFDTD640.23354
Meep200.27067
Meep250.23473
Directional coupler: 1550 nm transmission to through against grid resolution
Same uniform grid step in both solvers; both use sub-pixel smoothing
PSFDTDMeep
0.720.740.760.782030405060Grid resolution (cells per µm)T(through) at 1550 nm
Data table
SeriesGrid resolution (cells per µm)T(through) at 1550 nm
PSFDTD200.73175
PSFDTD250.7439
PSFDTD320.78302
PSFDTD400.76337
PSFDTD500.77215
PSFDTD640.76221
Meep200.72203
Meep250.76096
Cells per µmCell (nm)PSFDTD crossMeep crossΔPSFDTD throughMeep throughΔ
20500.26120.2707-0.00950.73170.7220+0.0097
25400.25200.2347+0.01720.74390.7610-0.0171
3231.250.2124––0.7830––
40250.2321––0.7634––
50200.2231––0.7721––
6415.6250.2335––0.7622––

Sensitivity to the grid

The coupler is the grid-sensitive device of the set: the 200 nm gap is only 4 cells wide on the coarsest grid, and the 1550 nm cross-port power moves between 0.212 and 0.261 across the PSFDTD grids (0.261, 0.252, 0.212, 0.232, 0.223, 0.234 from coarse to fine) without settling monotonically. Treat the third digit as unresolved at these resolutions in either solver.

Runtime

SolverCells per µmGridStepped cells (M)StepsTime steppingMcells·steps/s
PSFDTD20572×146×726.0184007.6 s6658
PSFDTD25707×175×8210.15980013.7 s7258
PSFDTD32896×214×9618.411200027.2 s8120
PSFDTD401112×260×11232.381500061.2 s7935
PSFDTD501382×317×13257.8318200130 s8113
PSFDTD641760×397×160111.8016400238 s7697
Meep20580×154×803.78800629.6 min ⁎17 ⁎
Meep25725×192×1007.321000745.5 min ⁎27 ⁎

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/coupler.json 40 bench/work/psfdtd/coupler_res40 --field
# Meep (WSL, micromamba env with pymeep)
bash bench/meep.sh coupler 25

On this page