criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
Loading...
Searching...
No Matches
Variables
criptic::units Namespace Reference

A namespace to hold unit conversions. More...

Variables

static constexpr Real amu = GSL_CONST_CGSM_UNIFIED_ATOMIC_MASS
 
static constexpr Real eV = GSL_CONST_CGSM_ELECTRON_VOLT
 
static constexpr Real pc = GSL_CONST_CGSM_PARSEC
 
static constexpr Real lyr = GSL_CONST_CGSM_LIGHT_YEAR
 
static constexpr Real mb = 1e-27
 
static constexpr Real cm = 1.0
 
static constexpr Real m = 100.0
 
static constexpr Real kg = 1000.0
 
static constexpr Real g = 1.0
 
static constexpr Real keV = 1e3*eV
 
static constexpr Real MeV = 1e6*eV
 
static constexpr Real GeV = 1e9*eV
 
static constexpr Real TeV = 1e12*eV
 
static constexpr Real PeV = 1e15*eV
 
static constexpr Real hr = 3600.0
 
static constexpr Real day = 24.0 * hr
 
static constexpr Real yr = 365.25 * day
 
static constexpr Real kyr = 1e3*yr
 
static constexpr Real Myr = 1e6*yr
 

Detailed Description

A namespace to hold unit conversions.

Variable Documentation

◆ amu

constexpr Real criptic::units::amu = GSL_CONST_CGSM_UNIFIED_ATOMIC_MASS
staticconstexpr

1 amu

◆ cm

constexpr Real criptic::units::cm = 1.0
staticconstexpr

1 cm

◆ day

constexpr Real criptic::units::day = 24.0 * hr
staticconstexpr

1 day in seconds

◆ eV

constexpr Real criptic::units::eV = GSL_CONST_CGSM_ELECTRON_VOLT
staticconstexpr

1 eV

◆ g

constexpr Real criptic::units::g = 1.0
staticconstexpr

1 g

◆ GeV

constexpr Real criptic::units::GeV = 1e9*eV
staticconstexpr

1 GeV

◆ hr

constexpr Real criptic::units::hr = 3600.0
staticconstexpr

1 hr in seconds

◆ keV

constexpr Real criptic::units::keV = 1e3*eV
staticconstexpr

1 keV

◆ kg

constexpr Real criptic::units::kg = 1000.0
staticconstexpr

1 kg

◆ kyr

constexpr Real criptic::units::kyr = 1e3*yr
staticconstexpr

1 kyr

◆ lyr

constexpr Real criptic::units::lyr = GSL_CONST_CGSM_LIGHT_YEAR
staticconstexpr

1 light year

◆ m

constexpr Real criptic::units::m = 100.0
staticconstexpr

1 m

◆ mb

constexpr Real criptic::units::mb = 1e-27
staticconstexpr

1 millibarn

◆ MeV

constexpr Real criptic::units::MeV = 1e6*eV
staticconstexpr

1 MeV

◆ Myr

constexpr Real criptic::units::Myr = 1e6*yr
staticconstexpr

1 Myr

◆ pc

constexpr Real criptic::units::pc = GSL_CONST_CGSM_PARSEC
staticconstexpr

1 pc

◆ PeV

constexpr Real criptic::units::PeV = 1e15*eV
staticconstexpr

1 PeV

◆ TeV

constexpr Real criptic::units::TeV = 1e12*eV
staticconstexpr

1 TeV

◆ yr

constexpr Real criptic::units::yr = 365.25 * day
staticconstexpr

1 year in seconds