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
Hi domna. Thanks so much for your hard work here. In Fujiwara, there is a negative sign in front of the Drude term. The PyElli docs do not show this sign. Should I set A to a negative value to accomplish this?
Yes, typically you would build something like this $\varepsilon = \varepsilon_\infty - \varepsilon_\text{Drude}$ where $\varepsilon_\text{Drude}$ is the dispersion from pyElli's documentation. But of course you might also use a negative $A$. However, in Fujiwara it's $A = \varepsilon_\infty \cdot \omega_p^2$, so $\varepsilon_\infty$ is nonzero and needs to be included in the full term. So it's best to stay with a positive $A$ and use the composite formula (you can just build this in pyElli by writing epsilon = epsilon_infinity - DrudeEnergy(A=..., gamma=....)). It might be a bit awkward here but we decided for pyEllis models to use this adding/subtraction based mechanism instead of fixing $\varepsilon_\infty$ in the dispersion formulas.
Many many thanks and much appreciated! I end up with a type error (below) when I subtract. It does not show up when I add.
Input:
#generate Drude term
AZO_dr = elli.dispersions.DrudeEnergy(A = params['AZO_DruAmp'],gamma=params['AZO_DruGamma'])
#generate high frequency term
AZO_highFreq = elli.dispersions.EpsilonInf(params['AZO_epsInf'])
#set full dispersion
AZO_disp = AZO_highFreq - AZO_dr
This results in the following error :
TypeError: unsupported operand type(s) for -: 'EpsilonInf' and 'DrudeEnergy'
Activity
domna commentedon Jun 29, 2022
Implemented
Need KKR
Checked
This means three things:
List
Models present in pyElli but not in Fujiwara
domna commentedon Jun 30, 2022
Maybe also have a look at Sentech and Woolam docs to see what they have to offer and implement that as well.
cfruhling2 commentedon Nov 18, 2026
Hi domna. Thanks so much for your hard work here. In Fujiwara, there is a negative sign in front of the Drude term. The PyElli docs do not show this sign. Should I set A to a negative value to accomplish this?
domna commentedon Nov 19, 2026
Yes, typically you would build something like this$\varepsilon = \varepsilon_\infty - \varepsilon_\text{Drude}$ where $\varepsilon_\text{Drude}$ is the dispersion from pyElli's documentation. But of course you might also use a negative $A$ . However, in Fujiwara it's $A = \varepsilon_\infty \cdot \omega_p^2$ , so $\varepsilon_\infty$ is nonzero and needs to be included in the full term. So it's best to stay with a positive $A$ and use the composite formula (you can just build this in pyElli by writing $\varepsilon_\infty$ in the dispersion formulas.
epsilon = epsilon_infinity - DrudeEnergy(A=..., gamma=....)). It might be a bit awkward here but we decided for pyEllis models to use this adding/subtraction based mechanism instead of fixingHope this helps
cfruhling2 commentedon Nov 19, 2026
Many many thanks and much appreciated! I end up with a type error (below) when I subtract. It does not show up when I add.
Input:
This results in the following error :
TypeError: unsupported operand type(s) for -: 'EpsilonInf' and 'DrudeEnergy'This does not happen when I use addition (+)