tardis.transport.montecarlo.packets.virtual_packet module

class tardis.transport.montecarlo.packets.virtual_packet.VPacket(*args, **kwargs)[source]

Bases: VPacket

Initialize virtual packet for Monte Carlo transport.

Parameters:
rfloat

Initial radius [cm].

mufloat

Initial directional cosine.

nufloat

Initial frequency [Hz].

energyfloat

Initial energy [erg].

current_shell_idint

Current shell index.

next_line_idint

Next line interaction index.

indexint, optional

Packet index, by default 0.

class_type = jitclass.VPacket#7f8884516350<r:float64,mu:float64,nu:float64,energy:float64,next_line_id:int64,current_shell_id:int64,status:int64,index:int64>
tardis.transport.montecarlo.packets.virtual_packet.trace_vpacket(v_packet, numba_radial_1d_geometry, time_explosion, opacity_state, tau_russian, survival_probability, enable_full_relativity)[source]

Trace single vpacket.

Parameters:
v_packet
time_explosion
opacity_state
Returns:
tardis.transport.montecarlo.packets.virtual_packet.trace_vpacket_volley(r_packet, vpacket_collection, numba_radial_1d_geometry, time_explosion, opacity_state, enable_full_relativity, tau_russian, survival_probability)[source]

Shoot a volley of vpackets (the vpacket collection specifies how many) from the current position of the rpacket.

Parameters:
r_packet[type]

[description]

vpacket_collection[type]

[description]

numba_radial_1d_geometry[type]

[description]

time_explosion[type]

[description]

opacity_state[type]

[description]

tardis.transport.montecarlo.packets.virtual_packet.trace_vpacket_within_shell(v_packet, numba_radial_1d_geometry, time_explosion, opacity_state, enable_full_relativity)[source]

Trace VPacket within one shell (relatively simple operation)