Setup
  (layers from the top down: the bottom one, the substrate, is the first laid down)
  layers:
    cladding       half-space   SiO2, n 1.444024
    silicon 1      220 nm       Si in its shapes, the cladding elsewhere (from z = 0), n 3.475700
    buried oxide   half-space   SiO2, below z = 0, n 1.444024
  shapes:
    on silicon 1: the multimode region, a polygon through (0, -0.8) µm, (2, -0.74) µm, (4, -0.74) µm, (6, -0.74) µm, (8, -0.8) µm, (8, 0.8) µm, (6, 0.74) µm, (4, 0.74) µm, (2, 0.74) µm, (0, 0.8) µm
    on silicon 1: a guide from (-22, -2.25) µm heading 0°, 500 nm wide; straight 10 µm; an S-bend (cubic Bézier) 11 µm along and 1.8 µm across; straight 1 µm, to 700 nm wide
    on silicon 1: a guide from (-22, 2.25) µm heading 0°, 500 nm wide; straight 10 µm; an S-bend (cubic Bézier) 11 µm along and -1.8 µm across; straight 1 µm, to 700 nm wide
    on silicon 1: a guide from (8, -0.45) µm heading 0°, 700 nm wide; straight 1 µm, to 500 nm wide; an S-bend (cubic Bézier) 11 µm along and -1.8 µm across; straight 10 µm
    on silicon 1: a guide from (8, 0.45) µm heading 0°, 700 nm wide; straight 1 µm, to 500 nm wide; an S-bend (cubic Bézier) 11 µm along and 1.8 µm across; straight 10 µm
  port 1: at (-12, -2.25) µm, 500 nm wide, facing 180°, the input
  port 2: at (-12, 2.25) µm, 500 nm wide, facing 180°
  port 3: at (20, 2.25) µm, 500 nm wide, facing 0°
  port 4: at (20, -2.25) µm, 500 nm wide, facing 0°
  modes: Te0 launched into port 1; measured: Te0 at port 3; Te0 at port 4
  wavelengths: the materials at 1.55 µm; a pulse at 1.55 µm, its width 0.04 c/µm; measured at 1.55 µm
  window: x -13 to 21 µm, y -3.75 to 3.75 µm (the ports and the device, 1 µm beyond), 1 µm of cladding below and above the silicon, CPMLs of 12 cells
  grid at 6 cells a wavelength: 482 × 125 × 54 cells of 74.3 nm (3.3 million), CPMLs of 12
  solver: 3D FDTD, subpixel smoothing (diagonal), Courant number 0.99; the ports' modes by FDFD; until the outputs' fields decay to 1e-6 or 3000 µm/c
  tolerance: the cross port's TE0 at 1550 nm within half the span of 0.483, 0.486, 0.489, 0.479, 0.484, 0.489 plus 0.002; the excess loss (dB) within half the span of -0.14, -0.13, -0.12, -0.155, -0.145, -0.125 plus 0.01; at 15 cells, at 1540 nm within half the span of 0.488, 0.4815 plus 0.002; at 1560 nm within half the span of 0.477, 0.4724 plus 0.002; at 6 cells, plus how far the codes stray there (0.376, 0.358)
  materials:
    Si: a table of 35 wavelengths, 1.2 to 14 µm, between them natural cubic splines; valid 1.2 to 14 µm
      source: H. H. Li, J. Phys. Chem. Ref. Data 9, 561 (1980), doi:10.1063/1.555624, at 293 K
      crystalline silicon; Table 1, 293 K, checked against the paper; uncertainty ±2e-3 (Li)
      n 3.475700 at 1.55 µm
    SiO2: Sellmeier, n² = A + Σ Bλ²/(λ² − C²), A = 1, B = 0.6961663, 0.4079426, 0.8974794, C = 0.0684043, 0.1162414, 9.896161 µm; valid 0.21 to 3.71 µm
      source: I. H. Malitson, J. Opt. Soc. Am. 55, 1205 (1965), doi:10.1364/JOSA.55.001205, at 293.15 K
      fused silica, Eq. (1), checked against the paper; fit residual 10.5e-6 on average; thermal and deposited oxides differ slightly
      n 1.444024 at 1.55 µm

Liu and Poon's 2 x 2 MMI (gdsfactory's generic PDK), 3D FDTD, TE0 into the lower left port; materials at 1.55 um
6 cells a wavelength: 482 × 125 × 54 cells of 74.3 nm (3.3 million), CPMLs of 12
  wavelength  cross TE0  bar TE0   reflection  excess loss
  1.550 um    0.40184    0.46907   2.92e-4    -0.6003 dB
  cross TE0, 1550 nm, 6 cells            0.401837   paper 0.484      ± 1.4e-1    ok
all 1 within tolerance of the paper
