Finished DCS_Ionization Container.
Removed Energy Cut off for T2+ Ions. Tested Population loggers.
This commit is contained in:
@@ -46,9 +46,8 @@ void Simulation::doit() {
|
||||
Interaction_Base *interactionPtr;
|
||||
Terminator_Base *terminatorPtr;
|
||||
|
||||
|
||||
InteractionOut IntOut;
|
||||
double mfp;
|
||||
double macroSigma_m2, mfp_m;
|
||||
std::deque<Particle> partQue;
|
||||
Particle curPart;
|
||||
vec3 oldLoc_m;
|
||||
@@ -67,19 +66,19 @@ void Simulation::doit() {
|
||||
interactionPtr = interactions.find(curPart.get_species());
|
||||
terminatorPtr = terminators.find(curPart.get_species());
|
||||
|
||||
|
||||
while (!terminatorPtr->checkTermination(curPart)) {
|
||||
oldLoc_m = curPart.get_Location_m();
|
||||
mfp = 1/interactionPtr->get_macroSigma_m2(curPart);
|
||||
moverPtr->move(&curPart, mfp);
|
||||
macroSigma_m2 = interactionPtr->get_macroSigma_m2(curPart);
|
||||
mfp_m = 1/macroSigma_m2;
|
||||
moverPtr->move(&curPart, mfp_m);
|
||||
if (!terminatorPtr->checkTermination(curPart)) {
|
||||
IntOut = interactionPtr->do_Interaction(&curPart);
|
||||
for (int i=0; i<IntOut.get_number_new_particles(); i++) {
|
||||
partQue.push_back(IntOut.get_new_particles()[i]);
|
||||
partQue.back().set_Id(numberTotalParticles++);
|
||||
}
|
||||
if (IntOut.get_delete_density()) {
|
||||
// Decrease Density by one now.
|
||||
if (IntOut.get_decrease_population()) {
|
||||
populations.find(IntOut.get_decrease_species())->decrease_denisty(IntOut.get_decrease_location());
|
||||
}
|
||||
if (IntOut.get_delete_current()) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user