Moved drawing from density to seperate classes

This commit is contained in:
2025-02-05 10:31:56 +01:00
parent b529021149
commit 57ef99a57b
15 changed files with 376 additions and 280 deletions
+8 -7
View File
@@ -41,13 +41,14 @@ class Injector {
std::vector<particle::Particle> rollNewParticles(std::mt19937* engine,
const double current_time);
// void rollNewParticleFromDensityField(std::mt19937* engine,
// std::shared_ptr<species::TrackedSpecie> specie,
// std::vector<particle::Particle>& queue,
// const double weight,
// const double injection_time);
void rollNewParticleFromDensityField(std::mt19937* engine,
// draw new particles from the DynamicDensityField of the provided specie
// the new particles are then appened to the vector queue
// the magnetic field is necessary for the determination of the direction of the
// injected particles
// the weight scales the time a particle contributes to a certain bin
// and the injection time specifies the time the particle is injected (has to be
// between T, T+\DeltaT)
void drawNewParticleFromDensityField(std::mt19937* engine,
std::shared_ptr<species::TrackedSpecie> specie,
std::vector<particle::Particle>& queue,
std::shared_ptr<MagneticField> field,