removed infrastructure only needed for the old
density calculation scheme
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user