Basic changes for time resolution.

Input from json still suboptimal.
This commit is contained in:
2024-05-14 09:23:52 +02:00
parent cac5e6ff5d
commit 77fa8d175a
12 changed files with 84 additions and 36 deletions
+5 -3
View File
@@ -34,13 +34,15 @@ class Simulation {
void init(Parameter& parameter);
void start();
void finalize();
void processEvents(int events);
void processEvents(int events, std::vector<particle::Particle>& backup_queue,
const int time_resolution_events);
void processUntilTermination(particle::Particle& particle,
std::vector<particle::Particle>& particle_queue);
std::vector<particle::Particle>& particle_queue,
std::vector<particle::Particle>& backup_queue);
private:
std::vector<particle::Particle> determineInjectedParticles(
RandomNumbers* random);
RandomNumbers* random, const int time_resolution_events);
double meanFreePath(particle::Particle& particle, RandomNumbers* random);