43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
//
|
|
// e_T2I_recombination.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 24.05.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef e_T2I_recombination_h
|
|
#define e_T2I_recombination_h
|
|
|
|
#include "sub_interaction_base.h"
|
|
#include "tcs_container.hpp"
|
|
#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 Ekin_eV = interPart.get_EKin_eV();
|
|
double microSigma_m2 = Janev_eT2_Recombination::get_TCS(Ekin_eV);
|
|
vec3 loc_m = interPart.get_Location_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);
|
|
res.set_decrease(tritium2I, interPart->get_Location_m(), 0); // 0 is dummy parameter, since thermal population
|
|
// Maybe add the 2 T atoms.
|
|
return(res);
|
|
}
|
|
#endif /* e_T2I_recombination_h */
|