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:
Christian
2019-05-27 13:51:32 +02:00
parent ac83bae061
commit 79bf420f8d
56 changed files with 82194 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
//
// sf_particle_logger.h
// mc_electron
//
// Created by Christian Reiling on 19.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef sf_particle_logger_h
#define sf_particle_logger_h
#include "particle_logger_base.h"
class SF_Particle_Logger : public Particle_Logger_Base {
hid_t *h5g_z;
H5TB_Interface h5tb;
public:
SF_Particle_Logger(species this_species, hid_t *h5g_z) : Particle_Logger_Base(this_species) {
this->h5g_z = h5g_z;
create();
}
private:
void create();
public:
void log(const Particle &logPart, const vec3 &oldLoc_m);
};
inline void SF_Particle_Logger::create() {
std::string speciesName = get_species_string(get_species());
h5tb = H5TB_Interface(speciesName, h5g_z);
}
inline void SF_Particle_Logger::log(const Particle &logPart, const vec3 &oldLoc_m) {
h5tb.write(logPart);
}
#endif /* sf_particle_logger_h */