removed infrastructure only needed for the old

density calculation scheme
This commit is contained in:
2025-05-06 09:53:18 +02:00
parent 89e0a0eb2a
commit 2c79c567d8
3 changed files with 4 additions and 22 deletions
+3 -4
View File
@@ -98,7 +98,7 @@ void BorisMover::move(particle::Particle* particle,
movementStep(particle, E, B, g, moved_distance, timestep);
particle->increaseTimeAlive(timestep);
particle->increaseTimeInBin(timestep);
// particle->increaseTimeInBin(timestep);
auto new_position = particle->position();
auto new_velocity = particle->velocity();
@@ -148,7 +148,7 @@ void BorisMover::move(particle::Particle* particle,
if(died_in_bin)
particle->specie()->dynamicDensityField()->logMovement(
old_position, old_kinetic_energy, old_mu, particle->weight());
particle->resetTimeInBin();
// particle->resetTimeInBin();
particle->specie()->currentCollector()->collect(particle, old_position);
}
@@ -401,7 +401,7 @@ void DriftMover::move(particle::Particle* particle,
}
particle->increaseTimeAlive(timestep);
particle->increaseTimeInBin(timestep);
// particle->increaseTimeInBin(timestep);
// if instead of eps*deltaT 0.0 is used the integral would be conserved
// if no particles are lost at a boundary. however in that case the terminator does not
// return the correct value if the time the particle is alive is identical
@@ -460,7 +460,6 @@ void DriftMover::move(particle::Particle* particle,
if(died_in_bin)
particle->specie()->dynamicDensityField()->logMovement(
old_position, old_kinetic_energy, old_mu, particle->weight());
particle->resetTimeInBin();
particle->specie()->currentCollector()->collect(particle, old_position);
}
-13
View File
@@ -28,7 +28,6 @@ Particle::Particle(std::shared_ptr<species::TrackedSpecie> specie,
velocity_(velocity, position),
id_(this->last_id_),
time_alive_s_(time_birth),
time_in_bin_s_(0.),
interaction_counter_(0),
weight_(weight) {
last_id_++;
@@ -101,18 +100,6 @@ double Particle::timeAlive() const {
return time_alive_s_;
}
void Particle::increaseTimeInBin(double time_s) {
time_in_bin_s_ += time_s;
}
void Particle::resetTimeInBin() {
time_in_bin_s_ = 0.;
}
double Particle::timeInBin() const {
return time_in_bin_s_*weight_;
}
long int Particle::ID() const {
return id_;
}