|
16 | 16 |
|
17 | 17 | namespace OMEGA { |
18 | 18 |
|
| 19 | +// Mathematical constants |
| 20 | +constexpr Real Pi = M_PI; // Pi |
| 21 | +constexpr Real TwoPi = 2.0 * M_PI; // 2*Pi |
| 22 | + |
19 | 23 | // Earth constants |
20 | | -constexpr Real Gravity = 9.80616; // Acceleration due to gravity ~ m/s^2 |
21 | | -constexpr Real Pi = M_PI; // Pi |
22 | | -constexpr Real TwoPi = 2.0 * M_PI; // 2*Pi |
23 | | -constexpr Real CDay = 86400.0; // Seconds in a calendar day ~ sec |
24 | | -constexpr Real SDay = 86164.0; // Seconds in a sidereal day ~ sec |
| 24 | +constexpr Real Gravity = 9.80665; // Acceleration due to gravity ~ m/s^2 |
| 25 | +constexpr Real CDay = 86400.0; // Seconds in a calendar day ~ sec |
| 26 | +constexpr Real SDay = 86164.0; // Seconds in a sidereal day ~ sec |
25 | 27 | constexpr Real Omega = |
26 | 28 | 2.0 * Pi / SDay; // Angular velocity of the Earth ~ rad/sec |
27 | 29 | constexpr Real REarth = 6.37122e6; // Mean radius of the Earth ~ m |
@@ -51,8 +53,10 @@ constexpr Real Emiss = 1.0; // Emissivity ~ dimensionless |
51 | 53 | constexpr Real AtmRefP = 101325.0; // Reference atmospheric pressure ~ Pa |
52 | 54 |
|
53 | 55 | // Conversion factors |
54 | | -constexpr Real Sec2Day = 1.0 / 86400.0; // Seconds to days |
55 | | -constexpr Real Day2Sec = 86400.0; // Days to seconds |
| 56 | +constexpr Real Sec2Day = 1.0 / 86400.0; // Seconds to days |
| 57 | +constexpr Real Day2Sec = 86400.0; // Days to seconds |
| 58 | +constexpr Real Rad2Deg = 57.29577951308232; // Radians to degrees |
| 59 | +constexpr Real Deg2Rad = 0.017453292519943295; // Degrees to radians |
56 | 60 | constexpr Real Salt2PPt = 1000.0; // Salinity (kg/kg) to parts per thousand |
57 | 61 | constexpr Real PPt2Salt = 1.0e-3; // Parts per thousand to salinity (kg/kg) |
58 | 62 | constexpr Real Mass2Sv = 1.0e-12; // Mass flux (kg/s) to Sverdrup |
|
0 commit comments