You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Conceptual problem of summing dispersions and refractive index #110
Problem: It is mathematically not allowed to sum dispersions if there is a conversion from n to eps somewhere, because $$(n_1 + n_2)^2 \neq n_1^2 + n_2^2$$, the same applies for combinations for eps and n, where the situation is even more complicated since we cannot convert because either a part of n or eps is unknown due to a representation in the other imaginary plane.
Solution:
Only allow adding of dispersions if they are natively written in eps.
Add a flag to the dispersions whether they are represented in refr index or diel function and allow adding of refr index + conversion in DispersionSum
Follow up issue:
Find out if there is a possible mathematical relation to add n and eps (kkr?).
By scrolling through I realized that we only have Cauchy and ConstantRefractiveIndex which are formulated in refractive index, right? The formulas from 5 up in rii are also formulated as such but they are not implemented in our reader.
I think a solution could be to
Not allowing summing with a Cauchy (give a warning and point to a Lorentz or Poles model instead)
Activity
domna commentedon Jan 26, 2023
By scrolling through I realized that we only have Cauchy and ConstantRefractiveIndex which are formulated in refractive index, right? The formulas from 5 up in rii are also formulated as such but they are not implemented in our reader.
I think a solution could be to