tardis.montecarlo.montecarlo_numba.calculate_distances module¶
- tardis.montecarlo.montecarlo_numba.calculate_distances.calculate_distance_boundary(r, mu, r_inner, r_outer)[source]¶
Calculate distance to shell boundary in cm.
- Parameters
- rfloat
radial coordinate of the RPacket
- mufloat
cosine of the direction of movement
- r_innerfloat
inner radius of current shell
- r_outerfloat
outer radius of current shell
- tardis.montecarlo.montecarlo_numba.calculate_distances.calculate_distance_electron(electron_density, tau_event)[source]¶
Calculate distance to Thomson Scattering
- Parameters
- electron_densityfloat
- tau_eventfloat
- tardis.montecarlo.montecarlo_numba.calculate_distances.calculate_distance_line(r_packet, comov_nu, is_last_line, nu_line, time_explosion)[source]¶
Calculate distance until RPacket is in resonance with the next line
- Parameters
- r_packettardis.montecarlo.montecarlo_numba.r_packet.RPacket
- comov_nufloat
comoving frequency at the CURRENT position of the RPacket
- is_last_linebool
return MISS_DISTANCE if at the end of the line list
- nu_linefloat
line to check the distance to
- time_explosionfloat
time since explosion in seconds