criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
Loading...
Searching...
No Matches
Namespaces | Functions
SR.H File Reference

Special relativistic transformations. More...

#include <cmath>
#include "Types.H"
#include "PartTypes.H"

Go to the source code of this file.

Namespaces

namespace  criptic
 The primary namespace for criptic objects.
 
namespace  criptic::sr
 A namespace to hold special relativistic functions.
 

Functions

static Real criptic::sr::gamma_from_p (const Real m, const Real p)
 Compute Lorentz factor from rest mass and momentum.
 
static Real criptic::sr::gamma_from_T (const Real m, const Real T)
 Compute Lorentz factor from rest mass and kinetic energy.
 
static Real criptic::sr::gamma_from_E (const Real m, const Real E)
 Compute Lorentz factor from rest mass and total energy.
 
static Real criptic::sr::p_from_gamma (const Real m, const Real gamma)
 Compute momentum from rest mass and Lorentz factor.
 
static Real criptic::sr::p_from_T (const Real m, const Real T)
 Compute momentum from rest mass and kinetic energy.
 
static Real criptic::sr::p_from_E (const Real m, const Real E)
 Compute momentum from rest mass and total energy.
 
static Real criptic::sr::T_from_gamma (const Real m, const Real gamma)
 Compute kinetic energy from rest mass and Lorentz factor.
 
static Real criptic::sr::T_from_p (const Real m, const Real p)
 Compute kinetic energy from rest mass and momentum.
 
static Real criptic::sr::E_from_gamma (const Real m, const Real gamma)
 Compute total energy from rest mass and Lorentz factor.
 
static Real criptic::sr::E_from_p (const Real m, const Real p)
 Compute total energy from rest mass and momentum.
 
static Real criptic::sr::dT_dp (const Real m, const Real p)
 Compute derivative of kinetic energy with respect to momentum.
 
static Real criptic::sr::v_from_p (const Real m, const Real p)
 Compute velocity from momentum.
 
static Real criptic::sr::gamma_from_p (const partTypes::pType pt, const Real p)
 Compute Lorentz factor from particle type and momentum.
 
static Real criptic::sr::gamma_from_T (const partTypes::pType pt, const Real T)
 Compute Lorentz factor from particle type and kinetic energy.
 
static Real criptic::sr::p_from_gamma (const partTypes::pType pt, const Real gamma)
 Compute momentum from particle type and Lorentz factor.
 
static Real criptic::sr::p_from_T (const partTypes::pType pt, const Real T)
 Compute momentum from particle type and kinetic energy.
 
static Real criptic::sr::T_from_gamma (const partTypes::pType pt, const Real gamma)
 Compute kinetic energy from particle type and Lorentz factor.
 
static Real criptic::sr::T_from_p (const partTypes::pType pt, const Real p)
 Compute kinetic energy from particle type and momentum.
 
static Real criptic::sr::dT_dp (const partTypes::pType pt, const Real p)
 Compute derivative of kinetic energy with respect to momentum.
 
static Real criptic::sr::v_from_p (const partTypes::pType pt, const Real p)
 Compute particle velocity from particle type and momentum.
 
static Real criptic::sr::ECM (const Real mt, const Real mp, const Real T)
 Compute center of mass energy for collision with fixed target.
 
static Real criptic::sr::ECM (const partTypes::pType ptt, const partTypes::pType ptp, const Real T)
 Compute center of mass energy for collision with fixed target.
 

Detailed Description

Special relativistic transformations.

This file implements functions that carry out special relativistic tranformations between rest mass, momentum, kinetic energy, velocity, and Lorentz factor. All transformation are done in the internal criptic unit system where m_proton = 1 and c =

  1. Transformations use appropriate series expansions to ensure that errors are << 10^-6 regardless of whether gamma ~= 1 or gamma >> 1.
Author
Mark Krumholz