Removed offset application to density fields when interacting.
This commit is contained in:
@@ -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());
|
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
|
||||||
res.add_new_particle(TI);
|
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.
|
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(loc_m, E_eV);
|
||||||
//maybe add T Atom
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,17 +16,19 @@ class T2Ie_Recombination : public Sub_Interaction_Base {
|
|||||||
public:
|
public:
|
||||||
T2Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {}
|
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);
|
InteractionOut do_Interaction (Particle *interPart);
|
||||||
};
|
};
|
||||||
|
|
||||||
inline InteractionOut T2Ie_Recombination::do_Interaction (Particle *interPart) {
|
inline InteractionOut T2Ie_Recombination::do_Interaction (Particle *interPart) {
|
||||||
InteractionOut res;
|
InteractionOut res;
|
||||||
res.set_delete_current(true);
|
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);
|
Population->decrease_denisty(interPart->get_x_m(), E_eV);
|
||||||
|
*/
|
||||||
// Maybe add the 2 T atoms.
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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());
|
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
|
||||||
res.add_new_particle(TI);
|
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.
|
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(loc_m, E_eV);
|
||||||
//maybe add T Atom
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,17 +16,18 @@ public:
|
|||||||
T3Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {}
|
T3Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {}
|
||||||
|
|
||||||
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {
|
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);
|
InteractionOut do_Interaction (Particle *interPart);
|
||||||
};
|
};
|
||||||
|
|
||||||
inline InteractionOut T3Ie_Recombination::do_Interaction (Particle *interPart) {
|
inline InteractionOut T3Ie_Recombination::do_Interaction (Particle *interPart) {
|
||||||
InteractionOut res;
|
InteractionOut res;
|
||||||
res.set_delete_current(true);
|
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);
|
Population->decrease_denisty(interPart->get_x_m(), E_eV);
|
||||||
|
*/
|
||||||
// Maybe add the 3 T atoms.
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,12 +28,11 @@ public:
|
|||||||
inline InteractionOut T5Ie_Recombination::do_Interaction (Particle *interPart) {
|
inline InteractionOut T5Ie_Recombination::do_Interaction (Particle *interPart) {
|
||||||
InteractionOut res;
|
InteractionOut res;
|
||||||
res.set_delete_current(true);
|
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);
|
Population->decrease_denisty(interPart->get_x_m(), E_eV);
|
||||||
|
*/
|
||||||
// Maybe add the 5 T atoms.
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* T5Ie_recombination_h */
|
#endif /* T5Ie_recombination_h */
|
||||||
|
|||||||
@@ -25,13 +25,11 @@ inline InteractionOut eT2I_DissExc::do_Interaction (Particle *interPart) {
|
|||||||
InteractionOut res = Excitation_Base::do_Interaction(interPart);
|
InteractionOut res = Excitation_Base::do_Interaction(interPart);
|
||||||
|
|
||||||
vec3 loc_m = interPart->get_x_m();
|
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);
|
vec3 vTI_ms = Population->roll_v_ms(loc_m);
|
||||||
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
|
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
|
||||||
res.add_new_particle(TI);
|
res.add_new_particle(TI);
|
||||||
|
|
||||||
//maybe add T Atom
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,9 @@ class eT2I_Recombination : public Sub_Interaction_Base {
|
|||||||
public:
|
public:
|
||||||
eT2I_Recombination(Population_Base *T2IPopulation, UniRNG *rngUni) : Sub_Interaction_Base(T2IPopulation, rngUni) {}
|
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);
|
InteractionOut do_Interaction (Particle *interPart);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -24,9 +26,8 @@ public:
|
|||||||
inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
|
inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
|
||||||
InteractionOut res;
|
InteractionOut res;
|
||||||
res.set_delete_current(true);
|
res.set_delete_current(true);
|
||||||
Population->decrease_denisty(interPart->get_x_m(), 0);
|
//std::cout<<"eT2I:\t"<<*interPart<<"\n";
|
||||||
|
//Population->decrease_denisty(interPart->get_x_m(), 0);
|
||||||
// Maybe add the 2 T atoms.
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,13 +24,11 @@ public:
|
|||||||
inline InteractionOut eT3I_DissExc::do_Interaction (Particle *interPart) {
|
inline InteractionOut eT3I_DissExc::do_Interaction (Particle *interPart) {
|
||||||
InteractionOut res = Excitation_Base::do_Interaction(interPart);
|
InteractionOut res = Excitation_Base::do_Interaction(interPart);
|
||||||
vec3 loc_m = interPart->get_x_m();
|
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);
|
vec3 vTI_ms = Population->roll_v_ms(loc_m);
|
||||||
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
|
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
|
||||||
res.add_new_particle(TI);
|
res.add_new_particle(TI);
|
||||||
|
|
||||||
//maybe add T Atom
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
#endif /* eT3I_disexc_h */
|
#endif /* eT3I_disexc_h */
|
||||||
|
|||||||
@@ -24,9 +24,8 @@ public:
|
|||||||
inline InteractionOut eT3I_Recombination::do_Interaction (Particle *interPart) {
|
inline InteractionOut eT3I_Recombination::do_Interaction (Particle *interPart) {
|
||||||
InteractionOut res;
|
InteractionOut res;
|
||||||
res.set_delete_current(true);
|
res.set_delete_current(true);
|
||||||
Population->decrease_denisty(interPart->get_x_m(), 0);
|
//std::cout<<"eT3I:\t"<<*interPart<<"\n";
|
||||||
|
//Population->decrease_denisty(interPart->get_x_m(), 0);
|
||||||
// Maybe add the 3 T atoms.
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,9 @@ public:
|
|||||||
|
|
||||||
inline InteractionOut eT5I_Recombination::do_Interaction (Particle *interPart) {
|
inline InteractionOut eT5I_Recombination::do_Interaction (Particle *interPart) {
|
||||||
InteractionOut res;
|
InteractionOut res;
|
||||||
|
//std::cout<<"eT5I:\t"<<*interPart<<"\n";
|
||||||
res.set_delete_current(true);
|
res.set_delete_current(true);
|
||||||
Population->decrease_denisty(interPart->get_x_m(), 0);
|
//Population->decrease_denisty(interPart->get_x_m(), 0);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user