Bug fixes.
This commit is contained in:
@@ -9,23 +9,10 @@
|
||||
#ifndef simulation_h
|
||||
#define simulation_h
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <deque>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include "blitz/array.h"
|
||||
#include "blitz/tinyvec2.h"
|
||||
#include <random/uniform.h>
|
||||
#include <random/normal.h>
|
||||
|
||||
#include "parameter.h"
|
||||
#include "katrin.h"
|
||||
#include "particle.h"
|
||||
|
||||
#include "interaction.h"
|
||||
|
||||
|
||||
class Simulation: public Parameter
|
||||
@@ -49,23 +36,29 @@ protected:
|
||||
int numInjectedParticles;
|
||||
std::deque<Particle> particleQue;
|
||||
|
||||
// Injection
|
||||
Particle inject();
|
||||
double getBetaDecayEnergyRejection_eV();
|
||||
double EnergyDistributionBetaDecay(double Ekin_eV);
|
||||
double FermiFunction(double Z, double Ekin_eV);
|
||||
double getEnergyBoltzmann_eV();
|
||||
|
||||
bool move(Particle *inputParticle);
|
||||
// Moving
|
||||
void moveParticle(Particle *movePart, double MFP_m);
|
||||
double getMFP_m(Interaction Interaction);
|
||||
bool movedOutside(blitz::TinyVector<double,3> loc_m);
|
||||
int getInteraction(Particle inPutParticle);
|
||||
|
||||
// Interaction
|
||||
int getInteraction(Particle interPart);
|
||||
|
||||
// Termination
|
||||
bool checkTermination(Particle termPart);
|
||||
|
||||
// Logging
|
||||
bool logging;
|
||||
std::vector<std::ofstream> outStream;
|
||||
std::vector<double> zLogValues;
|
||||
void logParticle(Particle *inputParticle,blitz::TinyVector<double,3> oldLoc_m);
|
||||
void logParticle(Particle *logPart,blitz::TinyVector<double,3> oldLoc_m);
|
||||
std::string getTimeString();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user