Bin based drawing implemented (debug output not
yet removed)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user