Injection stride on a per injected species basis

This commit is contained in:
2025-10-07 13:15:15 +02:00
parent 8425535f9d
commit 4a11245994
5 changed files with 116 additions and 134 deletions
+1 -9
View File
@@ -34,16 +34,12 @@ class Simulation {
void init(Parameter& parameter);
void start();
void finalize();
// cpu_syncs only included for debug purposes, e.g. only drawing decay particles
// at the 0th timestep
void processEvents(int events, const double beta_particle_weight);
void processEvents(int events);
void processDensityEvents(int particles_per_bin, 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 double weight_factor,
@@ -51,10 +47,6 @@ class Simulation {
std::map<std::string, double>& particleNumbers,
bool& all_bins_done);
// double meanFreePath(particle::Particle& particle, RandomNumbers* random,
// std::vector<double>& macroscopic_cross_sections_m);
// draw the individual collision times of the possible interactions and return the
// minimum of them. Also sets the "nextInteractionIndex" in the particle to the
// interaction of the chosen time.