Readded density reduction by interaction for test

This commit is contained in:
Christian
2019-11-08 15:59:13 +01:00
parent f5d65959c3
commit 490bfd2cc6
18 changed files with 56 additions and 17 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ inline InteractionOut T2Ie_DissExc::do_Interaction (Particle *interPart) {
vec3 vTI_ms = interPart->get_v_ms();
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
res.add_new_particle(TI);
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);
//maybe add T Atom
return res;
}