Repository navigation
Polarizing components v2 - #25
Conversation
…Add Sellmeier equation + testset
|
I had a first look at it. It would be great, if you could provide your test script for playing around with it. I did not have a too deep in-depth look at the physics. As already mentioned, I would have chosen the approach of giving elements an explicit axis (i.e. fast/slow axis) instead of an implicit axis by introducing the convention of s/p orientation having some relationship with a local/global xyz coordinate system. This should work but it is implicit and does not feel as physical as the explicit axis. The advantage of course is that you do not have to introduce an axis field for every polarizing component but you will have to document this properly to not confuse the BMO users. Changes I have done so far:
I think one general issue remains: We only have polarization as of the Jones formalism. Which is fine! However, we should know and state the limitations of this approach. It is quite simple on the one hand, but not able to correctly model complex/arbitrary polarizing components in 3D. |
|
The test script I am using is the one provided in #19. The projection method is loosely inspired by this paper. The explicit axis approach is inherently embedded into the current implementation of the algorithm, since the local Jones matrix is coupled to the global orientation of the element, thereby encoding the slow-/fast-axis. I.e. for the filter, the fast and slow axis orientation is determined by the diagonal entries in a XY/XZ/YZ coordinate system. This approach was inspired by your initial proposal in #19 and the mentioned paper. I agree that the Jones formalism is a rough implementation for the moment, but I think it should be sufficient for the foresable future. The Berreman method looks very promising but is way above my head right now. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #25 +/- ##
==========================================
+ Coverage 69.82% 71.46% +1.64%
==========================================
Files 52 57 +5
Lines 2674 2793 +119
==========================================
+ Hits 1867 1996 +129
+ Misses 807 797 -10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This branch is a revisit of the polarization ray tracing calculus introduced in:
Yun, Garam, Karlton Crabtree, and Russell A. Chipman. "Three-dimensional polarization ray-tracing calculus I: definition and diattenuation." Applied optics 50.18 (2011): 2855-2865.
This method looks great on paper, but there are some issues in practice, especially for Jones matrices that are tied to the orientation of their geometry, e.g. thin film filters. For the classic s-p-basis defined values, the tracing scheme works great. However, multiple unsuccessful attempts where made in order to resolve #19 using the Yun scheme.
The implementation of
_calculate_global_E0in this PR for theGlobalJonesBasisfully avoids the Yun scheme and simply projects the 3x3 polarization matrix into the transverse plane of the incoming ray. This seems to work fine i.e. there are no sudden jumps or discontinuities in the transmitted field values when rotating thePolarizationFilteraround its axes. Also, the field vector orthogonality to the ray direction of propagation is maintained. It violatesP*in_dir = out_dirin many cases, but I am not sure if this is required in global coordinates.The suggested solution for #19 is as follows in order to move on with our lives (this will surely not bite us in the ass at some later point :D)
LocalJonesBasisfor all interactions that are defined in the s-p-basis and use the Yun tracing algorithm, e.g. all current test cases for reflection and refraction are maintainedGlobalJonesBasisand the method described above for all thin-film polarizing element representations that due not change the ray directionI am so sick and tired of polarization its unreal...
ToDos
PolarizationFilterAdditional changes and additions
Utils.jlfile has been broken down into multiple, smaller files and moved into its own folderisorthognal3dandisparallel3dislinear,iscircularandisellipticalAdditional fixes
This branch also contains bug fixes for