Skip to Content
PhotonStack Gallery
PIC device benchmarks

90° waveguide bend

3D FDTD of circular 90° strip bends, PSFDTD against Meep

A circular 90° bend of a 500 × 220 nm silicon strip, the simplest device where the two FDTD codes must agree on a curved, non-grid-aligned boundary and on a mode monitor normal to a different axis than the source. The headline case is R = 3 µm; R = 1.5 µm is checked the same way below.

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 7.5 × 7.5 × 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

90° waveguide bend: TE0 transmission to out
PSFDTD, 80 cells/µmMeep, 32 cells/µmPSFDTD, 32 cells/µm
0.9910.9920.9930.9940.9950.996150015201540156015801600Wavelength (nm)Transmission

Grid convergence

At 32 cells per µm (31.25 nm), the finest grid both solvers ran, at 1550 nm T(out) = 0.9935 (PSFDTD) against 0.9941 (Meep), largest difference over 1500–1600 nm 0.0011. Refining PSFDTD from there to 80 cells per µm moves the 1550 nm value by at most 0.0005, so at that grid the two solvers differ by more than the remaining discretisation error of either.

R = 3 µm bend: 1550 nm transmission against grid resolution
Same uniform grid step in both solvers; both use sub-pixel smoothing
PSFDTDMeep
11.011.0220304050607080Grid resolution (cells per µm)T(out) at 1550 nm
Data table
SeriesGrid resolution (cells per µm)T(out) at 1550 nm
PSFDTD200.99372
PSFDTD250.99335
PSFDTD320.99348
PSFDTD400.99327
PSFDTD500.99311
PSFDTD640.99296
PSFDTD800.99293
Meep200.994
Meep251.0242
Meep320.99414
Cells per µmCell (nm)PSFDTD outMeep outΔ
20500.99370.9940-0.0003
25400.99331.0242-0.0308
3231.250.99350.9941-0.0007
40250.9933––
50200.9931––
6415.6250.9930––
8012.50.9929––

Radius sweep

TE0 loss of the 90° bend against its radius, PSFDTD at 25 nm cells. The loss includes the two straight-to-bend junctions, which dominate above about 2 µm.

90° bend loss against radius
0.010.020.050.10.20.5112345Bend radius (µm)Loss at 1550 nm (dB)
Data table
SeriesBend radius (µm)Loss at 1550 nm (dB)
PSFDTD, 40 cells/µm10.42448
PSFDTD, 40 cells/µm1.50.16346
PSFDTD, 40 cells/µm20.069872
PSFDTD, 40 cells/µm30.029321
PSFDTD, 40 cells/µm50.01093
Radius (µm)T (TE0)Loss (dB)Reflection
10.90690.4242.9e-06
1.50.96310.1638.0e-07
20.98400.0701.2e-06
30.99330.0291.3e-06
50.99750.0112.3e-06

Mode overlap against net flux

The two ports of a bend are normal to different axes, which exposes a normalisation problem the straight devices hide. In Meep, the TE0 power from get_eigenmode_coefficients at the y-normal output divided by that at the x-normal input can exceed 1 on these coarse grids, which is unphysical, while the ratio of net fluxes through the same two monitors stays below 1. In PSFDTD the mode-overlap power and the net flux at the input monitor agree, and the overlap ratio stays below the flux ratio at every grid, as it must when a little power leaves the port in other modes. Where Meep's overlap value is above 1, compare the flux columns instead; we have not established which part of Meep's mode projection causes it.

R = 3 µm:

SolverCells per µmTE0 mode overlapNet flux ratio
PSFDTD200.99370.9965
PSFDTD250.99330.9963
PSFDTD320.99350.9963
PSFDTD400.99330.9963
PSFDTD500.99310.9962
PSFDTD640.99300.9962
PSFDTD800.99290.9962
Meep200.99400.9961
Meep251.02420.9866
Meep320.99410.9964

R = 1.5 µm:

SolverCells per µmTE0 mode overlapNet flux ratio
PSFDTD200.96280.9818
PSFDTD250.96250.9814
PSFDTD320.96340.9821
PSFDTD400.96310.9815
PSFDTD500.96270.9812
PSFDTD640.96290.9811
PSFDTD800.96280.9811
Meep200.96330.9822
Meep251.04100.9830
Meep320.9639–

R = 1.5 µm

At 32 cells per µm (31.25 nm), the finest grid both solvers ran, at 1550 nm T(out) = 0.9634 (PSFDTD) against 0.9639 (Meep), largest difference over 1500–1600 nm 0.0010. Refining PSFDTD from there to 80 cells per µm moves the 1550 nm value by at most 0.0006, so at that grid the two solvers differ by less than the remaining discretisation error of either.

R = 1.5 µm bend: 1550 nm transmission against grid resolution
Same uniform grid step in both solvers; both use sub-pixel smoothing
PSFDTDMeep
0.960.9811.021.0420304050607080Grid resolution (cells per µm)T(out) at 1550 nm
Data table
SeriesGrid resolution (cells per µm)T(out) at 1550 nm
PSFDTD200.96279
PSFDTD250.96245
PSFDTD320.96338
PSFDTD400.96306
PSFDTD500.96272
PSFDTD640.96286
PSFDTD800.96282
Meep200.9633
Meep251.041
Meep320.96385
Cells per µmCell (nm)PSFDTD outMeep outΔ
20500.96280.9633-0.0005
25400.96251.0410-0.0786
3231.250.96340.9639-0.0005
40250.9631––
50200.9627––
6415.6250.9629––
8012.50.9628––

Runtime

SolverCells per µmGridStepped cells (M)StepsTime steppingMcells·steps/s
PSFDTD20182×182×722.3828001.0 s6485
PSFDTD25220×220×823.9734002.0 s6626
PSFDTD32272×272×967.1042004.3 s6859
PSFDTD40332×332×11212.3552008.7 s7416
PSFDTD50407×407×13221.87600016.8 s7802
PSFDTD64512×512×16041.94720034.1 s8862
PSFDTD80632×632×19276.699000101 s6863
Meep20190×190×801.536004564 s ⁎16 ⁎
Meep25238×238×1002.97750516.0 min ⁎23 ⁎
Meep32304×304×1286.14960640.6 min ⁎24 ⁎

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

On this page