Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Chapter 5 notebook: synthesize and verify a beam deflector

Topic ID: ms-05-beam-steering. We connect an ideal phase ramp, a discretely selected periodic-cell library, a local staircase prediction, and a full-wave TE supercell. Coordinates and signs follow Chapters 3/4: e−iωte^{-i\omega t}, eik⋅re^{i\mathbf k\cdot\mathbf r}, incidence from z<0z<0, ridges invariant along yy. The output is an infinitely repeated six-ridge sequence; it is not a finite beam deflector or a simulation of cylindrical posts. All ridges in a sequence share one height. Materials have real constant indices.

The global phase offset is selected using unit-cell phase error alone, before any supercell solve. Full-wave results are verification, not an optimization objective. Browser controls later inspect these saved data; they do not run RCWA.

Python 3.12.1 NumPy 2.4.6 SciPy 1.18.1 Matplotlib 3.11.1
Supercell period 3.9000000000000004 um; desired transmitted order +1 at 15.36441349084721 degrees.

1. Extend phase coverage with a common height

Screen five predeclared heights using the original Chapter 3 width domain. These coarse M=16M=16 screening curves are exploratory. The chosen 1.8 um library is recalculated at 161 widths and checked at M=24M=24 and 32. Each design uses one fixed height; combining independently referenced heights without a common physical comparison plane is not part of this model.

Loading...
Extended library: 161 accepted rows; worst complex refinement 2.1344101538935203e-05
<Figure size 1250x475 with 2 Axes>

2. Quantize a ramp and select actual geometries

The target ϕj=2π(j+1/2)/N+ϕ0\phi_j=2\pi(j+1/2)/N+\phi_0 produces positive order m=+1m=+1 under our Fourier convention. At each candidate global offset, choose the nearest circular phase among accepted rows with T≥0.8T\geq0.8. Minimize the mean squared phase error across the six positions over a fixed 361-offset grid. The global offset changes which geometries are selected, although adding a constant to an ideal continuous phase profile does not change its beam direction.

Loading...
Loading...

3. Compare a local mask with a full-wave supercell

The local prediction assumes a constant complex field coefficient in each pitch-wide interval. Its exact Fourier coefficient includes the finite sample width: Cm=sinc⁡(m/N)N−1∑jtje−2πim(j+1/2)/NC_m=\operatorname{sinc}(m/N)N^{-1}\sum_j t_j e^{-2\pi i m(j+1/2)/N}. Using Re(qt,m)∣Cm∣2/qi,0\mathrm{Re}(q_{t,m})|C_m|^2/q_{i,0} gives a local-mask power estimate. It need not conserve energy because neighboring elements and boundary matching were not solved together. The RCWA supercell instead matches Maxwell fields for the complete repeated geometry. It includes all open orders on both sides.

Loading...
Loading...
<Figure size 1375x500 with 2 Axes>

4. Refine the Fourier bandwidth

As a supercell grows, keeping the same integer MM reduces the maximum represented physical transverse wavevector. The calculation below holds the six-cell geometry fixed and refines MM. The final 144/192 comparison is already applied to every reported open-order power and complex transmitted amplitude for all four cases. Power conservation and convergence are reported independently.

Loading...

5. Reconstruct the deflected field

The plot covers two repeated supercells and uses the full modal solution at M=144M=144. It illustrates the coherent field, including interference and near-field structure. The separately computed modal powers establish the far-field order fractions. This picture does not model an aperture edge or a finite incident beam.

<Figure size 1125x650 with 2 Axes>

6. Export a reproducible synthesis record

The JSON preserves the extended library, phase-offset selection, geometry sequences, full-wave and local-mask order powers, convergence, source hashes, and validity limits. The separate audit script adds identical-cell embedding, mirror reversal, fine-order checks, and grcwa raster refinements. The chosen performance belongs to this ideal, infinitely periodic, lossless TE geometry. No broadband, fabrication, finite-device, or independent FEM/FDTD validation is implied.

Saved beam-steering.json and extended-library.csv
Expanded target-order power: 0.8553565666096787 conditional transmitted fraction: 0.9385157769011392

Interpretation and exercises

Explain why the allowed positive order has zero amplitude for identical ridges. Explain why reversing the sequence reverses the strong outgoing order. Compare incident-normalized power and power conditional on transmission. Identify where the local mask’s power account differs from the Maxwell result. Change a target order or period and redo order enumeration and convergence. Evaluate a changed geometry with a fresh solve rather than treating it as a verified prediction.

References: Yu et al. (2011), RCWA foundation, and grcwa documentation.

References
  1. Yu, N., Genevet, P., Kats, M. A., Aieta, F., Tetienne, J.-P., Capasso, F., & Gaburro, Z. (2011). Light Propagation with Phase Discontinuities: Generalized Laws of Reflection and Refraction. Science, 334(6054), 333–337. 10.1126/science.1210713
  2. Moharam, M. G., & Gaylord, T. K. (1981). Rigorous coupled-wave analysis of planar-grating diffraction. Journal of the Optical Society of America, 71(7), 811–818. 10.1364/JOSA.71.000811