Question: what evidence turns a simulated response into a usable design decision?
Read Chapter 3, make predictions in the browser lab, and then run the notebook. Begin with the channel convention in Chapter 4 when needed.
Suggested learning path¶
| Stage | Work | Evidence to retain |
|---|---|---|
| 1 | Draw the cell, illumination, and reference planes | Geometry sketch and parameter table |
| 2 | Work through the interface/film limits | Complex coefficients and normalized powers |
| 3 | Compare harmonic truncations | Complex-response changes alongside power residual |
| 4 | Explore width, phase, and transmission together | Two accepted targets and an unattainable request |
| 5 | Execute and export the notebook | CSV, JSON, source version, and validation record |
| 6 | Propose a supercell or second-method comparison | Defined observable and acceptance criteria |
For a classroom demonstration, draw a phase circle and place each computed transmission coefficient on it. Changing width moves a marker along a partial arc. Ask students to point to a desired phase before showing whether the arc reaches it and whether its transmitted power passes the threshold.
Example 1: field amplitude versus power¶
At normal incidence from index 1 to 1.5 with zero layer height,
The reflected power is , while the transmitted power is . Thus . The value is the squared electric-field ratio. The different wave impedances account for the difference from transmitted power.
Prediction: placing the same flat interface in a larger periodic cell adds available order labels. Does it create nonzero scattering into them? Continuous lateral translation symmetry keeps those amplitudes zero. The audit checks this case.
Example 2: which channels belong in the library?¶
For , , and normal incidence,
Both exterior indices, 1 and 1.5, are smaller than . Only order zero propagates on each side. The solver still retains closed harmonics to represent the near field and the patterned material response.
Now use and :
Reflection supports ; transmission supports . The audit computes these channels, checks their total power, and compares their order powers under incidence reversal and order relabeling. A library containing only would omit physically available output power here.
Example 3: a monitor shift is a phase shift¶
Take the reference normal-incidence cell, and . The raw transmission ratio gains
Moving the monitors leaves the device and its power response unchanged. Multiplying the raw coefficient by returns the phase at the two ridge faces. The notebook synthesizes three monitor placements and recovers the same complex coefficients to floating-point accuracy.
Diagnostic: two solvers can agree in yet show a constant phase discrepancy because they use different reference planes. Map those planes before changing the physical model.
Example 4: conservation can hide truncation error¶
Retain , then for the central width. Inspect the executed convergence table, which uses as a comparison.
At low order the truncated equations still form a lossless scattering problem and can conserve power. They represent less of the patterned field. The independent quantity of interest is the change in the complex response as the representation improves.
The library therefore uses separate acceptance limits: , power changes below , phase changes below , and all-channel power residual below 10-8. Each of the 50 width samples passes its versus 32 comparison. The limits define this teaching investigation; a new resonant geometry requires its own convergence study.
Example 5: select a target and reject a failed request¶
Require accepted rows, , and a phase error of at most . A target of selects a width near , with and circular error about .
For a target of , the closest eligible width is , with and a remaining error of about . The request is unmet. A nearest-neighbor algorithm returning an index does not establish feasibility.
Try a minimum transmission of 1 in the explorer. No library geometry meets it. The interface should report an empty feasible set rather than quietly selecting a lower-transmission cell.
Example 6: a reusable dataset and its validity domain¶
Consider the record at . Retain the real/imaginary parts of , powers, fixed experiment parameters, reference faces, harmonic counts, refinement changes, acceptance status, environment, and source hash.
Sending only the phase would lose amplitude and make phase wrapping ambiguous. Sending width and phase without material, height, wavelength, and angle would leave the underlying experiment unspecified. Sending alone at a multiorder condition would omit other scattering channels.
The exported library covers one wavelength and incidence, ideal constant-index materials, TE polarization, and one ridge family. The separate wavelength plot illustrates a neighborhood but does not broaden that library’s validated domain. A useful student contribution is to create another clearly versioned domain, repeat the checks, and document how it can be combined with the original.
Report checklist and next connection¶
Submit your prediction, model sketch, equations/conventions, parameter changes, analytic limits, convergence table, response plots, library files, audit, and one unmet target. State which solver stages actually ran. A FEM/FDTD cross-check or a varying-neighbor supercell needs its own execution evidence.
Chapter 5 now expands phase coverage and verifies four selected periodic supercells using these principles. Chapter 10 can use a broadened, validated library as an electromagnetic learning dataset. A finite-device efficiency and AI generalization require further evidence beyond these 50 related width samples.