EM Simulation Methods Comparison
Written: 2026-02-11 | COMPASS project research document
1. Overview
Optical simulation of CMOS image sensor (CIS) pixels requires numerical solutions of Maxwell's equations. As pixel pitch has reached the same scale (0.6--1.4 um) as visible light wavelengths (0.38--0.78 um), geometric optics alone can no longer capture wave effects such as diffraction, interference, and near-field coupling.
The choice of simulation methodology is determined by three fundamental trade-offs:
| Axis | Description |
|---|---|
| Accuracy | Fidelity to physical reality. Level of approximation to Maxwell's equations |
| Speed | Wall-clock time for a single simulation |
| Generality | Range of geometries and materials that can be handled |
No single method can simultaneously optimize all three axes, which is the fundamental reason why diverse numerical methods coexist. COMPASS adopts RCWA and FDTD as its primary solvers and ensures result reliability through cross-validation.
| Method | Domain | Dimension | Periodicity | Wavelength Band | CIS Suitability |
|---|---|---|---|---|---|
| RCWA | Frequency | 3D | Required | Single | ★★★★★ |
| FDTD | Time | 3D | Optional | Broadband | ★★★★☆ |
| FEM | Frequency | 3D | Optional | Single | ★★★☆☆ |
| BEM | Frequency | Surface | Not required | Single | ★★☆☆☆ |
| TMM | Frequency | 1D | N/A | Single | ★★★☆☆ |
| Ray Tracing | N/A | 3D | Not required | Broadband | ★★☆☆☆ |
2. RCWA (Rigorous Coupled-Wave Analysis)
2.1 Mathematical Foundation
RCWA is a semi-analytical method that solves Maxwell's equations for periodic structures by expanding them in Fourier series in the frequency domain. Key steps:
(1) Fourier expansion of permittivity: For a structure with periods
where the reciprocal lattice vector
(2) Eigenvalue problem
Substituting the Fourier expansion into Maxwell's equations for each layer yields a
where
(3) S-matrix cascading
The scattering matrices of individual layers are combined using the Redheffer star product:
This method is numerically stable for evanescent modes, unlike the transfer matrix (T-matrix) approach.
2.2 Strengths
| Strength | Description |
|---|---|
| Optimal for periodic structures | Image sensor pixel arrays are inherently periodic, making them ideal for RCWA |
| Accurate thin-film handling | Each layer is treated exactly without spatial discretization (anti-reflection coating, color filter) |
| Spectral analysis | Single-wavelength computation is very fast → efficient QE spectrum calculation per wavelength |
| Exponential convergence | Exponential convergence with increasing Fourier order (for smooth profiles) |
| GPU acceleration | Matrix operation-based, well-suited for GPU acceleration (PyTorch/JAX backends) |
2.3 Weaknesses
| Weakness | Description |
|---|---|
| Cannot handle non-periodic structures | Finite structures, defects, and non-periodic patterns are fundamentally impossible to treat |
| Staircase approximation of curved surfaces | Curved surfaces such as microlenses require staircase approximation → degraded convergence |
| Memory scaling | Memory |
| Dispersive materials | Separate computation required for each wavelength (repeated cost for broadband sweeps) |
2.4 Key Parameters
| Parameter | Role | COMPASS Default |
|---|---|---|
| Fourier order ( | Determines spatial resolution. Higher is more accurate but cost scales as | [9, 9] |
| Li's factorization | Improves convergence at discontinuous boundaries. Inverse rule, normal vector method | li_inverse |
| Polarization | TE/TM or arbitrary polarization. Li's rule is particularly important for TM | Unpolarized (averaged) |
Li's Fourier factorization rules:
The three rules introduced by Lifeng Li (1996) are central to RCWA convergence:
- Laurent's rule: When two functions have no simultaneous discontinuities →
- Inverse rule: When all discontinuities are complementary →
- Impossible condition: When non-complementary simultaneous discontinuities exist, both Laurent and inverse rules fail to converge
2.5 CIS Application Scenarios (When to Use for CIS)
- Color filter: Periodic array, planar layers → optimal for RCWA
- BARL (Bottom Anti-Reflection Layer): Thin-film stack optimization, wavelength sweep → optimal for RCWA
- Microlens: Staircase approximation required, but sufficient accuracy at order 15+
- Metal grid / DTI: Sharp permittivity discontinuities → Li inverse rule essential, high order required
- Parameter sweep: Single-wavelength computation is fast, advantageous for thickness/pitch/angle sweeps
3. FDTD (Finite-Difference Time-Domain)
3.1 Mathematical Foundation
FDTD directly discretizes the curl equations of Maxwell's equations in both time and space.
Yee lattice:
The staggered grid proposed by Kane Yee (1966) places the six components of the electric field (
Update equations (Leapfrog time-stepping):
The electric and magnetic fields are updated alternately in half time steps:
Courant-Friedrichs-Lewy (CFL) stability condition:
The time step must satisfy the following condition for numerical stability:
3.2 Strengths
| Strength | Description |
|---|---|
| Broadband response | Entire visible spectrum obtained from a single simulation (Fourier transform of impulse response) |
| Arbitrary geometry | Any 3D structure can be represented within grid resolution. No periodicity required |
| Time-domain information | Pulse propagation and transient response can be directly observed |
| Intuitive implementation | Update equations are simple arithmetic operations → easy parallelization and GPU acceleration |
| Nonlinear materials | Nonlinear response can be naturally included in the time domain |
3.3 Weaknesses
| Weakness | Description |
|---|---|
| CFL constraint | Fine grid → small time step → long simulation time. Critical for thin films |
| Memory | Entire 3D grid must be kept in memory. 5 nm grid, 1 um pixel → |
| Dispersive materials | Frequency-dependent permittivity of metals and semiconductors must be handled via auxiliary differential equations (ADE) |
| Thin-film inefficiency | Even BARL layers of a few nm thickness must be resolved by the full grid (RCWA handles them analytically) |
| Numerical dispersion | Insufficient grid resolution causes artificial dispersion in phase velocity ( |
3.4 Key Parameters
| Parameter | Role | Recommended for CIS Simulation |
|---|---|---|
| Grid spacing ( | Spatial resolution. | 5--10 nm (visible, Si) |
| Time step ( | Automatically determined by CFL | ~0.01 fs (5 nm grid) |
| PML layer count | Thickness of Perfectly Matched Layer | 8--16 layers |
| Total time steps | Until steady state is reached | Thousands to tens of thousands of steps |
| Source type | Broadband pulse or continuous wave (CW) | Gaussian pulse (380--780 nm) |
PML (Perfectly Matched Layer): The PML proposed by Berenger (1994) is an artificial layer that absorbs outgoing waves at the computational domain boundary without reflection. UPML and CPML are the current mainstream implementations.
3.5 CIS Application Scenarios (When to Use for CIS)
- Complex 3D structures: Asymmetric DTI, irregular metal interconnects → FDTD advantageous
- RCWA result verification: Cross-validation via FDTD spot-check at selected wavelengths
- Broadband QE: When the entire visible band needs to be obtained in a single run
- Time-domain analysis: Visualization of light propagation through microlenses
- Non-periodic structures: Single-pixel analysis, edge effect studies
4. FEM (Finite Element Method)
The Finite Element Method (FEM) solves the weak form of Maxwell's equations on tetrahedral/hexahedral meshes. The variational formulation of the vector wave equation:
The geometry is subdivided into tetrahedra, and the key advantage is the ability to perform adaptive mesh refinement near curved surfaces.
Strengths and Weaknesses
| Strengths | Weaknesses |
|---|---|
| Accurate representation of curved geometry (curvilinear elements) | Cost of assembling and solving large sparse matrices |
| Adaptive mesh refinement (AMR) | Mesh generation itself is complex (especially in 3D) |
| Easy multiphysics coupling (thermal, structural) | Frequency domain → repeated computation per wavelength required |
| Non-uniform/anisotropic material handling | Limited open-source optical FEM solvers |
COMPASS does not currently include FEM. For the periodicity of CIS pixels, RCWA is more efficient, and commercial FEM (COMSOL) has high licensing costs. However, FEM may be the only option for microlens curved surfaces or thermo-optical multiphysics simulations.
5. BEM (Boundary Element Method)
The Boundary Element Method (BEM) places unknowns only on boundary surfaces rather than throughout the volume. Using the free-space Green's function
Strengths and Weaknesses
| Strengths | Weaknesses |
|---|---|
| Dimension reduction: 3D problem to 2D surface problem | Dense matrix → |
| Open boundary naturally handled | Difficulty with non-uniform/nonlinear materials |
| Efficient for far-field calculations | Specialized Green's function needed for layered media |
| Optimized for scattering problems | Inefficient for multilayer thin-film stacks |
BEM is not commonly used for CIS pixel simulation. Image sensors are multilayer structures where the electric field distribution throughout the entire volume is important. It may be useful for studying scattering characteristics of individual microlenses or plasmonic responses of metal nanoparticles.
6. TMM (Transfer Matrix Method)
6.1 Mathematical Foundation
The Transfer Matrix Method (TMM) is an analytical method that describes electromagnetic wave propagation in planar multilayer thin films as matrix products.
2x2 transfer matrix (isotropic, normal incidence):
The transfer matrix for each layer
where the phase thickness
The transfer matrix for the entire stack is a simple product:
4x4 Berreman matrix (anisotropic):
For cases involving anisotropic materials, Berreman's (1972) 4x4 formulation is required:
where
6.2 Strengths and Weaknesses
| Strengths | Weaknesses |
|---|---|
| Extremely fast: Completed in just a few matrix multiplications | Limited to 1D: Cannot handle lateral patterns |
| Analytical accuracy: No numerical discretization error | Possible numerical instability in thick absorbing layers |
| Immediate calculation of reflectance/transmittance/absorptance | Cannot capture diffraction or scattering phenomena |
| Industry standard for multilayer thin-film design | Cannot handle 2D/3D patterns such as microlenses and metal grids |
6.3 CIS Application Scenarios (When to Use for CIS)
TMM is not used as a direct solver in COMPASS, but is extremely useful for the following purposes:
- Initial stack design: Starting point for BARL and ARC (Anti-Reflection Coating) thickness optimization
- Material screening: Rapid evaluation of absorption/transmission characteristics of color filter materials
- Analytical verification: Reference for RCWA results in structures composed only of uniform layers
- 1D convergence check: RCWA results at
(zeroth order only) should match TMM
COMPASS's compass.materials.database.MaterialDB internally uses TMM-based thin-film reflectance calculations.
7. Ray Tracing
7.1 Geometric Optics Approximation
Ray tracing treats light as rays and traces propagation using Snell's law and Fresnel coefficients. It corresponds to the short-wavelength limit (
Ray equation:
where
7.2 Strengths and Weaknesses
| Strengths | Weaknesses |
|---|---|
| Extremely fast: Millions of rays traced in seconds | Ignoring diffraction at wavelength-scale structures → critical errors |
| Intuitive physics: Easy visualization of ray paths | Cannot capture interference phenomena (thin-film effects, etc.) |
| Standard for lens system design (Zemax, Code V) | Ignores near-field coupling |
| Suitable for CRA (Chief Ray Angle) analysis | Rapidly inaccurate when pixel pitch < several |
7.3 Role in CIS
In modern CIS design, ray tracing is primarily used as a pre-processing stage for wave optics:
- Camera lens → sensor plane: Compute CRA and irradiance distribution in Zemax/Code V
- Handoff: Extract incidence conditions (angle, amplitude) at the sensor plane
- Wave optics simulation: Pixel simulation with the corresponding incidence conditions in COMPASS's RCWA/FDTD
COMPASS's compass.sources.ray_file_reader and compass.sources.cone_illumination modules support this handoff.
8. Hybrid Methods
No single method can efficiently handle all scales of an image sensor system. Hybrid methods combine the optimal method for each scale.
8.1 Ray Tracing → RCWA Handoff (Zemax → COMPASS)
Camera lens (mm scale) → Zemax (Ray Tracing)
↓ CRA, irradiance
Pixel stack (um scale) → COMPASS (RCWA/FDTD)
↓ QE, crosstalk
Sensor performance (pixel array) → System analysisKey interface: angle of incidence (
8.2 FEM + Scattering Matrix (EMUstack Approach)
EMUstack solves each layer with 2D FEM and handles inter-layer coupling via scattering matrices. It combines the geometric flexibility of FEM with the numerical stability of S-matrices, but the complexity of mesh generation remains.
8.3 Multi-scale Approaches
| Scale | Method | Target |
|---|---|---|
| Several mm | Ray Tracing | Camera lens, microlens array |
| Several um | RCWA / FDTD | Color filter, BARL, DTI |
| Several nm | FEM / BEM | Plasmonic nanostructures, surface roughness |
As a future direction, neural network-based surrogate models are gaining attention. Neural networks trained on RCWA/FDTD data provide real-time predictions, and precise solvers are called only at points where high accuracy is needed.
9. Comprehensive Performance Comparison
9.1 Qualitative Comparison
| Characteristic | RCWA | FDTD | FEM | BEM | TMM | Ray Tracing |
|---|---|---|---|---|---|---|
| Accuracy | High (periodic) | High | Very high | High (surface) | Exact (1D) | Low (ignores wave effects) |
| Speed (single wavelength) | Very fast | Slow | Slow | Medium | Extremely fast | Extremely fast |
| Speed (broadband) | Medium (repeated) | Fast (single run) | Slow (repeated) | Slow (repeated) | Extremely fast | Extremely fast |
| Memory | Medium | High | High | High (dense) | Extremely low | Low |
| Geometric flexibility | Low (periodic only) | High | Very high | Medium | None (1D only) | High (macro) |
| Material flexibility | High | Medium | Very high | Low | High | Medium |
| Automatic differentiation (AD) | Possible | Possible | Limited | Difficult | Possible | Difficult |
| GPU acceleration | Very suitable | Suitable | Limited | Limited | Unnecessary | Suitable |
9.2 Computational Scaling
| Method | Spatial DOF | Time Complexity | Memory Complexity | Bottleneck |
|---|---|---|---|---|
| RCWA | Eigenvalue decomposition | |||
| FDTD | Number of time steps | |||
| FEM | Matrix solve | |||
| BEM | Dense matrix | |||
| TMM | None | |||
| Ray Tracing | Number of rays |
9.3 Typical Execution Times
1 um pitch BSI pixel, 2x2 Bayer unit cell, at 550 nm:
| Method | Parameter Settings | DOF | Single Wavelength Time | 41-Wavelength Sweep |
|---|---|---|---|---|
| RCWA (GPU) | ~7,000 | 0.3 s | 12 s | |
| RCWA (GPU) | ~19,000 | 2 s | 80 s | |
| FDTD (GPU) | ~8M cells | 45 s | 45 s (broadband) | |
| FDTD (CPU) | ~1M cells | 300 s | 300 s | |
| FEM | Adaptive mesh, | ~500K DOF | 60 s | 2,460 s |
| TMM | 10 layers | 10 | < 0.001 s | 0.04 s |
Note: The above figures are representative estimates and can vary significantly depending on hardware (GPU: NVIDIA A100, CPU: 8-core) and implementation.
9.4 Differentiable Simulation Support
Automatic differentiation (AD) support for inverse design and topology optimization:
| Method | AD Framework | Gradient Method | Representative Solvers |
|---|---|---|---|
| RCWA | PyTorch, JAX | Forward/Reverse AD | meent, fmmax, torcwa |
| FDTD | PyTorch, JAX | Reverse AD, Adjoint | FDTDX, flaport, fdtdz |
| FEM | Limited | Adjoint method | EMOPT (FDFD) |
| TMM | Easy | Analytical gradient | Custom implementation |
RCWA vs FDTD Solver Comparison
Compare simulated quantum efficiency (QE) curves from RCWA and FDTD solvers. Adjust pixel pitch and solver parameters to see how results and performance change.
10. Application in COMPASS
10.1 Rationale for RCWA + FDTD Selection
| Criterion | RCWA | FDTD | Rationale |
|---|---|---|---|
| CIS pixel periodicity | Perfect fit | Suitable | Pixel array = periodic structure |
| Thin-film stack handling | Analytical treatment | Grid discretization | RCWA advantage for BARL/ARC design |
| Cross-validation | - | - | Independent verification via different mathematical approaches |
| GPU acceleration | Very suitable | Suitable | Leveraging PyTorch/JAX-based open source |
| License | MIT available | MIT available | meent (MIT), flaport (MIT) |
10.2 Cross-Validation Philosophy
Because the same physical laws are solved with different mathematical approaches, agreement between the two solvers significantly increases result confidence. Checklist when discrepancies arise:
- Insufficient RCWA convergence → Increase Fourier order
- Insufficient FDTD resolution → Refine grid
- Modeling differences → Review staircase approximation, material models, boundary conditions
- Energy conservation violation (
) → Implementation bug
The SolverComparison class automates QE difference, relative error, and energy conservation verification.
10.3 Solver Selection Guide (Decision Guide)
Start simulation
│
├─ Is the structure periodic?
│ ├─ YES → Only thin films?
│ │ ├─ YES → TMM (initial design) → RCWA (precise)
│ │ └─ NO → RCWA (default) + FDTD (verification)
│ └─ NO → FDTD
│
├─ Is broadband needed?
│ ├─ YES, 50+ wavelengths → FDTD (single run is more efficient)
│ └─ NO, < 50 wavelengths → RCWA (per-wavelength iteration is faster)
│
└─ Is time-domain information needed?
├─ YES → FDTD
└─ NO → RCWA (default choice)10.4 Future Directions
COMPASS solver expansion roadmap:
| Priority | Solver/Method | Purpose |
|---|---|---|
| High | fmmax (RCWA) integration | Improved convergence via vector FMM, JAX batching |
| High | FDTDX (FDTD) integration | Multi-GPU 3D, large-scale inverse design |
| Medium | Built-in TMM module | Fast stack pre-design, 1D reference |
| Medium | Neural network surrogate model | Real-time parameter optimization |
| Low | FEM integration (EMUstack) | Plasmonic/curved surface specialized research |
References
Key Papers
- K. S. Yee, "Numerical solution of initial boundary value problems involving Maxwell's equations in isotropic media," IEEE Trans. Antennas Propag., vol. 14, no. 3, pp. 302-307, 1966.
- M. G. Moharam and T. K. Gaylord, "Rigorous coupled-wave analysis of planar-grating diffraction," J. Opt. Soc. Am., vol. 71, no. 7, pp. 811-818, 1981.
- L. Li, "Use of Fourier series in the analysis of discontinuous periodic structures," J. Opt. Soc. Am. A, vol. 13, no. 9, pp. 1870-1876, 1996.
- J.-P. Berenger, "A perfectly matched layer for the absorption of electromagnetic waves," J. Comput. Phys., vol. 114, no. 2, pp. 185-200, 1994.
- D. W. Berreman, "Optics in stratified and anisotropic media: 4x4-matrix formulation," J. Opt. Soc. Am., vol. 62, no. 4, pp. 502-510, 1972.