_get_integrand#

sunkit_spex.emission._get_integrand(x_log, *, model, electron_dist, photon_energy, z, efd=True)[source]#

Return the value of the integrand for the thick- or thin-target bremsstrahlung models.

Parameters:
  • x_log (numpy.array) – Log of the electron energies

  • model (str) – Either thick-target or thin-target

  • electron_dist (BrokenPowerLawElectronDistribution) – Electron distribution as function of energy

  • photon_energy (numpy.array) – Photon energies

  • z (float) – Mean atomic number of plasma

  • efd (bool (optional)) – True (default) the electron flux distribution (electrons cm^-2 s^-1 keV^-1) is calculated with flux. False, the electron density distribution (electrons cm^-3 keV^-1) is calculated with density.

Returns:

The values of the integrand at the given electron_energies

Return type:

numpy.array

References

See SSW brm2_fthin.pro and brm2_fouter.pro.