Setup
  (layers from the top down: the bottom one, the substrate, is the first laid down)
  a bent slab against Marcuse's formula:
    layers:
      outside        half-space   cladding, n 1.500000
      slab           1 µm         core, n 1.600000
      inside         half-space   cladding, n 1.500000
    wavelength: 1 µm, TE
    radii: 20, 40, 80, 120 µm
    solver: the bent slab's exact modes (no grid), and Marcuse's Eqs. 32-33
    tolerance: Marcuse's loss within 0.1 of the exact one, relative, at 120 µm
  the strip as a bent slab, full-vector (printed):
    layers:
      outside        half-space   cladding, n 1.444000
      slab           500 nm       core, n 2.845000
      inside         half-space   cladding, n 1.444000
    wavelength: 1.55 µm, TE and TM
    radii: 1, 2 µm
    window: from 750 nm inside the strip's centre to 6 µm outside it, a PML from 2.5 µm out, strength 3
    grid: uniform, 5 nm
    solver: the full-vector mode solver on the conformally mapped cross-section, beside the exact
  the bend device at its 2D and 3D models (printed):
    layers:
      cladding       half-space   SiO2, n 1.444024
      Si             220 nm       Si, n 3.475700 in its shapes; SiO2, n 1.444024 elsewhere
      BOX            2 µm         SiO2, n 1.444024
      substrate      half-space   Si, n 3.475700
    shapes:
      on Si: shape, within (1.071566e-16, -0.25) µm to (2.25, 2) µm: 2.25 µm along x by 2.25 µm along y
    bend: width 0.5 µm, thickness 0.22 µm, radius 2 µm, angle 90 °, loss 0 dB/cm, wavelength 1.55 µm, span 0.1 µm
    wavelength: 1.55 µm
  materials:
    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
    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
    core, cladding: constant indices: Marcuse's slab's, and the strip's (the effective index method's 2.845 in Chrostowski & Hochberg's 1.444)

slab of 1.6 in 1.5, 1 um, at 1 um, TE; straight n_eff 1.569443; exact: no grid
  radius   exact Im n_eff   Marcuse      ratio   exact loss per 90 deg
    20 um  2.5169e-3       4.6043e-3   1.829   4.315e0 dB
    40 um  9.8715e-5       1.3462e-4   1.364   3.385e-1 dB
    80 um  1.0133e-7       1.1507e-7   1.136   6.949e-4 dB
   120 um  9.0745e-11       9.8367e-11   1.084   9.335e-7 dB
  Marcuse / exact loss at 120 um         1.083990   paper 1          ± 1e-1      ok
strip as a slab: 2.845, 500 nm, in 1.444, at 1.55 um; full-vector on a 5 nm grid
  E normal to the bend plane, R 1 um: exact 2.757800 + 9.295e-4i, full-vector 2.757741 + 9.297e-4i
  E normal to the bend plane, R 2 um: exact 2.661426 + 5.064e-7i, full-vector 2.661388 + 5.068e-7i
  E in the bend plane, R 1 um: exact 2.551645 + 3.037e-3i, full-vector 2.552891 + 3.293e-3i
  E in the bend plane, R 2 um: exact 2.503112 + 4.581e-6i, full-vector 2.502916 + 4.777e-6i
the bend device: a 500 x 220 nm strip on 220 nm SOI bent at 2 um, at 1.55 um
  2D: n_eff 2.50566 along the arc, radiation 4.85e-4 dB per 90 deg (2D: an exact bent slab by the effective index method, no grid)
  3D: n_eff 2.46021 along the arc, radiation 2.63e-4 dB per 90 deg (125 × 111 cells, 10.000 nm straight, its bend's shift on 250 × 66 cells, 6.969 nm)
all 1 within tolerance of the paper
