Added Ionization Channels for e+T2 -> now 3 Processes from Janev are available:
eT2_T2I_Ionization_Janev_(label) 1. non dissoziative labeled as ndiss 2. dissoziative via X2 Sigma^+_g labeled as diss_g 3. dissoziative via B2 Sigma^+_u labeled as diss_u Added more Excitation Channels e + T2 from Janev
This commit is contained in:
@@ -20,7 +20,7 @@ typedef blitz::TinyVector<double,3> vec3;
|
||||
|
||||
|
||||
inline double vec3Abs(const vec3 &vec) {
|
||||
return( sqrt( pow(vec[0],2) + pow(vec[1],2) + pow(vec[2],2)) );
|
||||
return sqrt( pow(vec[0],2) + pow(vec[1],2) + pow(vec[2],2));
|
||||
}
|
||||
|
||||
inline double calc_gamma_from_beta(const double &beta) {
|
||||
@@ -34,7 +34,7 @@ inline double calc_gamma_from_beta(const double &beta) {
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
|
||||
return( pow(1 - pow(beta,2),-0.5) ) ;
|
||||
return pow(1 - pow(beta,2),-0.5);
|
||||
}
|
||||
|
||||
inline double calc_Ekin_eV_from_speed(const double &speed_ms, const double &mass_eV) {
|
||||
@@ -49,11 +49,11 @@ inline double calc_Ekin_eV_from_speed(const double &speed_ms, const double &mass
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
double gamma = calc_gamma_from_beta(beta);
|
||||
return ( (gamma-1) * mass_eV );
|
||||
return (gamma-1) * mass_eV;
|
||||
}
|
||||
|
||||
inline double calc_Ekin_eV_from_speed(const vec3 &speed_ms, const double &mass_eV) {
|
||||
return (calc_Ekin_eV_from_speed(vec3Abs(speed_ms), mass_eV));
|
||||
return calc_Ekin_eV_from_speed(vec3Abs(speed_ms), mass_eV);
|
||||
}
|
||||
|
||||
inline double calc_beta_from_gamma(const double &gamma) {
|
||||
@@ -62,7 +62,7 @@ inline double calc_beta_from_gamma(const double &gamma) {
|
||||
ss<<"calc_beta_from_gamma(): Input gamma ="<<gamma<<" smaller 1.";
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
return( sqrt(1 - pow(gamma,-2)) );
|
||||
return sqrt(1 - pow(gamma,-2));
|
||||
}
|
||||
|
||||
inline double calc_gamma_from_Ekin_eV(const double &Ekin_eV, const double &mass_eV) {
|
||||
@@ -71,11 +71,11 @@ inline double calc_gamma_from_Ekin_eV(const double &Ekin_eV, const double &mass_
|
||||
ss<<"calc_gamma_from_Ekin_eV(): Input Ekin_eV ="<<Ekin_eV<<" negative.";
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
return (1. + Ekin_eV/mass_eV);
|
||||
return 1 + Ekin_eV/mass_eV;
|
||||
}
|
||||
|
||||
inline double calc_beta_from_Ekin_eV(const double &Ekin_eV, const double &mass_eV) {
|
||||
return ( calc_beta_from_gamma(calc_gamma_from_Ekin_eV(Ekin_eV, mass_eV)) );
|
||||
return calc_beta_from_gamma(calc_gamma_from_Ekin_eV(Ekin_eV, mass_eV));
|
||||
}
|
||||
|
||||
inline double calc_Speed_from_Ekin_eV(const double &Ekin_eV, const double &mass_eV) {
|
||||
@@ -87,7 +87,7 @@ inline double calc_Speed_from_Ekin_eV(const double &Ekin_eV, const double &mass_
|
||||
|
||||
double gamma = calc_gamma_from_Ekin_eV(Ekin_eV, mass_eV);
|
||||
double beta = calc_beta_from_gamma(gamma);
|
||||
return(beta * c_ms);
|
||||
return beta*c_ms;
|
||||
}
|
||||
|
||||
inline vec3 calc_newDirection(const vec3 &direction_old, const double &theta_change, const double &phi_change) {
|
||||
@@ -107,22 +107,22 @@ inline vec3 calc_newDirection(const vec3 &direction_old, const double &theta_cha
|
||||
vNew = sin(theta_change)*sin(phi_change);
|
||||
wNew = cos(theta_change);
|
||||
}
|
||||
return(vec3(uNew, vNew, wNew));
|
||||
return vec3(uNew, vNew, wNew);
|
||||
}
|
||||
|
||||
inline double get_z_m(const vec3 &loc_m) {
|
||||
return (loc_m[2]);
|
||||
return loc_m[2];
|
||||
}
|
||||
|
||||
inline double get_r_m(const vec3 &loc_m) {
|
||||
return (sqrt(loc_m[0]*loc_m[0] + loc_m[1]*loc_m[1]));
|
||||
return sqrt(loc_m[0]*loc_m[0] + loc_m[1]*loc_m[1]);
|
||||
}
|
||||
|
||||
inline double get_phi(const vec3 &loc_m) {
|
||||
if (loc_m[1] >= 0) {
|
||||
return ( acos(loc_m[0]/get_r_m(loc_m)) );
|
||||
return acos(loc_m[0]/get_r_m(loc_m));
|
||||
} else {
|
||||
return ( 2*pi - acos(loc_m[0]/get_r_m(loc_m)) );
|
||||
return 2*pi - acos(loc_m[0]/get_r_m(loc_m));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user