ASPECT
Namespaces | Variables
aspect::constants Namespace Reference

Namespaces

 earth
 
 mars
 

Variables

constexpr double year_in_seconds = 60*60*24*365.2425
 
constexpr double celsius_to_kelvin = 273.15
 
constexpr double degree_to_radians = ::numbers::PI / 180.
 
constexpr double radians_to_degree = 180. / ::numbers::PI
 
constexpr double gas_constant = 8.3144621
 
constexpr double avogadro = 6.02214129e23
 
constexpr double big_g = 6.67430e-11
 

Detailed Description

The following are a set of global constants which may be used by ASPECT: (for sources of data and values used by ASPECT, see source/global.cc)

Variable Documentation

◆ year_in_seconds

constexpr double aspect::constants::year_in_seconds = 60*60*24*365.2425
constexpr

Number of seconds in a year [s]

Definition at line 70 of file global.h.

◆ celsius_to_kelvin

constexpr double aspect::constants::celsius_to_kelvin = 273.15
constexpr

Zero degrees Celsius to Kelvin [K]

Definition at line 75 of file global.h.

◆ degree_to_radians

constexpr double aspect::constants::degree_to_radians = ::numbers::PI / 180.
constexpr

Convert angles in degree to radians.

Definition at line 80 of file global.h.

◆ radians_to_degree

constexpr double aspect::constants::radians_to_degree = 180. / ::numbers::PI
constexpr

Convert angles in radians to degrees.

Definition at line 85 of file global.h.

◆ gas_constant

constexpr double aspect::constants::gas_constant = 8.3144621
constexpr

Gas constant (also known as R) [J K^-1 mol^-1]

Definition at line 90 of file global.h.

◆ avogadro

constexpr double aspect::constants::avogadro = 6.02214129e23
constexpr

Avogadro's constant [mol^-1]

Definition at line 94 of file global.h.

◆ big_g

constexpr double aspect::constants::big_g = 6.67430e-11
constexpr

Gravitational constant [m^3 kg^-1 s^-2] Value: 6.67430(15)E-11 (standard uncertainty in parenthesis) Source: 2018 CODATA Value: Newtonian constants of gravitation. The NIST Reference on Constants, Units, and Uncertainty. NIST. 20 May 2019.

Definition at line 102 of file global.h.