Celeritas  0.5.0-56+6b053cd
Namespaces | Macros
Units.hh File Reference

Unit definitions. More...

#include "corecel/Config.hh"
#include "corecel/Types.hh"
This graph shows which files directly or indirectly include this file:

Namespaces

 celeritas::units
 Units in Celeritas for macro-scale quantities.
 

Macros

#define CELER_ICRT   inline constexpr real_type
 

Variables

Units with numerical value defined to be 1 for CGS
constexpr real_type celeritas::units::centimeter = 1
 Length.
 
constexpr real_type celeritas::units::gram = 1
 Mass.
 
constexpr real_type celeritas::units::second = 1
 Time.
 
constexpr real_type celeritas::units::gauss = 1
 Field strength.
 
constexpr real_type celeritas::units::kelvin = 1
 Temperature.
 
Exact unit transformations to SI units
constexpr real_type celeritas::units::meter = 100 * centimeter
 
constexpr real_type celeritas::units::kilogram = 1000 * gram
 
constexpr real_type celeritas::units::tesla = 10000 * gauss
 
Exact unit transformations using SI unit definitions
constexpr real_type celeritas::units::newton = kilogram * meter / (second * second)
 
constexpr real_type celeritas::units::joule = newton * meter
 
constexpr real_type celeritas::units::coulomb = kilogram / (tesla * second)
 
constexpr real_type celeritas::units::ampere = coulomb / second
 
constexpr real_type celeritas::units::volt = joule / coulomb
 
constexpr real_type celeritas::units::farad = coulomb / volt
 
CLHEP units
constexpr real_type celeritas::units::millimeter = real_type(0.1) * centimeter
 
constexpr real_type celeritas::units::nanosecond = real_type(1e-9) * second
 
Other common units
constexpr real_type celeritas::units::micrometer = real_type(1e-4) * centimeter
 
constexpr real_type celeritas::units::nanometer = real_type(1e-7) * centimeter
 
constexpr real_type celeritas::units::femtometer = real_type(1e-13) * centimeter
 
constexpr real_type celeritas::units::barn = real_type(1e-24) * centimeter * centimeter
 

Detailed Description

Unit definitions.