Skip to content

Optical Simulation Chapter Overview

This chapter explains the numerical methods COMPASS uses to solve Maxwell's equations for an image sensor pixel. It covers how a solver actually computes reflection, transmission, and absorption — not the optics or sensor architecture, which are covered in the previous chapters.

Why we need numerical methods

Maxwell's equations have closed-form solutions only for trivial geometries (a planar multilayer, a single sphere). A real BSI pixel has 3D periodic structures — color filter grids, sub-wavelength microlenses, DTI walls — for which no analytical solution exists. We discretize the problem and solve it on a computer.

There are three families of methods worth distinguishing:

FamilyDomainWhat it discretizesCOMPASS solver(s)
Analytical / TMM1D planarClosed-form transfer matrices per layertmm
Modal / RCWAFrequency domain, periodicPermittivity in Fourier basis, fields as Bloch modestorcwa, grcwa, meent, fmmax
Time domain / FDTDTime domain, arbitrary geometryYee-grid finite differences in space and timefdtd_flaport, fdtdz, fdtdx, meep

A note on permittivity

All solvers internally represent materials by their complex permittivity ε=n~2=(n+ik)2. COMPASS stores material data as (n,k) pairs in MaterialDB and converts to ε when building the simulation geometry. RCWA solvers expand ε(x,y) in a 2D Fourier series; FDTD solvers sample ε on the Yee grid; TMM uses ε per layer directly.

Choosing a solver

A rough decision tree:

  • 1D planar stack (no lateral structure): use TMM. It is ~1000× faster than RCWA and exact for this geometry.
  • 2D / 3D periodic, frequency-domain QE sweep: use RCWA. Fast for moderate Fourier order, well-suited to sub-wavelength gratings.
  • Strongly resonant or large lateral extent, broadband transient effects: use FDTD. Slower per wavelength but handles any geometry.
  • Cross-validation: run two methods of different families and compare — see RCWA vs FDTD.

What this chapter covers

PageTopicKey takeaway
RCWA ExplainedFourier expansion, eigenmodes, S-matrix recursionWhy RCWA is fast for periodic stacks
FDTD ExplainedYee lattice, update equations, Courant conditionWhy FDTD is general but more expensive
RCWA vs FDTDSide-by-side comparison and use casesWhen to use which
Numerical StabilityEigenvalue conditioning, S-matrix vs T-matrix, mixed precisionHow COMPASS keeps RCWA stable at high Fourier order

Boundary with nearby pages

Nearby pageDifference
OpticsDefines the electromagnetic equations and wave phenomena; this chapter explains discretization and solver behavior.
Image SensorDefines the physical target and metrics; this chapter explains how those metrics are computed.
ReportsPublishes generated validation evidence; this chapter explains the methods behind those reports.

Prerequisites

This chapter assumes the Optics chapter — especially Electromagnetic Waves and Diffraction. If terms like Bloch mode or S-matrix are new, read those first.