Moved drawing from density to seperate classes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user