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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user