Many, many more comments
This commit is contained in:
@@ -2,9 +2,13 @@
|
||||
#define T2_BETA_DECAY_H
|
||||
|
||||
namespace T2BetaDecay {
|
||||
static const double lambda_T2 = 1.78405E-9; // tritium decay constant (1/s)
|
||||
static const double E0_T = 18.573e3; // Tritium endpoint energy (eV)
|
||||
static const double spectrum_prefactor = 1.2072343416696292E-47; // beta decay constant
|
||||
// tritium decay constant (1/s)
|
||||
static const double lambda_T2 = 1.78405E-9;
|
||||
// Tritium endpoint energy (eV)
|
||||
static const double E0_T = 18.573e3;
|
||||
// beta decay constant used in the fermi spectrum
|
||||
static const double spectrum_prefactor = 1.2072343416696292E-47;
|
||||
// maximum value of the fermi spectrum
|
||||
static const double spectrum_maximum = 1.5E-28;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef PHYSICAL_CONSTANTS_H
|
||||
#define PHYSICAL_CONSTANTS_H
|
||||
|
||||
// The default is (Gaussian) CGS units
|
||||
// Constants in CGS units
|
||||
namespace CGS {
|
||||
static const double me = 9.1094e-28; // Electron mass (g)
|
||||
static const double mp = 1.6726231e-24; // Proton mass (g)
|
||||
@@ -21,7 +21,7 @@ static const double G = 6.67428e-8; // Gravitational constant cm^3/(g sec^2)
|
||||
|
||||
}; // namespace CGS
|
||||
|
||||
// Constants in SI
|
||||
// Constants in SI (default)
|
||||
namespace SI {
|
||||
static const double me = 9.1094e-31; // Electron mass (kg)
|
||||
static const double mp = 1.6726e-27; // Proton mass (kg)
|
||||
|
||||
@@ -3,12 +3,17 @@
|
||||
|
||||
#include <limits>
|
||||
|
||||
// constants due to numercial accuracy
|
||||
namespace SimConstants {
|
||||
// minimal value for a cross section
|
||||
static const double minimal_cross_section =
|
||||
std::numeric_limits<double>::min() * 1E5;
|
||||
// minimal value for a cross section scaled by density
|
||||
static const double minimal_macroscopic_cross_section =
|
||||
std::numeric_limits<double>::min() * 1E5;
|
||||
// arbitrarily chosen value to serve as the lowest value possible (to exclude 0)
|
||||
static const double random_lower_limit = 1E-15;
|
||||
// double1 == double2 <=> abs(double1 - double2) <= compare_epsilon
|
||||
static const double compare_epsilon = 1E-10;
|
||||
|
||||
} // namespace SimConstants
|
||||
|
||||
Reference in New Issue
Block a user