tardis.transport.montecarlo.packet_trackers module¶
- class tardis.transport.montecarlo.packet_trackers.RPacketLastInteractionTracker(*args, **kwargs)[source]¶
 Bases:
RPacketLastInteractionTrackerNumba JITCLASS for storing the last interaction the RPacket undergoes.
- Parameters:
 - indexint
 Index position of each RPacket
- rfloat
 Radius of the shell where the RPacket is present
- nufloat
 Frequency of the RPacket
- energyfloat
 Energy possessed by the RPacket
- shell_idint
 Current Shell No in which the last interaction happened
- interaction_type: int
 Type of interaction the rpacket undergoes
Initialize properties with default values
- class_type = jitclass.RPacketLastInteractionTracker#7f4da4f97150<index:int64,r:float64,nu:float64,energy:float64,shell_id:int64,interaction_type:int64>¶
 
- class tardis.transport.montecarlo.packet_trackers.RPacketTracker(*args, **kwargs)[source]¶
 Bases:
RPacketTrackerNumba JITCLASS for storing the information for each interaction a RPacket instance undergoes.
- Parameters:
 - lengthint
 Length of the initial array that is instantiated
- seedint
 Seed for each RPacket
- indexint
 Index position of each RPacket
- statusint
 Current status of the RPacket as per interactions
- rfloat
 Radius of the shell where the RPacket is present
- nufloat
 Frequency of the RPacket
- mufloat
 Cosine of the angle made by the direction of movement of the RPacket from its original direction
- energyfloat
 Energy possessed by the RPacket at a particular shell
- shell_idint
 Current Shell No in which the RPacket is present
- interaction_type: int
 Type of interaction the rpacket undergoes
- num_interactionsint
 Internal counter for the interactions that a particular RPacket undergoes
- extend_factorint
 The factor by which to extend the properties array when the size limit is reached
Initialize the variables with default value
- class_type = jitclass.RPacketTracker#7f4d6f408380<seed:int64,index:int64,status:array(int64, 1d, A),r:array(float64, 1d, A),nu:array(float64, 1d, A),mu:array(float64, 1d, A),energy:array(float64, 1d, A),shell_id:array(int64, 1d, A),interaction_type:array(int64, 1d, A),boundary_interaction:unaligned array(Record(event_id[type=int64;offset=0],current_shell_id[type=int64;offset=8],next_shell_id[type=int64;offset=16];24;False), 1d, A),num_interactions:int64,boundary_interactions_index:int64,event_id:int64,extend_factor:int64>¶
 
- tardis.transport.montecarlo.packet_trackers.generate_rpacket_last_interaction_tracker_list(no_of_packets)[source]¶
 - Parameters:
 - no_of_packetsThe count of RPackets that are sent in the ejecta
 
- Returns:
 - A list containing RPacketLastInteractionTracker for each RPacket
 
- tardis.transport.montecarlo.packet_trackers.generate_rpacket_tracker_list(no_of_packets, length)[source]¶
 - Parameters:
 - no_of_packetsThe count of RPackets that are sent in the ejecta
 - lengthinitial length of the tracking array
 
- Returns:
 - A list containing RPacketTracker for each RPacket
 
- tardis.transport.montecarlo.packet_trackers.rpacket_trackers_to_dataframe(rpacket_trackers)[source]¶
 Generates a dataframe from the rpacket_trackers list of RPacketCollection Objects.
- Parameters:
 - rpacket_trackersnumba.typed.typedlist.List
 list of individual RPacketCollection class objects
- Returns:
 - pandas.core.frame.DataFrame
 Dataframe containing properties of RPackets as columns like status, seed, r, nu, mu, energy, shell_id, interaction_type