diff --git a/src/mc_electron/T2Ie_disexc.h b/src/mc_electron/T2Ie_disexc.h index a1e40cb..492d672 100644 --- a/src/mc_electron/T2Ie_disexc.h +++ b/src/mc_electron/T2Ie_disexc.h @@ -31,8 +31,7 @@ inline InteractionOut T2Ie_DissExc::do_Interaction (Particle *interPart) { Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id()); res.add_new_particle(TI); double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances. - Population->decrease_denisty(interPart->get_x_m(), E_eV); - //maybe add T Atom + //Population->decrease_denisty(loc_m, E_eV); return res; } diff --git a/src/mc_electron/T2Ie_recombination.h b/src/mc_electron/T2Ie_recombination.h index 3bf6757..e496d03 100644 --- a/src/mc_electron/T2Ie_recombination.h +++ b/src/mc_electron/T2Ie_recombination.h @@ -16,17 +16,19 @@ class T2Ie_Recombination : public Sub_Interaction_Base { public: T2Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {} - double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {return Janev_eT2I_Recombination::get_TCS(E_eV);} + double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) { + return Janev_eT2I_Recombination::get_TCS(E_eV); + } InteractionOut do_Interaction (Particle *interPart); }; inline InteractionOut T2Ie_Recombination::do_Interaction (Particle *interPart) { InteractionOut res; res.set_delete_current(true); + /* double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances. Population->decrease_denisty(interPart->get_x_m(), E_eV); - - // Maybe add the 2 T atoms. + */ return res; } diff --git a/src/mc_electron/T3Ie_disexc.h b/src/mc_electron/T3Ie_disexc.h index a73064d..f6260ce 100644 --- a/src/mc_electron/T3Ie_disexc.h +++ b/src/mc_electron/T3Ie_disexc.h @@ -30,8 +30,7 @@ inline InteractionOut T3Ie_DissExc::do_Interaction (Particle *interPart) { Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id()); res.add_new_particle(TI); double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances. - Population->decrease_denisty(interPart->get_x_m(), E_eV); - //maybe add T Atom + //Population->decrease_denisty(loc_m, E_eV); return res; } diff --git a/src/mc_electron/T3Ie_recombination.h b/src/mc_electron/T3Ie_recombination.h index 8d8773e..9308dcf 100644 --- a/src/mc_electron/T3Ie_recombination.h +++ b/src/mc_electron/T3Ie_recombination.h @@ -16,17 +16,18 @@ public: T3Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {} double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) { - return Janev_eT3I_Recombination::get_TCS(E_eV);} + return Janev_eT3I_Recombination::get_TCS(E_eV); + } InteractionOut do_Interaction (Particle *interPart); }; inline InteractionOut T3Ie_Recombination::do_Interaction (Particle *interPart) { InteractionOut res; res.set_delete_current(true); + /* double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances. Population->decrease_denisty(interPart->get_x_m(), E_eV); - - // Maybe add the 3 T atoms. + */ return res; } diff --git a/src/mc_electron/T5Ie_recombination.h b/src/mc_electron/T5Ie_recombination.h index ebd098f..66a4a87 100644 --- a/src/mc_electron/T5Ie_recombination.h +++ b/src/mc_electron/T5Ie_recombination.h @@ -28,12 +28,11 @@ public: inline InteractionOut T5Ie_Recombination::do_Interaction (Particle *interPart) { InteractionOut res; res.set_delete_current(true); + /* double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances. Population->decrease_denisty(interPart->get_x_m(), E_eV); - - // Maybe add the 5 T atoms. + */ return res; } - #endif /* T5Ie_recombination_h */ diff --git a/src/mc_electron/eT2I_disexc.h b/src/mc_electron/eT2I_disexc.h index 3ce4eaa..7450ad3 100644 --- a/src/mc_electron/eT2I_disexc.h +++ b/src/mc_electron/eT2I_disexc.h @@ -25,13 +25,11 @@ inline InteractionOut eT2I_DissExc::do_Interaction (Particle *interPart) { InteractionOut res = Excitation_Base::do_Interaction(interPart); vec3 loc_m = interPart->get_x_m(); - Population->decrease_denisty(interPart->get_x_m(), 0); // dummy since thermal population + //Population->decrease_denisty(interPart->get_x_m(), 0); // dummy since thermal population vec3 vTI_ms = Population->roll_v_ms(loc_m); Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id()); res.add_new_particle(TI); - - //maybe add T Atom return res; } diff --git a/src/mc_electron/eT2I_recombination.h b/src/mc_electron/eT2I_recombination.h index 0c12f8b..d936503 100644 --- a/src/mc_electron/eT2I_recombination.h +++ b/src/mc_electron/eT2I_recombination.h @@ -16,7 +16,9 @@ class eT2I_Recombination : public Sub_Interaction_Base { public: eT2I_Recombination(Population_Base *T2IPopulation, UniRNG *rngUni) : Sub_Interaction_Base(T2IPopulation, rngUni) {} - double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {return Janev_eT2I_Recombination::get_TCS(E_eV);} + double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) { + return Janev_eT2I_Recombination::get_TCS(E_eV); + } InteractionOut do_Interaction (Particle *interPart); }; @@ -24,9 +26,8 @@ public: inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) { InteractionOut res; res.set_delete_current(true); - Population->decrease_denisty(interPart->get_x_m(), 0); - - // Maybe add the 2 T atoms. + //std::cout<<"eT2I:\t"<<*interPart<<"\n"; + //Population->decrease_denisty(interPart->get_x_m(), 0); return res; } diff --git a/src/mc_electron/eT3I_disexc.h b/src/mc_electron/eT3I_disexc.h index 1e158e1..e5ee67b 100644 --- a/src/mc_electron/eT3I_disexc.h +++ b/src/mc_electron/eT3I_disexc.h @@ -24,13 +24,11 @@ public: inline InteractionOut eT3I_DissExc::do_Interaction (Particle *interPart) { InteractionOut res = Excitation_Base::do_Interaction(interPart); vec3 loc_m = interPart->get_x_m(); - Population->decrease_denisty(interPart->get_x_m(), 0); // dummy since thermal population + //Population->decrease_denisty(loc_m, 0); // dummy since thermal population vec3 vTI_ms = Population->roll_v_ms(loc_m); Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id()); res.add_new_particle(TI); - - //maybe add T Atom return res; } #endif /* eT3I_disexc_h */ diff --git a/src/mc_electron/eT3I_recombination.h b/src/mc_electron/eT3I_recombination.h index 663c39d..9d19e89 100644 --- a/src/mc_electron/eT3I_recombination.h +++ b/src/mc_electron/eT3I_recombination.h @@ -24,9 +24,8 @@ public: inline InteractionOut eT3I_Recombination::do_Interaction (Particle *interPart) { InteractionOut res; res.set_delete_current(true); - Population->decrease_denisty(interPart->get_x_m(), 0); - - // Maybe add the 3 T atoms. + //std::cout<<"eT3I:\t"<<*interPart<<"\n"; + //Population->decrease_denisty(interPart->get_x_m(), 0); return res; } diff --git a/src/mc_electron/eT5I_recombination.h b/src/mc_electron/eT5I_recombination.h index 78a36d3..4dd1baf 100644 --- a/src/mc_electron/eT5I_recombination.h +++ b/src/mc_electron/eT5I_recombination.h @@ -25,8 +25,9 @@ public: inline InteractionOut eT5I_Recombination::do_Interaction (Particle *interPart) { InteractionOut res; + //std::cout<<"eT5I:\t"<<*interPart<<"\n"; res.set_delete_current(true); - Population->decrease_denisty(interPart->get_x_m(), 0); + //Population->decrease_denisty(interPart->get_x_m(), 0); return res; }