Search for bug in recombination

This commit is contained in:
Christian
2019-11-09 07:08:00 +01:00
parent 6c5f0f77c7
commit b7788aa79b
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ public:
inline InteractionOut eT3I_DissExc::do_Interaction (Particle *interPart) {
InteractionOut res = Excitation_Base::do_Interaction(interPart);
vec3 loc_m = interPart->get_x_m();
//Population->decrease_denisty(interPart->get_x_m(), 0); // dummy since thermal population
Population->decrease_denisty(interPart->get_x_m(), 0); // dummy since thermal population
vec3 vTI_ms = Population->roll_v_ms(loc_m);
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
+1 -1
View File
@@ -24,7 +24,7 @@ public:
inline InteractionOut eT3I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
//Population->decrease_denisty(interPart->get_x_m(), 0);
Population->decrease_denisty(interPart->get_x_m(), 0);
// Maybe add the 3 T atoms.
return res;
+7 -1
View File
@@ -17,6 +17,12 @@ public:
eT5I_Recombination(Population_Base *T5IPopulation, UniRNG *rngUni) : Sub_Interaction_Base(T5IPopulation, rngUni) {}
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {
double temp = Pettersson_eT5I_Recombination::get_TCS(E_eV) * Population->get_density_m3(loc_m);
if (temp!=0) {
//std::cout<<Pettersson_eT5I_Recombination::get_TCS(E_eV)<<std::endl;
//std::cout<<Population->get_density_m3(loc_m)<<std::endl;
std::cout<<temp<<std::endl;
}
return Pettersson_eT5I_Recombination::get_TCS(E_eV);
}
InteractionOut do_Interaction (Particle *interPart);
@@ -26,7 +32,7 @@ public:
inline InteractionOut eT5I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
//Population->decrease_denisty(interPart->get_x_m(), 0);
Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}