Added statistics method for terminization channels of particles
and elastic scattering for T3+. In this version benchmark old run.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// T3IT2_elastic.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 13.09.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef T3IT2_elastic_h
|
||||
#define T3IT2_elastic_h
|
||||
|
||||
#include "sub_interaction_base.h"
|
||||
#include "tabata_T3IT2_elastic.h"
|
||||
|
||||
|
||||
class T3IT2_Elastic : public Sub_Interaction_Base {
|
||||
Tabata_T3IT2_Elastic tcs_gen;
|
||||
|
||||
public:
|
||||
T3IT2_Elastic(Population_Base *T2Population, UniRNG *rngUni) : Sub_Interaction_Base(T2Population, rngUni) {};
|
||||
|
||||
double get_microSigma_m2(const double &E_eV) {return tcs_gen.get_TCS(E_eV);}
|
||||
InteractionOut do_Interaction (Particle *interPart);
|
||||
};
|
||||
|
||||
inline InteractionOut T3IT2_Elastic::do_Interaction (Particle *interPart) {
|
||||
vec3 loc_m = interPart->get_x_m();
|
||||
vec3 v2_ms = Population->roll_v_ms(loc_m);
|
||||
|
||||
vec3 vLab_ms = interPart->get_v_ms() - v2_ms;
|
||||
vec3 v1_ms = roll_uniform_direction(rngUni) * calc_vec3_abs(vLab_ms) + v2_ms;
|
||||
interPart->set_v_ms(v1_ms);
|
||||
return InteractionOut();
|
||||
}
|
||||
|
||||
#endif /* T3IT2_elastic_h */
|
||||
Reference in New Issue
Block a user