Major changes:
- Moved to array operations for main loops. - Changed to setting pointers to operator only once before loop. - Changed Population Containers - Added Recombination - Added Inelastic Scattering Kinematics - Reworked Elastic Scattering Cross Section - Reworked Elastic Scattering Kinematics - Reworked organisation of different particle species and corresponding operators
This commit is contained in:
@@ -9,31 +9,38 @@
|
||||
#ifndef simulation_hpp
|
||||
#define simulation_hpp
|
||||
|
||||
#include "h5_file.hpp"
|
||||
#include "timer.hpp"
|
||||
|
||||
#include "logger_builder.hpp"
|
||||
#include "population_builder.hpp"
|
||||
|
||||
#include "injector.hpp"
|
||||
#include "mover.hpp"
|
||||
#include "terminator.hpp"
|
||||
#include "mover_builder.hpp"
|
||||
#include "interaction_builder.hpp"
|
||||
#include "particle.hpp"
|
||||
#include "terminator_builder.hpp"
|
||||
|
||||
|
||||
|
||||
|
||||
class Simulation {
|
||||
static const long int seed;
|
||||
static const long int numberTotalDecays;
|
||||
static const int maxInteractions;
|
||||
|
||||
UniRNG rngUni;
|
||||
NormalRNG rngNormal;
|
||||
|
||||
H5_Logger Log;
|
||||
Timer Tim;
|
||||
Population Pop;
|
||||
H5_File h5f;
|
||||
Timer timer;
|
||||
|
||||
Injector Inj;
|
||||
Mover Mov;
|
||||
InteractionProcessor Inter;
|
||||
Terminator Term;
|
||||
Particle_Logger_Manager loggers;
|
||||
Population_Manager populations;
|
||||
|
||||
|
||||
Injector injector;
|
||||
Mover_Manager movers;
|
||||
Interaction_Manager interactions;
|
||||
Terminator_Manager terminators;
|
||||
|
||||
int numberTotalParticles = 0;
|
||||
int numberDecays = 0;
|
||||
@@ -42,9 +49,11 @@ class Simulation {
|
||||
int updater_fraction;
|
||||
|
||||
public:
|
||||
Simulation() {init_Simulation();}
|
||||
Simulation() {
|
||||
init();
|
||||
}
|
||||
private:
|
||||
void init_Simulation();
|
||||
void init();
|
||||
void set_RNGs();
|
||||
void set_statusUpdater();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user