Skip to content

SPECTRA-RCWA 1.6.2

Latest

Choose a tag to compare

@hyoseokp hyoseokp released this 25 Nov 09:41
· 2 commits to main since this release

Changed (times on an RTX 5090 in complex64, against 1.6.1 on the same card)

  • Thick layers next to each other hand their reflection matrix over directly, without an admittance and an inverse in between: 4 layers of 0.8 µm take 49 ms instead of 63 for value and gradient (9 solves at 338 x 338).
  • The topmost step of a thin layer is solved for its two right-hand sides only, and the first step uses that the admittance of the substrate is block diagonal: a 0.25 µm layer takes 12.5 ms instead of 15, a 0.05 µm layer 8.8 ms instead of 11.6. The 144 solves of the 0.25 µm benchmark take 0.174 s (value) and 0.194 s (value and gradient) instead of 0.207 and 0.227.
  • solve of a JSON problem treats uniform layers in closed form per order (ColorRouterForward.uniform_block): a grating on a 2 µm spacer takes 29 ms instead of 56 at 578 x 578, one between two films 47 ms instead of 74.
  • The check before a solve no longer loops over the orders in Python, wavelengths with the same permittivities share their permittivity matrices, and a solve without a gradient keeps fewer matrices.

Results change within rounding. A single 0.8 µm layer of 144 solves is as fast as before in complex64. In complex128 it is as fast as before as well: on the RTX 5090 each version takes about 8.0 or 8.2 to 8.4 s depending on what was allocated earlier in the process, and the two versions differ by less than 1 % on an RTX 3060 and an RTX 4090.

pip install -U spectra-rcwa