Bin based drawing implemented (debug output not

yet removed)
This commit is contained in:
2025-05-14 16:41:19 +02:00
parent 60430abcba
commit b28245f1a8
14 changed files with 328 additions and 36 deletions
+2 -2
View File
@@ -46,14 +46,14 @@ class Injector {
// 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
// the weight_factor 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,
const double weight,
const double weight_factor,
const double injection_time);
void initInjectionTimeDistribution(double delta_t);