PR: Implement support for *Transfer Matrix Method* (TMM).#1366
Merged
PR: Implement support for *Transfer Matrix Method* (TMM).#1366
Conversation
c5f20da to
10966f4
Compare
10966f4 to
3254159
Compare
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.
Summary
This PR relates to #525 and implements the full Transfer Matrix Method (TMM), I started the work 6 years ago and finally managed to finish, thanks Claude!
Computations
The main function is
colour.phenomena.matrix_transfer_tmmthat computes transfer matrices for multilayer thin film structures with full vectorisation across wavelength, angle and thickness.Then the two
colour.phenomena.thin_film_tmmandcolour.phenomena.multilayer_tmmfunctions compute thin film and multilayer reflectance / transmittance respectively.colour.phenomena.snell_lawcolour.phenomena.polarised_light_magnitude_elementscolour.phenomena.polarised_light_reflection_amplitudecolour.phenomena.polarised_light_reflection_coefficientcolour.phenomena.polarised_light_transmission_amplitudecolour.phenomena.polarised_light_transmission_coefficientcolour.phenomena.TransferMatrixResultcolour.phenomena.matrix_transfer_tmmcolour.phenomena.light_water_molar_refraction_Schiebener1990colour.phenomena.light_water_refractive_index_Schiebener1990colour.phenomena.thin_film_tmmcolour.phenomena.multilayer_tmmPlotting
I also added a bunch of new plotting definitions, most notable ones being
colour.plotting.plot_thin_film_iridescence,colour.plotting.plot_thin_film_reflectance_mapandcolour.plotting.plot_multi_layer_stack.colour.plotting.plot_single_layer_thin_filmcolour.plotting.plot_multi_layer_thin_filmcolour.plotting.plot_thin_film_comparisoncolour.plotting.plot_thin_film_spectrumcolour.plotting.plot_thin_film_iridescencecolour.plotting.plot_thin_film_reflectance_mapcolour.plotting.plot_multi_layer_stackPreflight
Code Style and Quality
colour,colour.models.Documentation