tardis.energy_input.gamma_packet_loop module

tardis.energy_input.gamma_packet_loop.gamma_packet_loop(packets, grey_opacity, photoabsorption_opacity_type, pair_creation_opacity_type, electron_number_density_time, mass_density_time, inv_volume_time, iron_group_fraction_per_shell, inner_velocities, outer_velocities, times, dt_array, effective_time_array, energy_bins, energy_df_rows, energy_plot_df_rows, energy_out, packets_info_array)[source]

Propagates packets through the simulation

Parameters
packetslist

List of GXPacket objects

grey_opacityfloat

Grey opacity value in cm^2/g

electron_number_density_timearray float64

Electron number densities with time

mass_density_timearray float64

Mass densities with time

inv_volume_timearray float64

Inverse volumes with time

iron_group_fraction_per_shellarray float64

Iron group fraction per shell

inner_velocitiesarray float64

Inner velocities of the shells

outer_velocitiesarray float64

Inner velocities of the shells

timesarray float64

Simulation time steps

dt_arrayarray float64

Simulation delta-time steps

effective_time_arrayarray float64

Simulation middle time steps

energy_binsarray float64

Bins for escaping gamma-rays

energy_df_rowsarray float64

Energy output

energy_plot_df_rowsarray float64

Energy output for plotting

energy_outarray float64

Escaped energy array

Returns
array float64

Energy output

array float64

Energy output for plotting

array float64

Escaped energy array

Raises
ValueError

Packet time index less than zero

tardis.energy_input.gamma_packet_loop.process_packet_path(packet)[source]

Move the packet through interactions

Parameters
packetGXPacket

Packet for processing

Returns
GXPacket

Packet after processing

float

Energy injected into the ejecta