← Back to Lab
1D Grating RCWA
Rigorous Coupled Wave Analysis (Fourier modal method) for 1D binary
gratings. Compute reflection R(λ) and transmission T(λ). Runs in-browser
via Pyodide + inkstone.
First load downloads ~35 MB (Pyodide + numpy + scipy + inkstone) — cached after.
Grating
Number of Fourier orders used in the RCWA expansion. Higher values improve convergence for sharp or high-contrast gratings, but make the calculation slower.
Materials ε = n²
Top + i
Ridge + i
Groove + i
Substrate + i
Incidence
Wavelength sweep
RCWA (Fourier modal method). Expands fields in plane-wave harmonics of the grating period and solves the eigenvalue problem in each layer. Diffraction orders couple through the Fourier decomposition of ε(x).
Reflection / Transmission spectrum Initializing…
Geometry and solver conventions 1D periodic, φ = 0
- x is periodic with period Λ; y is invariant along the ridge direction.
- z follows the layer stack from top/superstrate to substrate.
- The incident plane wave enters from the top region; θ is measured from the surface normal in the x-z plane.
- s/TE means E along y; p/TM means E lies in the x-z incidence plane.