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:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "parameter.hpp"
|
||||
#include "constants.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "electron.hpp"
|
||||
|
||||
#include "blitz/tinyvec2.h"
|
||||
@@ -36,21 +37,27 @@ public:
|
||||
Electron injectElectron(int newId, ranlib::Uniform<double> *rngUni, ranlib::NormalUnit<double> *rngNormal);
|
||||
private:
|
||||
double roll_FermiEnergy_eV(ranlib::Uniform<double> *rngUni);
|
||||
double calc_FermiDecaySpectrumDensity(double Ekin_eV);
|
||||
double calc_FermiFunction(double Z, double Ekin_eV);
|
||||
double get_FermiDecaySpectrumDensity(double Ekin_eV);
|
||||
double get_FermiFunction(double Z, double Ekin_eV);
|
||||
|
||||
// Move Electrons
|
||||
public:
|
||||
void do_BorisPush(Electron *moveElectron);
|
||||
void do_DriftApproximation(Electron *moveElectron);
|
||||
private:
|
||||
double getDrift_znew_m(double MFP_m, double zold_m, vec3 v_ms);
|
||||
bool movedOutside(blitz::TinyVector<double,3> loc_m);
|
||||
double get_MFP_m(Electron *moveElectron);
|
||||
void do_BorisPushMovement(Electron *moveElectron, double distance_m, Logger *Log);
|
||||
void do_DriftApproximationMovement(Electron *moveElectron, double distance_m, Logger *Log);
|
||||
private:
|
||||
double getDrift_znew_m(double MFP_m, Electron *moveElectron);
|
||||
void doDrift_WallInteraction(vec3 *oldLoc_m, double *znew_m, Electron *moveElectron, Logger *Log);
|
||||
void doBoris_WallInteraction(Electron *moveElectron);
|
||||
void doBoris_LogzDirChange(Electron *moveElectron, double *oldzDir, vec3 *oldLoc_m, Logger *Log);
|
||||
|
||||
// Terminate Electrons
|
||||
public:
|
||||
bool get_Terminated(Electron termElectron);
|
||||
bool check_Termination(Electron checkElectron);
|
||||
bool check_EnergyTermination(double Ekin_eV);
|
||||
bool check_EnergyTermination(Electron checkElectron);
|
||||
bool check_WallTermination(vec3 loc_m);
|
||||
bool check_WallTermination(Electron checkElectron);
|
||||
private:
|
||||
double cutoffEnergy_eV;
|
||||
void set_cutoffEnergy_eV();
|
||||
|
||||
Reference in New Issue
Block a user