Repository navigation
Bugfix: fields and powers of beamlets in a medium - #175
Merged
Merged
Conversation
…ty and power of astigmatic beamlets use the medium
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #175 +/- ##
==========================================
+ Coverage 90.30% 90.82% +0.52%
==========================================
Files 86 86
Lines 4610 4612 +2
==========================================
+ Hits 4163 4189 +26
+ Misses 447 423 -24 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
StackEnjoyer
approved these changes
Oct 26, 2026
Owner
|
Please create a bug issue in the future |
This was referenced Oct 26, 2026
11 tasks
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.
Bugfixes
electric_field(gauss, r, z)of aGaussianBeamletwas √n too large in a medium of index nbeamlet_hit_field(::GaussianBeamletHit)was √n too large in a medium, also thePlaneFieldof the OpticsBase extension built from itoptical_power(agb)andintensity(agb, r, z)of anAstigmaticGaussianBeamletused Z₀ instead of Z₀/n, i.e. were n times too small in a medium; e.g. the transmitted child of a plate beamsplitter (n = 1.5) gave P0/3 instead of P0/2optical_power(pd),intensity(pd)) do not change: Feature: detector field of astigmatic beamlets as a 3D vector, Poynthing flux definition #161 already compensated the hit field of stigmatic beamlets, which the functions above bypassedAll field functions now return the physical field in V/m with the irradiance
n|E|²/(2Z₀). TheE0of aGaussianBeamletstays normalized to its power; the field of a segment in a medium isE0/√n.Doc changes
GaussianBeamletE0,electric_field,optical_power,beamlet_hit_field,GaussianBeamletHitInternal changes
test/TestBeamletFieldInMedia.jl: plate beamsplitter (substrate arm, normal and tilted), thick glass plate, detector in glass and in air; both beamlet models agree and against the analytic peak field√(4Z₀P/(nπw²))Agent skill
components/beams-and-sources.mdupdated