Removed offset application to density fields when interacting.

This commit is contained in:
Christian
2019-11-11 10:30:15 +01:00
parent c173b15615
commit ae1281b2e5
10 changed files with 24 additions and 27 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ inline InteractionOut T2Ie_DissExc::do_Interaction (Particle *interPart) {
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
//Population->decrease_denisty(loc_m, E_eV);
return res;
}
+5 -3
View File
@@ -16,17 +16,19 @@ class T2Ie_Recombination : public Sub_Interaction_Base {
public:
T2Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {}
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {return Janev_eT2I_Recombination::get_TCS(E_eV);}
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {
return Janev_eT2I_Recombination::get_TCS(E_eV);
}
InteractionOut do_Interaction (Particle *interPart);
};
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);
// Maybe add the 2 T atoms.
*/
return res;
}
+1 -2
View File
@@ -30,8 +30,7 @@ inline InteractionOut T3Ie_DissExc::do_Interaction (Particle *interPart) {
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
//Population->decrease_denisty(loc_m, E_eV);
return res;
}
+4 -3
View File
@@ -16,17 +16,18 @@ public:
T3Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {}
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {
return Janev_eT3I_Recombination::get_TCS(E_eV);}
return Janev_eT3I_Recombination::get_TCS(E_eV);
}
InteractionOut do_Interaction (Particle *interPart);
};
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);
// Maybe add the 3 T atoms.
*/
return res;
}
+2 -3
View File
@@ -28,12 +28,11 @@ public:
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.
Population->decrease_denisty(interPart->get_x_m(), E_eV);
// Maybe add the 5 T atoms.
*/
return res;
}
#endif /* T5Ie_recombination_h */
+1 -3
View File
@@ -25,13 +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
//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);
//maybe add T Atom
return res;
}
+5 -4
View File
@@ -16,7 +16,9 @@ class eT2I_Recombination : public Sub_Interaction_Base {
public:
eT2I_Recombination(Population_Base *T2IPopulation, UniRNG *rngUni) : Sub_Interaction_Base(T2IPopulation, rngUni) {}
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {return Janev_eT2I_Recombination::get_TCS(E_eV);}
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {
return Janev_eT2I_Recombination::get_TCS(E_eV);
}
InteractionOut do_Interaction (Particle *interPart);
};
@@ -24,9 +26,8 @@ public:
inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
Population->decrease_denisty(interPart->get_x_m(), 0);
// Maybe add the 2 T atoms.
//std::cout<<"eT2I:\t"<<*interPart<<"\n";
//Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}
+1 -3
View File
@@ -24,13 +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(interPart->get_x_m(), 0); // dummy since thermal population
//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);
//maybe add T Atom
return res;
}
#endif /* eT3I_disexc_h */
+2 -3
View File
@@ -24,9 +24,8 @@ public:
inline InteractionOut eT3I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
Population->decrease_denisty(interPart->get_x_m(), 0);
// Maybe add the 3 T atoms.
//std::cout<<"eT3I:\t"<<*interPart<<"\n";
//Population->decrease_denisty(interPart->get_x_m(), 0);
return res;
}
+2 -1
View File
@@ -25,8 +25,9 @@ public:
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;
}