Minor changes
This commit is contained in:
@@ -15,6 +15,7 @@ const int Injector::injectionMethod = load_parameter("injectionMethod");
|
||||
const double Injector::injectionEnergy_eV = load_parameter("injectionEnergy_eV");
|
||||
|
||||
Particle Injector::injectElectron (const int &newId) {
|
||||
|
||||
double r_m = r_WGTS_m*sqrt(rngUni->random());
|
||||
double phi = rngUni->random()*2*pi;
|
||||
|
||||
@@ -43,6 +44,9 @@ Particle Injector::injectElectron (const int &newId) {
|
||||
}
|
||||
vec3 v_ms = roll_uniform_direction(rngUni) * calc_v_ms_from_E_eV(E_eV,me_eV);
|
||||
return PartFac.create_e(loc_m, v_ms, newId, newId);
|
||||
|
||||
//double v_ms = calc_v_ms_from_E_eV(pow(rngUni->random(),1./3.), me_eV);
|
||||
//return PartFac.create_e(vec3(0,0,z_WGTS_end_m), vec3(0,0,-v_ms),newId, newId);
|
||||
}
|
||||
|
||||
double Injector::roll_FermiEnergy_eV() {
|
||||
|
||||
@@ -31,6 +31,7 @@ public:
|
||||
}
|
||||
~MultiZ_Particle_Logger() {
|
||||
delete[] zLogValues;
|
||||
delete[] h5tb;
|
||||
}
|
||||
private:
|
||||
void create(H5_File *h5_file, species this_species);
|
||||
|
||||
@@ -30,7 +30,6 @@ void Particle_Looper::do_loops(int target_decays) {
|
||||
int number_decays = 0;
|
||||
while ( (number_decays < target_decays) || (!particle_queue.empty()) ) {
|
||||
if (particle_queue.empty()) {
|
||||
pop_loggers.log();
|
||||
particle_queue.push(injector.injectElectron(get_new_id()));
|
||||
number_decays++;
|
||||
local_decays++;
|
||||
|
||||
@@ -91,7 +91,6 @@ public:
|
||||
Terminator_Manager *get_terminators() {
|
||||
return &terminators;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ inline vec3 roll_uniform_direction(ranlib::Uniform<double> *rngUni) {
|
||||
}
|
||||
|
||||
inline double roll_MBEnergy(const double &Temp_K, const double &m_eV,ranlib::NormalUnit<double> *rngNormal) {
|
||||
|
||||
double C = kb_eVK*Temp_K/m_eV;
|
||||
double beta = 0;
|
||||
double sum = 0;
|
||||
|
||||
Reference in New Issue
Block a user