Fixed recombination On/Off mechanism
This commit is contained in:
@@ -179,7 +179,12 @@ Interaction_Base* Interaction_Builder::build_tritium2I(Population_Manager *Popul
|
||||
Interaction_Base *T2I_Interaction = new Interaction_Base(tritium2I, rngUni);
|
||||
Population_Base *T2Population = Populations->find(tritium2);
|
||||
Population_Base *ePopulation = Populations->find(electron);
|
||||
T2I_Interaction->add(new T2Ie_Recombination(ePopulation, rngUni));
|
||||
|
||||
if (load_parameter("e_REC") == 1) {
|
||||
T2I_Interaction->add(new T2Ie_Recombination(ePopulation, rngUni));
|
||||
} else if (load_parameter("e_REC") != 0) {
|
||||
throw MyException ("e_REC invalid.");
|
||||
}
|
||||
//T2I_Interaction->add(new T2Ie_DissExc(ePopulation, rngUni));
|
||||
T2I_Interaction->add(new T2IT2_Cluster(T2Population, rngUni));
|
||||
T2I_Interaction->add(new T2IT2_CX(T2Population, rngUni));
|
||||
@@ -193,7 +198,13 @@ Interaction_Base* Interaction_Builder::build_tritium3I(Population_Manager *Popul
|
||||
T3I_Interaction->add(new T3IT2_Elastic(T2Population, rngUni));
|
||||
T3I_Interaction->add(new T3IT2_RadAsc(T2Population, rngUni));
|
||||
T3I_Interaction->add(new T3IT2_TerAsc(T2Population, rngUni));
|
||||
T3I_Interaction->add(new T3Ie_Recombination(ePopulation, rngUni));
|
||||
|
||||
if (load_parameter("e_REC") == 1) {
|
||||
T3I_Interaction->add(new T3Ie_Recombination(ePopulation, rngUni));
|
||||
} else if (load_parameter("e_REC") != 0) {
|
||||
throw MyException ("e_REC invalid.");
|
||||
}
|
||||
|
||||
//T3I_Interaction->add(new T3Ie_DissExc(ePopulation, rngUni));
|
||||
return T3I_Interaction ;
|
||||
}
|
||||
@@ -203,6 +214,12 @@ Interaction_Base* Interaction_Builder::build_tritium5I(Population_Manager *Popul
|
||||
Population_Base *T2Population = Populations->find(tritium2);
|
||||
Population_Base *ePopulation = Populations->find(electron);
|
||||
T5I_Interaction->add(new T5IT2_Elastic(T2Population, rngUni));
|
||||
T5I_Interaction->add(new T5Ie_Recombination(ePopulation, rngUni));
|
||||
|
||||
if (load_parameter("e_REC") == 1) {
|
||||
T5I_Interaction->add(new T5Ie_Recombination(ePopulation, rngUni));
|
||||
} else if (load_parameter("e_REC") != 0) {
|
||||
throw MyException ("e_REC invalid.");
|
||||
}
|
||||
|
||||
return T5I_Interaction;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,10 @@ inline double Sub_Interaction_Base::get_macroSigma_m_kinetic(const Particle &int
|
||||
double macro_Sigma_m2 = 0;
|
||||
for (int E_bin = 0; E_bin< bounds.num_E_bins; E_bin++) {
|
||||
cont = Population->get_density_m3(E_bin, bounds.loc_bins);
|
||||
if (cont.n_m3 != 0) {
|
||||
std::cout<<cont.n_m3<<"\n";
|
||||
}
|
||||
|
||||
macro_Sigma_m2 += get_microSigma_m2(cont.E_eV, loc_m) * cont.n_m3;
|
||||
}
|
||||
return macro_Sigma_m2;
|
||||
|
||||
Reference in New Issue
Block a user