Skip to content

docs(rcwa): strong stretches measured for spurious layer modes and the exceptional-point handling - #255

Merged
yonghakim merged 1 commit into
mainfrom
claude/gifted-lovelace-8g402n
Nov 25, 2026
Merged

yonghakim merged 1 commit into
mainfrom
claude/gifted-lovelace-8g402n

Conversation

@yonghakim

Copy link
Copy Markdown
Member

Fills the last "Not measured" item of the wall_resolution validation page: a strong stretch is reported in the literature to add spurious layer modes, and nothing had been looked for. The measurement ran with the solver unchanged; each layer's w = q**2 was read through a wrapper. Criteria were written before measuring, and readings added after the first results are marked as such on the page.

What the page now says (validation page EN/KO, new section "Strong stretches")

  • Uniform media. Every computed mode is a plane wave. No part of the spectrum holds more values than plane waves (orders 4–16, slopes 0.1–0.005). Within |w| ≤ 50 the error is 3–5% at order 8, 4e-4 at 12 and 3e-6 at 16. The criterion written first is recorded as not met, with the reason: it counted high-order plane waves computed less accurately.
  • Patterned layers.
    • At slope 0.02 there are no more growing roots than the default solve has.
    • At 0.01 and 0.005, four of seventy comparisons have one to four more.
    • In lossless layers these roots are conjugate pairs, and 1 - R - T stays within 8e-13.
    • A metal layer's least-attenuated modes converge faster with the stretch.
  • Exceptional-point handling.
    • 'rebuild' and 'off' agree to 6.7e-16 on 30 scenes at orders 8, 12 and 16, against a criterion of 1e-9.
    • They agree to 7.7e-11 at the 69 sweep points where a rebuild happened.
  • Wavelength sweeps. 550–1100 nm every 4 nm, on a metal box, a metal circle and a dielectric box: no refusal and no isolated spike.
  • Three warnings. Three ExceptionalPointWarnings came from the stretched air half-spaces. At those points the answer is the same with the handling off, and it lies on the curve through its neighbours.

The guide (EN/KO) gains one bullet under "How it is checked" and one under "Where to be careful", the isolated warning. "Not measured" keeps slopes below 0.005, orders above 16, features narrower than 4 nm, and the cause of the warnings.

Documentation only; no code or test changes.

Checks

  • tests/api/test_docs_contract.py, tests/api/test_text_encoding.py: 213 passed, 1 skipped.
  • ruff check . passes.
  • The Sphinx -W build (EN/KO) is not available here and is left to this PR's CI.

The measurement scripts and records are kept outside this repository.


Generated by Claude Code

…e exceptional-point handling

The last "Not measured" item of the wall_resolution validation page -- a strong stretch is
reported to add spurious layer modes, and nothing had been looked for -- is measured with the
solver unchanged (each layer's w = q**2 read through a wrapper), against criteria written
before measuring:

- Uniform media in the stretched coordinates, where the modes are plane waves: no part of
  the spectrum holds more values than plane waves (orders 4-16, slopes 0.1-0.005). Within
  |w| <= 50 the error is 3-5% at order 8, 4e-4 at 12, 3e-6 at 16. The criterion written
  first (1e-3 up to order N/2) is not met at any order; what it counts is high-order plane
  waves computed less accurately, and the page says so and that the separating readings came
  after the first results.
- Patterned layers: at slope 0.02 no more Im w > 0 roots than the default solve; at 0.01 and
  0.005 four of seventy comparisons have one to four more. In lossless layers every such root
  has its conjugate (complex-mode pairs), and 1 - R - T stays within 8e-13. Metal layers'
  least-attenuated modes converge faster with the stretch.
- exceptional_points 'rebuild' against 'off': 6.7e-16 on 30 scenes at orders 8, 12, 16
  (criterion 1e-9); 7.7e-11 on the 69 sweep points where a rebuild happened.
- Sweeps 550-1100 nm every 4 nm (2 nm planned) on a metal box, a metal circle and a
  dielectric box: no refusal and no isolated spike. Three ExceptionalPointWarnings from the
  stretched air half-spaces, where R is the same with the handling off and smooth.

The guide (EN/KO) gains the result under "How it is checked" and the isolated warning under
"Where to be careful". "Not measured" keeps slopes below 0.005, orders above 16, features
narrower than 4 nm and the warnings' cause.

Checked: tests/api/test_docs_contract.py and test_text_encoding.py (213 passed, 1 skipped);
ruff check. The Sphinx -W build is left to CI (no Sphinx in this environment).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKzHyBMczzzhKMXEVgazPy
@yonghakim
yonghakim merged commit 660664a into main Nov 25, 2026
59 checks passed
@yonghakim
yonghakim deleted the claude/gifted-lovelace-8g402n branch November 25, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants