Fix in elastic kinematics calculation -> overworked, now soley classical and not exact but sufficient.
This commit is contained in:
@@ -36,43 +36,12 @@ public:
|
||||
inline InteractionOut eT2_Elastic::do_Interaction (Particle *interPart) {
|
||||
// Here theta and phi are COM-Angles.... prob not correct. For m1 << m2 COM - Angle ~ Lab Angle
|
||||
vec3 v1_ms = interPart->get_v_ms();
|
||||
vec3 vOff_ms = Population->roll_v_ms(interPart->get_x_m());
|
||||
vec3 vLab_ms = v1_ms - vOff_ms;
|
||||
vec3 v2_ms = Population->roll_v_ms(interPart->get_x_m());
|
||||
vec3 vLab_ms = v1_ms - v2_ms; // P2 fixed
|
||||
double T_eV = calc_E_eV_from_v_ms(vLab_ms, me_eV);
|
||||
double theta_lab = dcs_gen->get_theta(T_eV);
|
||||
double phi_lab = rngUni->random() * 2 * pi;
|
||||
kinematics.doKinematics(interPart, vOff_ms, theta_lab, phi_lab);
|
||||
return InteractionOut();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Elastic Scattering:
|
||||
Using Rutherford Model with screening parameter following
|
||||
Cross-sections for water vapour for the Monte Carlo electron track structure code from 10eV to the MeV region
|
||||
S Uehara et al 1993 Phys. Med. Biol. 38 1841
|
||||
*/
|
||||
class eT2_Elastic_Analytic : public Sub_Interaction_Base {
|
||||
Elastic_Kinematic_Base kinematics;
|
||||
public:
|
||||
eT2_Elastic_Analytic(Population_Base *T2Population, UniRNG *rngUni) : Sub_Interaction_Base(T2Population, rngUni) {
|
||||
kinematics = Elastic_Kinematic_Base(me_eV, 2*mT_eV);
|
||||
};
|
||||
|
||||
double get_microSigma_m2(const double &E_eV) {return Uehara_eT2_ElasticScattering::calc_TCS(E_eV);}
|
||||
InteractionOut do_Interaction (Particle *interPart);
|
||||
};
|
||||
|
||||
|
||||
inline InteractionOut eT2_Elastic_Analytic::do_Interaction (Particle *interPart) {
|
||||
// Here theta and phi are COM-Angles.... prob not correct. For m1 << m2 COM - Angle ~ Lab Angle
|
||||
vec3 v1_ms = interPart->get_v_ms();
|
||||
vec3 vOff_ms = Population->roll_v_ms(interPart->get_x_m());
|
||||
vec3 vLab_ms = v1_ms - vOff_ms;
|
||||
double T_eV = calc_E_eV_from_v_ms(vLab_ms, me_eV);
|
||||
double theta_lab = Uehara_eT2_ElasticScattering::roll_theta(T_eV, rngUni);
|
||||
double phi_lab = rngUni->random() * 2 * pi;
|
||||
kinematics.doKinematics(interPart, vOff_ms, theta_lab, phi_lab);
|
||||
interPart->set_v_ms(kinematics.get_v1_new(v1_ms, v2_ms, theta_lab, phi_lab));
|
||||
return InteractionOut();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user