Skip to content

Conceptual problem of summing dispersions and refractive index #110

Closed

Description

@domna

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?).

Activity

  1. added
    bugSomething isn't working
    enhancementNew feature or request
    on Jan 26, 2023
  2. domna commented on Jan 26, 2023

    @domna
    MemberAuthor

    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)
    • Remove ConstantRefractiveIndex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions