https://github.com/teuben/nemo
Revision d0f673bdaeabe8dffa77528c13d81063a20d29f6 authored by Peter Teuben on 03 April 2024, 01:39:10 UTC, committed by Peter Teuben on 03 April 2024, 01:39:10 UTC
1 parent 0615225
Tip revision: d0f673bdaeabe8dffa77528c13d81063a20d29f6 authored by Peter Teuben on 03 April 2024, 01:39:10 UTC
format
format
Tip revision: d0f673b
mks.h
/*
* Some fundamental physical constants - mks units
*
* See also:
* "The Fundamental Physical Constants" by
* E. Richard Cohen and Barry N. Taylor
* (PHYICS TODAY, August 1989, Austus 1994)
* https://physics.nist.gov/
*/
#define c_MKS 299792458.0000 /* speed of light [m/s] */
#define k_MKS 1.380649e-23 /* Boltzmann [J/K] */
#define h_MKS 6.62607015e-34 /* Planck [J-s] */
#define G_MKS 6.67430e-11 /* Newton's Gravitational Constant "G" [N m^2/kg^2] 6.674 30 */
#define g_MKS 9.80665 /* standard acceleration of gravity */
#define M_SOLAR 1.989e30 /* Mass of Sun [kg] */
#define L_SOLAR 3.827e26 /* Luminosity of Sun [W] */
#define R_SOLAR 6.96e8 /* Radius of Sun [m] */
#define M_EARTH 5.974e24 /* Mass of earth [kg] */
/* #define AU 1.49597870691e11 Astronomical Unit [m] */
#define AU 1.49597870700e11 /* AU as per IAU 2012 definition */
#define PC 3.0856e16 /* Parsec [m] */
#define HI_MHz 1420.40575177 /* 21cm (21.10611405413 cm) line of HI */
/*
* 1au = exactly 149597870700 metres, in agreement with the value adopted in IAU 2009 Resolution B2
* 1pc = 648000/pi AU (IAU 2015 Resolution B2) = 3.085677581491367e+16
*/
Computing file changes ...