tardis.transport.montecarlo.packet_collections module¶
- class tardis.transport.montecarlo.packet_collections.LastInteractionTracker(*args, **kwargs)[source]¶
Bases:
LastInteractionTracker
- class_type = jitclass.LastInteractionTracker#7f2619574d40<types:array(int64, 1d, A),in_nus:array(float64, 1d, A),in_rs:array(float64, 1d, A),in_ids:array(int64, 1d, A),out_ids:array(int64, 1d, A),shell_ids:array(int64, 1d, A)>¶
- class tardis.transport.montecarlo.packet_collections.PacketCollection(*args, **kwargs)[source]¶
Bases:
PacketCollection
- class_type = jitclass.PacketCollection#7f264d2c7a70<initial_radii:array(float64, 1d, A),initial_nus:array(float64, 1d, A),initial_mus:array(float64, 1d, A),initial_energies:array(float64, 1d, A),packet_seeds:array(int64, 1d, A),time_of_simulation:float64,radiation_field_luminosity:float64,output_nus:array(float64, 1d, A),output_energies:array(float64, 1d, A)>¶
- class tardis.transport.montecarlo.packet_collections.VPacketCollection(*args, **kwargs)[source]¶
Bases:
VPacketCollection
- class_type = jitclass.VPacketCollection#7f2619574ce0<source_rpacket_index:int64,spectrum_frequency_grid:array(float64, 1d, A),v_packet_spawn_start_frequency:float64,v_packet_spawn_end_frequency:float64,nus:array(float64, 1d, A),energies:array(float64, 1d, A),initial_mus:array(float64, 1d, A),initial_rs:array(float64, 1d, A),idx:int64,number_of_vpackets:int64,length:int64,last_interaction_in_nu:array(float64, 1d, A),last_interaction_in_r:array(float64, 1d, A),last_interaction_type:array(int64, 1d, A),last_interaction_in_id:array(int64, 1d, A),last_interaction_out_id:array(int64, 1d, A),last_interaction_shell_id:array(int64, 1d, A)>¶
- tardis.transport.montecarlo.packet_collections.consolidate_vpacket_tracker(vpacket_collections, spectrum_frequency_grid, start_frequency, end_frequency)[source]¶
Consolidate the vpacket trackers from multiple collections into a single vpacket tracker.
- Parameters:
- vpacket_collectionsList[VPacketCollection]
List of vpacket collections to consolidate.
- spectrum_frequency_gridndarray
Array of spectrum frequencies.
- Returns:
- VPacketCollection
Consolidated vpacket tracker.