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

Number of seconds in a year [s]

Definition at line 52 of file global.h.

§ celsius_to_kelvin

constexpr double aspect::constants::celsius_to_kelvin = 273.15

Zero degrees Celsius to Kelvin [K]

Definition at line 57 of file global.h.

§ degree_to_radians

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

Convert angles in degree to radians.

Definition at line 62 of file global.h.

§ radians_to_degree

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

Convert angles in radians to degrees.

Definition at line 67 of file global.h.

§ gas_constant

constexpr double aspect::constants::gas_constant = 8.3144621

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

Definition at line 72 of file global.h.

§ avogadro

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

Avogadro's constant [mol^-1]

Definition at line 76 of file global.h.

§ big_g

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

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 84 of file global.h.