Repository navigation
docs(rcwa): strong stretches measured for spurious layer modes and the exceptional-point handling - #255
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fills the last "Not measured" item of the
wall_resolutionvalidation 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'sw = q**2was 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")
1 - R - Tstays within 8e-13.'rebuild'and'off'agree to 6.7e-16 on 30 scenes at orders 8, 12 and 16, against a criterion of 1e-9.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.-Wbuild (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