removed the 4d density field

This commit is contained in:
2024-11-04 16:08:40 +01:00
parent b1519cb4ca
commit 5dffc0c102
21 changed files with 110 additions and 647 deletions
+3 -1
View File
@@ -85,6 +85,7 @@ std::vector<particle::Particle> Injector::rollNewParticles(
return new_particles;
}
/*
void Injector::rollNewParticleFromDensityField(std::mt19937* engine,
std::shared_ptr<species::TrackedSpecie> specie,
std::vector<particle::Particle>& queue,
@@ -122,6 +123,7 @@ void Injector::rollNewParticleFromDensityField(std::mt19937* engine,
queue.push_back(drawn_particle);
}
*/
void Injector::rollNewParticleFromDensityField(std::mt19937* engine,
std::shared_ptr<species::TrackedSpecie> specie,
@@ -130,7 +132,7 @@ void Injector::rollNewParticleFromDensityField(std::mt19937* engine,
const double weight,
const double injection_time) {
blitz::TinyVector<double, 5> particle_specs =
specie->dynamicDensityFieldWithPitchAngleForDrawing()->draw(engine);
specie->densityForDrawing()->draw(engine);
// check if density was empty (i.e. Energy component is 0)
if (particle_specs[4] == 0) {