Multiple Changes:

Conceptional Change, where terminated Particles were set to Energy = 0. Now Particles are just moved within mover and termination detects, position and starts Interaction only if particle remains in tank.

Added function_container: Filled with anker points and get values corresponding to input by interpolation. 2D Interpolation needs improvement. CSV-Read in function needs error checks of input file.
Changes in katrin class: Boris Push and Drift Approximation improved.
Minor Renamings.
This commit is contained in:
Christian
2019-03-18 13:51:41 +01:00
parent 698eb8e7b2
commit e77176cc76
21 changed files with 503 additions and 186 deletions
+10 -9
View File
@@ -12,22 +12,23 @@
#include "constants.hpp"
#include "blitz/array.h"
#include "blitz/tinyvec2.h"
#include <blitz/array.h>
#include <blitz/tinyvec2.h>
#include <random/uniform.h>
#include <random/normal.h>
typedef blitz::TinyVector<double,3> vec3;
double calc_vecAbs(blitz::TinyVector<double,3> vec);
double calc_Speed_from_Ekin_eV(double Ekin_eV, double mass_eV);
double calc_gamma_from_Ekin_eV(double Ekin_eV, double mass_eV);
double calc_beta_from_gamma(double gamma);
double calc_Ekin_eV_from_speed(double Speed, double mass_eV);
double calc_gamma_from_beta(double beta);
double get_vecAbs(vec3 vec);
vec3 calc_Newdirection(vec3 oldDir, double theta,double phi);
double get_Speed_from_Ekin_eV(double Ekin_eV, double mass_eV);
double get_gamma_from_Ekin_eV(double Ekin_eV, double mass_eV);
double get_beta_from_gamma(double gamma);
double get_Ekin_eV_from_speed(double Speed, double mass_eV);
double get_gamma_from_beta(double beta);
vec3 get_Newdirection(vec3 oldDir, double theta,double phi);
vec3 roll_uniform_direction(ranlib::Uniform<double> *rngUni);
double roll_MBEnergy(double Temp_K,double mass_eV,ranlib::NormalUnit<double> *rngNormal);