Added new test class, reworked some code
Started Implementing Ionization
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "blitz/array.h"
|
||||
#include "blitz/tinyvec2.h"
|
||||
#include <random/uniform.h>
|
||||
#include <random/normal.h>
|
||||
|
||||
#include "parameter.h"
|
||||
#include "katrin.h"
|
||||
@@ -34,10 +35,8 @@ public:
|
||||
Simulation() {
|
||||
numInjectedParticles = 0;
|
||||
rngUni.seed(seed);
|
||||
initLogger();
|
||||
|
||||
logging = false;
|
||||
};
|
||||
|
||||
void initLogger(void);
|
||||
void doit(void);
|
||||
|
||||
@@ -46,10 +45,16 @@ protected:
|
||||
// Simulation
|
||||
Katrin Kat;
|
||||
ranlib::Uniform<double> rngUni;
|
||||
ranlib::NormalUnit<double> rngNormal;
|
||||
int numInjectedParticles;
|
||||
std::deque<Particle> particleQue;
|
||||
|
||||
Particle inject();
|
||||
double getBetaDecayEnergyRejection_eV();
|
||||
double EnergyDistributionBetaDecay(double Ekin_eV);
|
||||
double FermiFunction(double Z, double Ekin_eV);
|
||||
double getEnergyBoltzmann_eV();
|
||||
|
||||
bool move(Particle *inputParticle);
|
||||
bool movedOutside(blitz::TinyVector<double,3> loc_m);
|
||||
int getInteraction(Particle inPutParticle);
|
||||
@@ -57,12 +62,11 @@ protected:
|
||||
|
||||
|
||||
// Logging
|
||||
bool logging;
|
||||
std::vector<std::ofstream> outStream;
|
||||
std::vector<double> zLogValues;
|
||||
void logParticle(Particle *inputParticle,blitz::TinyVector<double,3> oldLoc_m);
|
||||
std::string getTimeString();
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user