-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed physical constants in thor so not to clash with alf, which ca…
…n remain independent if needed
- Loading branch information
Showing
3 changed files
with
35 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
// Constants borrowed from Astropy | ||
// physical constants | ||
const double PI = 3.141592653589793; | ||
const double HCONST = 6.62607015e-34; // J s | ||
const double CSPEED = 299792458.0; // m / s | ||
const double KBOLTZMANN = 1.38064852e-23; // J / K | ||
const double STEFANBOLTZMANN = 5.6703744191844314e-08; // W / (K^4 m^2) | ||
|
||
|
||
// constants in MKS | ||
const double C = 299792458.0; // speed of light in m / s | ||
const double K_B = 1.38064852e-23; // Boltzmann constant in J / K | ||
const double H = 6.62607015e-34; // Planck constant in J s | ||
const double R_UNIV = 8.31446261815324; // universal gas constant in J / ( K mol ) | ||
const double SIGMA_SB = 5.6703744191844314e-08; // Stefan-Boltzmann constant in W / (K^4 m^2) | ||
const double AU = 149597870700.0; // astronomical unit in m | ||
const double AMU = 1.6605390666e-27; // atomic mass unit in kg | ||
const double C_th = 299792458.0; // speed of light in m / s | ||
const double K_B_th = 1.38064852e-23; // Boltzmann constant in J / K | ||
const double H_th = 6.62607015e-34; // Planck constant in J s | ||
const double R_UNIV_th = 8.31446261815324; // universal gas constant in J / ( K mol ) | ||
const double SIGMA_SB_th = 5.6703744191844314e-08; // Stefan-Boltzmann constant in W / (K^4 m^2) | ||
const double AU_th = 149597870700.0; // astronomical unit in m | ||
const double AMU_th = 1.6605390666e-27; // atomic mass unit in kg | ||
|
||
const double Mass_E = 9.1093837015e-31; // mass of electron in kg | ||
const double Mass_E_th = 9.1093837015e-31; // mass of electron in kg | ||
|
||
const double Q_E = 1.602176634e-19; // charge of electron in Coulomb | ||
const double R_SUN = 695700000.0; // solar radius in m | ||
const double M_SUN = 1.988409870698051e+30; // solar mass in kg | ||
const double R_JUP = 71492000.0; // radius Jupiter in m | ||
const double M_JUP = 1.8981245973360505e+27; // mass Jupiter in kg | ||
const double R_EARTH = 6378100.0; // radius Earth in m | ||
const double M_EARTH = 5.972167867791379e+24; // mass Earth in kg | ||
const double G = 6.6743e-11; // gravitational constant m^3 / ( kg s^2) | ||
const double GAMMA = 0.5772156649; // Euler-Mascheroni constant | ||
const double Q_E_th = 1.602176634e-19; // charge of electron in Coulomb | ||
const double R_SUN_th = 695700000.0; // solar radius in m | ||
const double M_SUN_th = 1.988409870698051e+30; // solar mass in kg | ||
const double R_JUP_th = 71492000.0; // radius Jupiter in m | ||
const double M_JUP_th = 1.8981245973360505e+27; // mass Jupiter in kg | ||
const double R_EARTH_th = 6378100.0; // radius Earth in m | ||
const double M_EARTH_th = 5.972167867791379e+24; // mass Earth in kg | ||
const double G_th = 6.6743e-11; // gravitational constant m^3 / ( kg s^2) | ||
const double GAMMA_th = 0.5772156649; // Euler-Mascheroni constant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters