Reworked Katrin Geometrics.
Added creation of T3+ clusters. Added diss. recombination fo T3+ + e-
This commit is contained in:
@@ -42,10 +42,10 @@ protected:
|
||||
};
|
||||
|
||||
inline InteractionOut eT2_T2I_Ionization_Base::do_Interaction (Particle *interPart) {
|
||||
vec3 v1_ms = interPart->get_Speed_ms();
|
||||
vec3 v1_ms = interPart->get_v_ms();
|
||||
vec3 vOff_ms = get_vOff_ms(*interPart, deltaE_eV);
|
||||
vec3 vLab_ms = v1_ms - vOff_ms;
|
||||
double T_eV = calc_Ekin_eV_from_speed(vLab_ms, me_eV);
|
||||
double T_eV = calc_E_eV_from_v_ms(vLab_ms, me_eV);
|
||||
|
||||
double W_eV = roll_ionW_eV(T_eV);
|
||||
double E1_eV = T_eV-EionT2_eV - W_eV;
|
||||
@@ -56,19 +56,19 @@ inline InteractionOut eT2_T2I_Ionization_Base::do_Interaction (Particle *interPa
|
||||
double theta1 = roll_theta1(T_eV, W_eV);
|
||||
double theta2 = roll_theta2(T_eV, W_eV);
|
||||
|
||||
double v1_lab_new_ms = calc_Speed_from_Ekin_eV(E1_eV, me_eV);
|
||||
double v2_lab_new_ms = calc_Speed_from_Ekin_eV(W_eV, me_eV);
|
||||
double v1_lab_new_ms = calc_v_ms_from_E_eV(E1_eV, me_eV);
|
||||
double v2_lab_new_ms = calc_v_ms_from_E_eV(W_eV, me_eV);
|
||||
|
||||
vec3 new_dir_1 = calc_newDirection(vLab_ms, theta1, phi1);
|
||||
vec3 new_dir_2 = calc_newDirection(vLab_ms, theta2, phi2);
|
||||
vec3 new_dir_1 = calc_n_new(vLab_ms, theta1, phi1);
|
||||
vec3 new_dir_2 = calc_n_new(vLab_ms, theta2, phi2);
|
||||
vec3 v1_new_ms = v1_lab_new_ms*new_dir_1 + vOff_ms;
|
||||
vec3 v2_new_ms = v2_lab_new_ms*new_dir_2 + vOff_ms;
|
||||
|
||||
interPart->set_Speed_ms(v1_new_ms);
|
||||
interPart->set_v_ms(v1_new_ms);
|
||||
|
||||
InteractionOut InterOut;
|
||||
vec3 loc_m = interPart->get_Location_m();
|
||||
Particle eNew = Particle_Builder::createElectron(loc_m, v2_new_ms, -1, interPart->get_Id());
|
||||
vec3 loc_m = interPart->get_x_m();
|
||||
Particle eNew = Particle_Builder::create_e(loc_m, v2_new_ms, -1, interPart->get_Id());
|
||||
|
||||
InterOut.add_new_particle(eNew);
|
||||
add_Tritiums(&InterOut, *interPart);
|
||||
@@ -76,8 +76,8 @@ inline InteractionOut eT2_T2I_Ionization_Base::do_Interaction (Particle *interPa
|
||||
}
|
||||
|
||||
inline double eT2_T2I_Ionization_Base::get_macroSigma_m2(const Particle &interPart) {
|
||||
double T_eV = interPart.get_EKin_eV();
|
||||
vec3 loc_m = interPart.get_Location_m();
|
||||
double T_eV = interPart.get_E_eV();
|
||||
vec3 loc_m = interPart.get_x_m();
|
||||
|
||||
double microSigma_m2 = calc_microSigma(T_eV);
|
||||
double nT2_m3 = Population->get_density_m3(loc_m);
|
||||
@@ -85,10 +85,10 @@ inline double eT2_T2I_Ionization_Base::get_macroSigma_m2(const Particle &interPa
|
||||
}
|
||||
|
||||
inline vec3 eT2_T2I_Ionization_Base::roll_vLab_ms(const Particle &interPart) {
|
||||
vec3 v_ms = interPart.get_Speed_ms();
|
||||
vec3 vT2_ms = Population->roll_speed_ms(interPart.get_Location_m());
|
||||
vec3 v_ms = interPart.get_v_ms();
|
||||
vec3 vT2_ms = Population->roll_v_ms(interPart.get_x_m());
|
||||
vec3 vLab_ms = v_ms - vT2_ms;
|
||||
double T_eV = calc_Ekin_eV_from_speed(vLab_ms, me_eV);
|
||||
double T_eV = calc_E_eV_from_v_ms(vLab_ms, me_eV);
|
||||
if (T_eV < EionT2_eV) { // Set Tritium Speed to 0 if unlucky roll
|
||||
return v_ms;
|
||||
} else {
|
||||
@@ -137,9 +137,9 @@ protected:
|
||||
|
||||
protected:
|
||||
void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) {
|
||||
vec3 loc_m = interPart.get_Location_m();
|
||||
vec3 vT_ms = Population->roll_speed_ms(loc_m);
|
||||
Particle T2I_new = Particle_Builder::createTritium2I(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
vec3 loc_m = interPart.get_x_m();
|
||||
vec3 vT_ms = Population->roll_v_ms(loc_m);
|
||||
Particle T2I_new = Particle_Builder::create_T2I(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
InterOut->add_new_particle(T2I_new);
|
||||
}
|
||||
};
|
||||
@@ -207,9 +207,9 @@ protected:
|
||||
}
|
||||
|
||||
void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) {
|
||||
vec3 loc_m = interPart.get_Location_m();
|
||||
vec3 vT_ms = Population->get_average_speed_ms(loc_m);
|
||||
Particle T2I_new = Particle_Builder::createTritium2I(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
vec3 loc_m = interPart.get_x_m();
|
||||
vec3 vT2_ms = Population->roll_v_ms(loc_m);
|
||||
Particle T2I_new = Particle_Builder::create_T2I(loc_m, vT2_ms, -1, interPart.get_Id());
|
||||
InterOut->add_new_particle(T2I_new);
|
||||
}
|
||||
};
|
||||
@@ -231,14 +231,14 @@ protected:
|
||||
}
|
||||
|
||||
void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) {
|
||||
vec3 loc_m = interPart.get_Location_m();
|
||||
vec3 loc_m = interPart.get_x_m();
|
||||
|
||||
vec3 vT_ms = Population->roll_speed_ms(loc_m);
|
||||
Particle newPart = Particle_Builder::createTritium(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
vec3 vT_ms = Population->roll_v_ms(loc_m);
|
||||
Particle newPart = Particle_Builder::create_T(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
InterOut->add_new_particle(newPart);
|
||||
|
||||
vT_ms = Population->roll_speed_ms(loc_m);
|
||||
newPart = Particle_Builder::createTritiumI(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
vT_ms = Population->roll_v_ms(loc_m);
|
||||
newPart = Particle_Builder::create_TI(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
InterOut->add_new_particle(newPart);
|
||||
}
|
||||
};
|
||||
@@ -260,14 +260,14 @@ protected:
|
||||
}
|
||||
|
||||
void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) {
|
||||
vec3 loc_m = interPart.get_Location_m();
|
||||
vec3 loc_m = interPart.get_x_m();
|
||||
|
||||
vec3 vT_ms = Population->roll_speed_ms(loc_m);
|
||||
Particle newPart = Particle_Builder::createTritium(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
vec3 vT_ms = Population->roll_v_ms(loc_m);
|
||||
Particle newPart = Particle_Builder::create_T(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
InterOut->add_new_particle(newPart);
|
||||
|
||||
vT_ms = Population->roll_speed_ms(loc_m);
|
||||
newPart = Particle_Builder::createTritiumI(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
vT_ms = Population->roll_v_ms(loc_m);
|
||||
newPart = Particle_Builder::create_TI(loc_m, vT_ms, -1, interPart.get_Id());
|
||||
InterOut->add_new_particle(newPart);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user