Major update:
1. Added precalculation of integral values in thermal regime. 2. Minor Changes in Injection of \beta-electrons and ions.
This commit is contained in:
@@ -11,17 +11,21 @@
|
||||
|
||||
|
||||
#include "sub_interaction_base.h"
|
||||
#include "precomputed_interaction_base.h"
|
||||
|
||||
#include "petterson_eT5I_recombination.h"
|
||||
|
||||
class T5Ie_Recombination : public TI_e_Interaction_Base {
|
||||
class T5Ie_Recombination : public TI_e_Precomputed_Interaction_Base {
|
||||
public:
|
||||
T5Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : TI_e_Interaction_Base(ePopulation, rngUni) {}
|
||||
|
||||
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {
|
||||
T5Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : TI_e_Precomputed_Interaction_Base(ePopulation, rngUni, 5*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 Pettersson_eT5I_Recombination::get_TCS(E_eV);
|
||||
}
|
||||
InteractionOut do_Interaction (Particle *interPart);
|
||||
};
|
||||
|
||||
|
||||
@@ -29,7 +33,7 @@ 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.
|
||||
//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;
|
||||
|
||||
Reference in New Issue
Block a user