Major changes:
- Added individul operators for species and better selecting process. - Switched to C arrays for main loop operations and calculating array indizes using knowledge of binning instead of doing sorted search - Added Recombination - Reworked elastic scattering kinematics - Added inelastic scattering kinematics
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// mover_builder.cpp
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 16.05.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#include "mover_builder.hpp"
|
||||
|
||||
#include "read_system.h"
|
||||
|
||||
#include "electron_drift.h"
|
||||
#include "electron_boris.h"
|
||||
#include "tritiumI_drift.h"
|
||||
#include "tritium2I_drift.h"
|
||||
|
||||
|
||||
const int Mover_Builder::propagationMethod = getParameter("propagationMethod");
|
||||
const double Mover_Builder::dt_s = getParameter("dt_s");
|
||||
|
||||
Mover_Manager Mover_Builder::build(Particle_Logger_Manager *Loggers, Population_Manager *Populations) {
|
||||
Mover_Manager Movers;
|
||||
Movers.add(build_electron(Loggers, Populations));
|
||||
Movers.add(build_tritiumI(Loggers, Populations));
|
||||
Movers.add(build_tritium2I(Loggers, Populations));
|
||||
return (Movers);
|
||||
}
|
||||
|
||||
|
||||
Mover_Base *Mover_Builder::build_electron(Particle_Logger_Manager *Loggers, Population_Manager *Populations) {
|
||||
Mover_Base *electron_Mover;
|
||||
Particle_Logger_Base *Logger = Loggers->find(electron);
|
||||
Population_Base *Popultation = Populations->find(electron);
|
||||
if (propagationMethod == 0) {
|
||||
electron_Mover = new E_Mover_Drift(Logger, Popultation);
|
||||
} else {
|
||||
electron_Mover = new E_Mover_Boris(dt_s, Logger, Popultation);
|
||||
}
|
||||
return (electron_Mover);
|
||||
}
|
||||
|
||||
Mover_Base *Mover_Builder::build_tritiumI(Particle_Logger_Manager *Loggers, Population_Manager *Populations) {
|
||||
Particle_Logger_Base *Logger = Loggers->find(tritiumI);
|
||||
Population_Base *Popultation = Populations->find(tritiumI);
|
||||
return (new TI_Mover_Drift(Logger, Popultation));
|
||||
}
|
||||
|
||||
Mover_Base *Mover_Builder::build_tritium2I(Particle_Logger_Manager *Loggers, Population_Manager *Populations) {
|
||||
Particle_Logger_Base *Logger = Loggers->find(tritium2I);
|
||||
Population_Base *Popultation = Populations->find(tritium2I);
|
||||
return (new T2I_Mover_Drift(Logger, Popultation));
|
||||
}
|
||||
Reference in New Issue
Block a user