Function adas.c5dplr

def c5dplr(npix=100, wvmin=1.0, wvmax=1.0, wvcomp=[0.0], emcomp=[0.0], tev=50.0, amss=2.0)

Adds Doppler broadening to a set of discrete emissivity components over a linear pixel space.

Parameters

npix : int
number of pixels in range
wvmin : float
minimum wavelength (A)
wvmax : float
maximum wavelength (A)
wvcomp : float, array
wavelength of component (A)
emcomp : float, array
intensity/emissivity of component (arbitrary units)
tev : float
plasma ion temperature (eV)
amss : float
atomic mass number of element

Returns

doppler : float, array
Doppler broadened feature, dimensioned by npix

Notes

Version History

  • Martin O'Mullane, 20-11-2012

    • First version
  • Martin O'Mullane, 20-02-2021

    • Accept a single line

Example

Very loosely based on Fe2+ 3d6 3H - 3d5 4p 3H multiplet

>>> import adas as adas
>>> wvcomp = [1018.286, 1017.745, 1017.254]
>>> emcomp = [1.0, 0.61, 0.53]
>>> adas.c5dplr(npix=10, wvmin=1015.0, wvmax=1020.0, wvcomp=wvcomp, emcomp=emcomp, tev=200.0, amss=54.0)
array([0.        , 0.        , 0.        , 0.16439669, 0.78968166,
       0.95537762, 0.23054403, 0.        , 0.        , 0.        ])