Fixed recombination On/Off mechanism

This commit is contained in:
Christian
2019-11-10 11:10:13 +01:00
parent bebf663ffa
commit fa70354391
2 changed files with 24 additions and 3 deletions
+20 -3
View File
@@ -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;
}