Namespaces | Variables
aspect::constants Namespace Reference




constexpr double year_in_seconds = 60*60*24*365.2425
constexpr double celsius_to_kelvin = 273.15
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/

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.

§ gas_constant

constexpr double aspect::constants::gas_constant = 8.3144621

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

Definition at line 62 of file global.h.

§ avogadro

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

Avogadro's constant [mol^-1]

Definition at line 66 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 74 of file global.h.