1. Added precalculation of integral values in thermal regime. 2. Minor Changes in Injection of \beta-electrons and ions.
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
//
|
|
// 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 "sub_interaction_base.h"
|
|
#include "precomputed_interaction_base.h"
|
|
#include "janev_eT3I_recombination.h"
|
|
|
|
class T3Ie_Recombination : public TI_e_Precomputed_Interaction_Base {
|
|
public:
|
|
T3Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : TI_e_Precomputed_Interaction_Base(ePopulation, rngUni, 3*mT_eV) {
|
|
calc_values(); // need to call here, because, constructor can't call pure virtual function
|
|
}
|
|
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
protected:
|
|
double get_microSigma_m2(const double &E_eV) {
|
|
return Janev_eT3I_Recombination::get_TCS(E_eV);
|
|
}
|
|
};
|
|
|
|
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);*/
|
|
return res;
|
|
}
|
|
|
|
|
|
#endif /* T3Ie_recombination_h */
|