This commit is contained in:
Christian
2019-07-19 14:46:49 +02:00
parent 9ea0f76237
commit 70b90690be
6 changed files with 78 additions and 71 deletions
+21 -30
View File
@@ -11,47 +11,38 @@
#include "error_types.h"
// See Janev p28 (74)
class Janev_eT2_VibExc0102 {
class Janev_eT2_VibExc {
double deltaE_eV, xi;
public:
Janev_eT2_VibExc0102() {}
static double get_TCS(const double &E_eV, const int &finale_state) {
if (E_eV<get_deltaE_eV(finale_state)) {
Janev_eT2_VibExc(int finale_state) {
if (finale_state == 1) {
deltaE_eV = 0.516;
xi = 1;
} else if (finale_state == 2) {
deltaE_eV = 1.003;
xi = 0.628;
} else {
std::stringstream ss;
ss<<"Janev_eT2_VibExc: finale_state = "<<finale_state<<" not defined. \n";
throw MyException (ss.str());
}
}
double get_TCS(const double &E_eV) {
if (E_eV<deltaE_eV) {
return 0;
}
double xi = get_xi(finale_state);
double deltaE_eV = get_deltaE_eV(finale_state);
double x = E_eV/deltaE_eV;
double fac1 = 5.78*xi*pow(deltaE_eV,-4)*pow(x,-2);
double fac2 = pow(1-1/x, 6.11*pow(deltaE_eV,-0.5));
return fac1*fac2*1e-20;
}
static double get_deltaE_eV(const int &finale_state) {
if (finale_state == 1) {
return 0.516;
} else if (finale_state == 2) {
return 1.003;
}
std::stringstream ss;
ss<<"Janev_eT2I_Recombination:get_deltaE_eV: finale_state != 1,2 \n";
throw MyException(ss.str());
double get_deltaE_eV() {
return deltaE_eV;
}
private:
static double get_xi(const int &finale_state) {
if (finale_state == 1) {
return 1;
} else if (finale_state == 2) {
return 0.628;
}
std::stringstream ss;
ss<<"Janev_eT2I_Recombination:get_xi: finale_state != 1,2 \n";
throw MyException(ss.str());
}
};