synthesizer.photoionisation.photoionisation

Functions

synthesizer.photoionisation.photoionisation.calculate_Q_from_U(U_avg, n_h)[source]

Calcualte Q for a given U assuming a n_h

Parameters:
  • U (float) – Ionisation parameter

  • n_h (float) – Hyodrogen density (units: cm^-3)

Returns
float

Ionising photon luminosity (units: s^-1)

synthesizer.photoionisation.photoionisation.calculate_U_from_Q(Q_avg, n_h=100)[source]

Calcualte the ionisation parameter for given Q assuming a n_h

Parameters:
  • Q (float) – Ionising photon luminosity (units: s^-1)

  • n_h (float) – Hyodrogen density (units: cm^-3)

Returns
float

Ionisation parameter

Classes

class synthesizer.photoionisation.photoionisation.Ions[source]

A dataclass holding the ionisation energy of various ions amongst other properties and methods.

Used for calculating ionising photon luminosities (Q).

Values taken from: https://en.wikipedia.org/wiki/Ionization_energies_of_the_elements_(data_page)