wtbarnes / fiasco

Python interface to the CHIANTI atomic database
http://fiasco.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
21 stars 17 forks source link

Add keyword argument for coupling density and temperature axes #219

Closed wtbarnes closed 1 year ago

wtbarnes commented 1 year ago

This PR adds the ability to let density vary along the temperature axis in the level populations calculation in Ion. By extension, this also adds this capability to the contribution function, emissivity, and intensity calculation.

This is useful, for example, when calculating one of these quantities at constant pressure, where density varies inversely with temperature. However, this approach is more general than that and can incorporate any density variation along the temperature axis.