|
criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
|
A class that holds data to describe a CR packet. More...
#include <CRPacket.H>
Public Member Functions | |
| constexpr Real | Z () const |
| Particle charge. | |
| constexpr Real | m () const |
| Particle mass. | |
| constexpr bool | isSecondary () const |
| Is this a secondary packet? | |
| Real | gamma () const |
| Lorentz factor of packet. | |
| Real | T () const |
| Kinetic energy of packet. | |
| void | set_T (const Real T) |
| Set the momentum of the packet by specifying its kinetic energy. | |
| Real | E () const |
| Total energy of packet. | |
| Real | v () const |
| Velocity of packet. | |
| Real | R () const |
| Rigidity of packet. | |
| Real | dT_dp () const |
| Derivative of kinetic energy with respect to momentum. | |
| Real | wG (const Real B) const |
| Compute gyrofrequency of packet. | |
| Real | rG (const Real B) const |
| Compute gyroradius of packet. | |
Public Attributes | |
| partTypes::pType | type |
| IdxType | src |
| IdxType | uniqueID |
| Real | tInj |
| Real | wInj |
| Real | p |
| Real | w |
| Real | gr |
Static Public Attributes | |
| static constexpr IdxType | noSrc = maxIdx |
| static constexpr IdxType | secondaryFlag = ~(noSrc >> 1) |
A class that holds data to describe a CR packet.
This is a trivial class that holds data on CR packets. It provides some convenience functions to do special relativistic conversions of CR packet properties. All quantities are in code internal units, where m_proton = 1, c = 1, and e = 1.
|
inline |
Derivative of kinetic energy with respect to momentum.
|
inline |
Total energy of packet.
|
inline |
Lorentz factor of packet.
|
inlineconstexpr |
Is this a secondary packet?
|
inlineconstexpr |
Particle mass.
|
inline |
Rigidity of packet.
Compute gyroradius of packet.
| B | Magnetic field strength |
The gyroradius returned is in units of cm or m depending whether the code is compiled in CGS or MKS mode. If pitch angle tracking is off, the gyroradius returns is the mean for a population with an isotropic pitch angle distribution.
|
inline |
Set the momentum of the packet by specifying its kinetic energy.
| T | Kinetic energy of the packet |
|
inline |
Kinetic energy of packet.
|
inline |
Velocity of packet.
Compute gyrofrequency of packet.
| B | Magnetic field strength |
The angular frequency is returned in units of s^-1
|
inlineconstexpr |
Particle charge.
| Real criptic::CRPacket::gr |
grammage traversed
Flag for a packet with no source
| Real criptic::CRPacket::p |
momentum
Flag for a packet that is a secondary
| IdxType criptic::CRPacket::src |
index of source
| Real criptic::CRPacket::tInj |
injection time
| partTypes::pType criptic::CRPacket::type |
type of particle
| IdxType criptic::CRPacket::uniqueID |
unique ID number
| Real criptic::CRPacket::w |
statistical weight
| Real criptic::CRPacket::wInj |
statistical weight at injection