Decoupled timestep from number of beta events

This commit is contained in:
2025-02-13 10:03:15 +01:00
parent 047cfa8491
commit 24b2c2f2ed
2 changed files with 138 additions and 119 deletions
+7 -5
View File
@@ -36,16 +36,18 @@ class Simulation {
void finalize();
// cpu_syncs only included for debug purposes, e.g. only drawing decay particles
// at the 0th timestep
void processEvents(int events, int density_events, int cpu_syncs,
const double beta_particle_weight);
void processEvents(int events, const double beta_particle_weight);
void processDensityEvents(int events, const double weight_factor);
void processUntilTermination(particle::Particle& particle);
private:
std::vector<particle::Particle> determineInjectedParticles(RandomNumbers* random,
const double beta_particle_weight);
std::vector<particle::Particle>
determineInjectedDensityParticles(RandomNumbers* random,
const int numberParticlesToDraw, const int current,
std::vector<particle::Particle> determineInjectedDensityParticles(
RandomNumbers* random,
const double weight_factor,
const int current,
std::map<std::string, double>& particleNumbers);
double meanFreePath(particle::Particle& particle, RandomNumbers* random,