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
+40
View File
@@ -0,0 +1,40 @@
//
// population_base.h
// mc_electron
//
// Created by Christian Reiling on 06.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef population_base_h
#define population_base_h
#include "timer.hpp"
#include "random_operations.h"
#include "error_types.h"
#include "read_system.h"
#include "kinematics.h"
#include "process_base.h"
typedef blitz::TinyVector<double,3> vec3;
class Population_Base : public Process_Base {
public:
Population_Base(species this_species) : Process_Base(this_species) {};
virtual double get_density_m3 (const vec3 &loc_m) = 0;
virtual void increase_density (const Particle &upPart, const vec3 &oldLoc_m) = 0;
virtual void decrease_denisty (const vec3 &oldLoc_m) = 0;
virtual vec3 get_average_speed_ms (const vec3 &loc_m) = 0;
virtual vec3 roll_speed_ms (const vec3 &loc_m) = 0;
};
#endif /* population_base_h */