Removed offset of populations

This commit is contained in:
Christian
2019-11-11 14:17:52 +01:00
parent dcef2b811a
commit a7f401ecf5
10 changed files with 14 additions and 18 deletions
+2 -2
View File
@@ -30,8 +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(loc_m, E_eV);
/*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(loc_m, E_eV);*/
return res;
}
+2 -4
View File
@@ -25,10 +25,8 @@ public:
inline InteractionOut T2Ie_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);
/*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;
}
+2 -2
View File
@@ -29,8 +29,8 @@ inline InteractionOut T3Ie_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(loc_m, E_eV);
/*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(loc_m, E_eV);*/
return res;
}
+2 -4
View File
@@ -24,10 +24,8 @@ public:
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);
/*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;
}
+1 -1
View File
@@ -30,7 +30,7 @@ inline InteractionOut T5Ie_Recombination::do_Interaction (Particle *interPart) {
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);
//Population->decrease_denisty(interPart->get_x_m(), E_eV);
return res;
}
+1 -1
View File
@@ -25,11 +25,11 @@ inline InteractionOut eT2I_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
vec3 vTI_ms = Population->roll_v_ms(loc_m);
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
res.add_new_particle(TI);
//Population->decrease_denisty(interPart->get_x_m(), 0); // dummy since thermal population
return res;
}
+1 -1
View File
@@ -27,7 +27,7 @@ inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
//std::cout<<"eT2I:\t"<<*interPart<<"\n";
Population->decrease_denisty(interPart->get_x_m(), 0);
//Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}
+1 -1
View File
@@ -24,11 +24,11 @@ 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(loc_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());
res.add_new_particle(TI);
//Population->decrease_denisty(loc_m, 0); // dummy since thermal population
return res;
}
#endif /* eT3I_disexc_h */
+1 -1
View File
@@ -25,7 +25,7 @@ inline InteractionOut eT3I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
//std::cout<<"eT3I:\t"<<*interPart<<"\n";
Population->decrease_denisty(interPart->get_x_m(), 0);
//Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}
+1 -1
View File
@@ -27,7 +27,7 @@ inline InteractionOut eT5I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
//std::cout<<"eT5I:\t"<<*interPart<<"\n";
res.set_delete_current(true);
Population->decrease_denisty(interPart->get_x_m(), 0);
//Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}