Reworked Katrin Geometrics.
Added creation of T3+ clusters. Added diss. recombination fo T3+ + e-
This commit is contained in:
+11
-11
@@ -29,23 +29,23 @@ private:
|
||||
|
||||
|
||||
inline double Excitation_Base::get_macroSigma_m2(const Particle &interPart) {
|
||||
double Ekin_eV = interPart.get_EKin_eV();
|
||||
double microSigma_m2 = get_microSigma_m2(Ekin_eV);
|
||||
vec3 loc_m = interPart.get_Location_m();
|
||||
double E_eV = interPart.get_E_eV();
|
||||
double microSigma_m2 = get_microSigma_m2(E_eV);
|
||||
vec3 loc_m = interPart.get_x_m();
|
||||
double n_m3 = Population->get_density_m3(loc_m);
|
||||
return microSigma_m2*n_m3;
|
||||
}
|
||||
|
||||
inline InteractionOut Excitation_Base::do_Interaction (Particle *interPart) {
|
||||
vec3 vOff_ms = get_vOff_ms(*interPart, deltaE_eV);
|
||||
vec3 vLab_ms = interPart->get_Speed_ms() - vOff_ms;
|
||||
double EkinLab_eV = calc_Ekin_eV_from_speed(vLab_ms, me_eV);
|
||||
vec3 vLab_ms = interPart->get_v_ms() - vOff_ms;
|
||||
double EkinLab_eV = calc_E_eV_from_v_ms(vLab_ms, me_eV);
|
||||
double EkinLabNew_eV = EkinLab_eV - deltaE_eV;
|
||||
double theta_lab = dcs_gen->get_theta(EkinLab_eV);
|
||||
double phi_lab = rngUni->random() * 2 * pi;
|
||||
vec3 n0 = calc_newDirection(vLab_ms, theta_lab, phi_lab);
|
||||
vec3 vnew_ms = n0 * calc_Speed_from_Ekin_eV(EkinLabNew_eV, me_eV) + vOff_ms;
|
||||
interPart->set_Speed_ms(vnew_ms);
|
||||
vec3 n0 = calc_n_new(vLab_ms, theta_lab, phi_lab);
|
||||
vec3 vnew_ms = n0 * calc_v_ms_from_E_eV(EkinLabNew_eV, me_eV) + vOff_ms;
|
||||
interPart->set_v_ms(vnew_ms);
|
||||
|
||||
return InteractionOut();
|
||||
}
|
||||
@@ -58,11 +58,11 @@ public:
|
||||
tcs_data(scale_start, scale_end, 1e3, get_data_path() + load_file_name) {};
|
||||
|
||||
private:
|
||||
double get_microSigma_m2(const double &Ekin_eV) {
|
||||
if (Ekin_eV < deltaE_eV) {
|
||||
double get_microSigma_m2(const double &E_eV) {
|
||||
if (E_eV < deltaE_eV) {
|
||||
return 0;
|
||||
} else {
|
||||
return tcs_data.get_value(Ekin_eV);
|
||||
return tcs_data.get_value(E_eV);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user