Basic neccessities to draw from a density field;

does not yet work correctly since the neccessary
density field is reset after a time resolution
step
This commit is contained in:
2024-08-08 10:10:50 +02:00
parent 4301c4453b
commit b57f6ff201
7 changed files with 237 additions and 63 deletions
+6 -6
View File
@@ -34,12 +34,14 @@ class Simulation {
void init(Parameter& parameter);
void start();
void finalize();
void processEvents(int events, const int time_resolution_events);
void processEvents(int events, int density_events);
void processUntilTermination(particle::Particle& particle);
private:
std::vector<particle::Particle> determineInjectedParticles(
RandomNumbers* random, const int time_resolution_events);
std::vector<particle::Particle> determineInjectedParticles(RandomNumbers* random);
std::vector<particle::Particle>
determineInjectedDensityParticles(RandomNumbers* random,
const int numberParticlesToDraw);
double meanFreePath(particle::Particle& particle, RandomNumbers* random);
@@ -69,9 +71,7 @@ class Simulation {
std::shared_ptr<SimulationOutput> output_;
std::shared_ptr<CpuSynchronizer> cpu_synchronizer_;
std::vector<particle::Particle> queues_[2];
int active_queue_;
int non_active_queue_;
std::vector<particle::Particle> queue_;
};
#endif /* SIMULATION_H */