43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
//
|
|
// eT2I_recombination.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 18.06.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef eT2I_recombination_h
|
|
#define eT2I_recombination_h
|
|
|
|
#include "sub_interaction_base.h"
|
|
#include "janev_eT2I_recombination.h"
|
|
|
|
class eT2I_Recombination : public Sub_Interaction_Base {
|
|
public:
|
|
eT2I_Recombination(Population_Base *T2IPopulation, UniRNG *rngUni) : Sub_Interaction_Base(T2IPopulation, rngUni) {}
|
|
|
|
double get_macroSigma_m2(const Particle &interPart);
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
|
|
inline double eT2I_Recombination::get_macroSigma_m2(const Particle &interPart) {
|
|
double E_eV = interPart.get_E_eV();
|
|
double microSigma_m2 = Janev_eT2I_Recombination::get_TCS(E_eV);
|
|
vec3 loc_m = interPart.get_x_m();
|
|
double nT2I_m3 = Population->get_density_m3(loc_m);
|
|
return microSigma_m2*nT2I_m3;
|
|
}
|
|
|
|
inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
|
|
InteractionOut res;
|
|
res.set_delete_current(true);
|
|
Population->decrease_denisty(interPart->get_x_m(), interPart->get_E_eV());
|
|
|
|
// Maybe add the 2 T atoms.
|
|
return res;
|
|
}
|
|
|
|
|
|
#endif /* eT2I_recombination_h */
|