Open brryan opened 2 years ago
Because of the issue with NonCGS
opacities not being acceptable to the MeanOpacity
constructor, maybe MeanOpacity
should be subsumed into the regular Opacity
object, removing some variants.
Also, it might be nice to be able to enroll non-standard opacities as an end user. E.g. toy opacity models that don't necessarily belong in this repository. This would probably require some kind of preprocessor-like scripting but might not be too bad.
I like keeping the toy models here---I think that's useful. I agree we should reduce the number of variants somehow.
Also worth revisiting how we handle rho -> n
conversions, especially in scattering opacities. It may be worth e.g. providing X
, Y
, and Z
(hydrogen, helium, other) mass fractions through *lambda
, possibly also with some notion of ionization state? Once we get to ionization state, though, opacities may just be tabulated anyway.
We use a variant just for units vs. not units, especially in scattering opacities. It would be nice to find a way around this, something like @Yurlungur 's