From c8d19b1e7f7c711322610a9e75062227c05df689 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 29 Jul 2019 16:34:11 +0200 Subject: [PATCH] Added T3e_recombination --- src/mc_electron/T3Ie_recombination.h | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/mc_electron/T3Ie_recombination.h diff --git a/src/mc_electron/T3Ie_recombination.h b/src/mc_electron/T3Ie_recombination.h new file mode 100644 index 0000000..5f120d8 --- /dev/null +++ b/src/mc_electron/T3Ie_recombination.h @@ -0,0 +1,33 @@ +// +// T3Ie_recombination.h +// mc_electron +// +// Created by Christian Reiling on 29.07.19. +// Copyright © 2019 Christian Reiling. All rights reserved. +// + +#ifndef T3Ie_recombination_h +#define T3Ie_recombination_h + +#include "janev_eT3I_recombination.h" + +class T3Ie_Recombination : public Sub_Interaction_Base { +public: + T3Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {} + + double get_microSigma_m2(const double &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()), 3*mT_eV); // should be computed properly using chances. + Population->decrease_denisty(interPart->get_x_m(), E_eV); + + // Maybe add the 3 T atoms. + return res; +} + + +#endif /* T3Ie_recombination_h */