Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
shamunits::Constants< T >::Si Struct Reference

Physical constant in SI units. More...

#include <shamunits/include/shamunits/Constants.hpp>

Static Public Attributes

static constexpr T delta_nu_cs = 9192631770
 get delta_nu_cs in the si unit system (s-1)
 
static constexpr T c = 299792458
 get c in the si unit system (m.s-1)
 
static constexpr T h = 6.62607015e-34
 get h in the si unit system (J.s-1)
 
static constexpr T e = 1.602176634e-19
 get e in the si unit system (C)
 
static constexpr T k = 1.380649e-23
 get k in the si unit system (J.K-1 )
 
static constexpr T Na = 6.02214076e23
 get Na in the si unit system (mol-1 )
 
static constexpr T Kcd = 683
 get Kcd in the si unit system (lm.W-1)
 
static constexpr T G = 6.6743015e-11
 get the value of G in the si unit system (N.m2.kg-2)
 
static constexpr T hbar = h / (2 * pi<T>)
 get the value of hbar in the si unit system (J.s-1)
 
static constexpr T mu_0 = 1.2566370621219e-6
 get the value of mu_0 in the si unit system (N.A-2)
 
static constexpr T Z_0 = mu_0 * c
 get the value of Z_0 in the si unit system (Ohm)
 
static constexpr T epsilon_0 = 1 / (Z_0 * c)
 get the value of epsilon_0 in the si unit system (F.m-1)
 
static constexpr T ke = 1 / (4 * pi<T> * epsilon_0)
 get the value of ke in the si unit system (N.m2.C-2)
 
static constexpr T kb = 1.380649e-23
 get the value of kb in the si unit system (J.K-1)
 
static constexpr T sigma = 5.670374419e-8
 Stephan Boltzmann constant (W.m-2.K-4)
 
static constexpr T second = 1
 
static constexpr T minute = Conv::mn_to_s
 
static constexpr T hour = Conv::hr_to_s
 get the value of a hour in the time unit of the si unit system (s)
 
static constexpr T day = Conv::dy_to_s
 get the value of a day in the time unit of the si unit system (s)
 
static constexpr T year = Conv::yr_to_s
 get the value of a year in the time unit of the si unit system (s)
 
static constexpr T astronomical_unit = Conv::au_to_m
 get the value of an astronomical_unit in the distance unit of the si unit system (m)
 
static constexpr T au = astronomical_unit
 get the value of an au in the distance unit of the si unit system (m)
 
static constexpr T light_year = Conv::ly_to_m
 get the value of a light_year in the distance unit of the si unit system (m)
 
static constexpr T parsec = Conv::pc_to_m
 get the value of a parsec in the distance unit of the si unit system (m)
 
static constexpr T solar_radius = Conv::rsol_to_m
 get the value of a solar radius in the distance unit of the si unit system (m)
 
static constexpr T earth_radius = Conv::rearth_to_m
 get the value of one earth equatorial radius in the distance unit of the si unit system (m)
 
static constexpr T planck_length = 1.61625518e-35
 get the value of a planck_length in the distance unit of the si unit system (m)
 
static constexpr T proton_mass = 1.67262192e-27
 get the value of a proton_mass in the mass unit of the si unit system (kg)
 
static constexpr T electron_mass = proton_mass * electron_proton_ratio<T>
 get the value of a electron_mass in the mass unit of the si unit system (kg)
 
static constexpr T earth_mass = 5.9722e24
 get the value of a earth_mass in the mass unit of the si unit system (kg)
 
static constexpr T jupiter_mass = 1.898e27
 get the value of a jupiter_mass in the mass unit of the si unit system (kg)
 
static constexpr T sol_mass = 1.98847e30
 get the value of a sol_mass in the mass unit of the si unit system (kg)
 
static constexpr T planck_mass = 2.17643424e-8
 get the value of a planck_mass in the mass unit of the si unit system (kg)
 
static constexpr T dalton = 1.66053906892e-27
 
static constexpr T guiness_density = Conv::gcm3_to_guiness_density * 1000
 get the value of a guiness_density in the density of the si unit system (kg.m-3)
 

Detailed Description

template<class T>
struct shamunits::Constants< T >::Si

Physical constant in SI units.

Definition at line 118 of file Constants.hpp.

Member Data Documentation

◆ astronomical_unit

template<class T >
shamunits::Constants< T >::Si::astronomical_unit = Conv::au_to_m
staticconstexpr

get the value of an astronomical_unit in the distance unit of the si unit system (m)

Definition at line 147 of file Constants.hpp.

◆ au

template<class T >
shamunits::Constants< T >::Si::au = astronomical_unit
staticconstexpr

get the value of an au in the distance unit of the si unit system (m)

Definition at line 148 of file Constants.hpp.

◆ c

template<class T >
shamunits::Constants< T >::Si::c = 299792458
staticconstexpr

get c in the si unit system (m.s-1)

Definition at line 122 of file Constants.hpp.

◆ dalton

template<class T >
constexpr T shamunits::Constants< T >::Si::dalton = 1.66053906892e-27
staticconstexpr

Definition at line 161 of file Constants.hpp.

◆ day

template<class T >
shamunits::Constants< T >::Si::day = Conv::dy_to_s
staticconstexpr

get the value of a day in the time unit of the si unit system (s)

Definition at line 144 of file Constants.hpp.

◆ delta_nu_cs

template<class T >
shamunits::Constants< T >::Si::delta_nu_cs = 9192631770
staticconstexpr

get delta_nu_cs in the si unit system (s-1)

Definition at line 121 of file Constants.hpp.

◆ e

template<class T >
shamunits::Constants< T >::Si::e = 1.602176634e-19
staticconstexpr

get e in the si unit system (C)

Definition at line 124 of file Constants.hpp.

◆ earth_mass

template<class T >
shamunits::Constants< T >::Si::earth_mass = 5.9722e24
staticconstexpr

get the value of a earth_mass in the mass unit of the si unit system (kg)

Definition at line 157 of file Constants.hpp.

◆ earth_radius

template<class T >
shamunits::Constants< T >::Si::earth_radius = Conv::rearth_to_m
staticconstexpr

get the value of one earth equatorial radius in the distance unit of the si unit system (m)

Definition at line 152 of file Constants.hpp.

◆ electron_mass

template<class T >
shamunits::Constants< T >::Si::electron_mass = proton_mass * electron_proton_ratio<T>
staticconstexpr

get the value of a electron_mass in the mass unit of the si unit system (kg)

Definition at line 156 of file Constants.hpp.

◆ epsilon_0

template<class T >
shamunits::Constants< T >::Si::epsilon_0 = 1 / (Z_0 * c)
staticconstexpr

get the value of epsilon_0 in the si unit system (F.m-1)

Definition at line 134 of file Constants.hpp.

◆ G

template<class T >
shamunits::Constants< T >::Si::G = 6.6743015e-11
staticconstexpr

get the value of G in the si unit system (N.m2.kg-2)

Definition at line 130 of file Constants.hpp.

◆ guiness_density

template<class T >
shamunits::Constants< T >::Si::guiness_density = Conv::gcm3_to_guiness_density * 1000
staticconstexpr

get the value of a guiness_density in the density of the si unit system (kg.m-3)

Definition at line 163 of file Constants.hpp.

◆ h

template<class T >
shamunits::Constants< T >::Si::h = 6.62607015e-34
staticconstexpr

get h in the si unit system (J.s-1)

Definition at line 123 of file Constants.hpp.

◆ hbar

template<class T >
shamunits::Constants< T >::Si::hbar = h / (2 * pi<T>)
staticconstexpr

get the value of hbar in the si unit system (J.s-1)

Definition at line 131 of file Constants.hpp.

◆ hour

template<class T >
shamunits::Constants< T >::Si::hour = Conv::hr_to_s
staticconstexpr

get the value of a hour in the time unit of the si unit system (s)

Definition at line 143 of file Constants.hpp.

◆ jupiter_mass

template<class T >
shamunits::Constants< T >::Si::jupiter_mass = 1.898e27
staticconstexpr

get the value of a jupiter_mass in the mass unit of the si unit system (kg)

Definition at line 158 of file Constants.hpp.

◆ k

template<class T >
shamunits::Constants< T >::Si::k = 1.380649e-23
staticconstexpr

get k in the si unit system (J.K-1 )

Definition at line 125 of file Constants.hpp.

◆ kb

template<class T >
shamunits::Constants< T >::Si::kb = 1.380649e-23
staticconstexpr

get the value of kb in the si unit system (J.K-1)

Definition at line 136 of file Constants.hpp.

◆ Kcd

template<class T >
shamunits::Constants< T >::Si::Kcd = 683
staticconstexpr

get Kcd in the si unit system (lm.W-1)

Definition at line 127 of file Constants.hpp.

◆ ke

template<class T >
shamunits::Constants< T >::Si::ke = 1 / (4 * pi<T> * epsilon_0)
staticconstexpr

get the value of ke in the si unit system (N.m2.C-2)

Definition at line 135 of file Constants.hpp.

◆ light_year

template<class T >
shamunits::Constants< T >::Si::light_year = Conv::ly_to_m
staticconstexpr

get the value of a light_year in the distance unit of the si unit system (m)

Definition at line 149 of file Constants.hpp.

◆ minute

template<class T >
constexpr T shamunits::Constants< T >::Si::minute = Conv::mn_to_s
staticconstexpr

Definition at line 142 of file Constants.hpp.

◆ mu_0

template<class T >
shamunits::Constants< T >::Si::mu_0 = 1.2566370621219e-6
staticconstexpr

get the value of mu_0 in the si unit system (N.A-2)

Definition at line 132 of file Constants.hpp.

◆ Na

template<class T >
shamunits::Constants< T >::Si::Na = 6.02214076e23
staticconstexpr

get Na in the si unit system (mol-1 )

Definition at line 126 of file Constants.hpp.

◆ parsec

template<class T >
shamunits::Constants< T >::Si::parsec = Conv::pc_to_m
staticconstexpr

get the value of a parsec in the distance unit of the si unit system (m)

Definition at line 150 of file Constants.hpp.

◆ planck_length

template<class T >
shamunits::Constants< T >::Si::planck_length = 1.61625518e-35
staticconstexpr

get the value of a planck_length in the distance unit of the si unit system (m)

Definition at line 153 of file Constants.hpp.

◆ planck_mass

template<class T >
shamunits::Constants< T >::Si::planck_mass = 2.17643424e-8
staticconstexpr

get the value of a planck_mass in the mass unit of the si unit system (kg)

Definition at line 160 of file Constants.hpp.

◆ proton_mass

template<class T >
shamunits::Constants< T >::Si::proton_mass = 1.67262192e-27
staticconstexpr

get the value of a proton_mass in the mass unit of the si unit system (kg)

Definition at line 155 of file Constants.hpp.

◆ second

template<class T >
constexpr T shamunits::Constants< T >::Si::second = 1
staticconstexpr

Definition at line 141 of file Constants.hpp.

◆ sigma

template<class T >
shamunits::Constants< T >::Si::sigma = 5.670374419e-8
staticconstexpr

Stephan Boltzmann constant (W.m-2.K-4)

get the value of sigma (Stephan Boltzmann constant) in the si unit system (W.m-2.K-4)

Definition at line 139 of file Constants.hpp.

◆ sol_mass

template<class T >
shamunits::Constants< T >::Si::sol_mass = 1.98847e30
staticconstexpr

get the value of a sol_mass in the mass unit of the si unit system (kg)

Definition at line 159 of file Constants.hpp.

◆ solar_radius

template<class T >
shamunits::Constants< T >::Si::solar_radius = Conv::rsol_to_m
staticconstexpr

get the value of a solar radius in the distance unit of the si unit system (m)

Definition at line 151 of file Constants.hpp.

◆ year

template<class T >
shamunits::Constants< T >::Si::year = Conv::yr_to_s
staticconstexpr

get the value of a year in the time unit of the si unit system (s)

Definition at line 145 of file Constants.hpp.

◆ Z_0

template<class T >
shamunits::Constants< T >::Si::Z_0 = mu_0 * c
staticconstexpr

get the value of Z_0 in the si unit system (Ohm)

Definition at line 133 of file Constants.hpp.


The documentation for this struct was generated from the following file: