removed infrastructure only needed for the old
density calculation scheme
This commit is contained in:
@@ -44,10 +44,6 @@ class Particle {
|
|||||||
void increaseTimeAlive(double time_s);
|
void increaseTimeAlive(double time_s);
|
||||||
double timeAlive() const;
|
double timeAlive() const;
|
||||||
|
|
||||||
void increaseTimeInBin(double time_s);
|
|
||||||
void resetTimeInBin();
|
|
||||||
double timeInBin() const;
|
|
||||||
|
|
||||||
long int ID() const;
|
long int ID() const;
|
||||||
|
|
||||||
double weight() const;
|
double weight() const;
|
||||||
@@ -59,7 +55,7 @@ class Particle {
|
|||||||
CartesianCoordinate position_;
|
CartesianCoordinate position_;
|
||||||
|
|
||||||
double time_alive_s_;
|
double time_alive_s_;
|
||||||
double time_in_bin_s_;
|
// double time_in_bin_s_;
|
||||||
long int interaction_counter_;
|
long int interaction_counter_;
|
||||||
|
|
||||||
std::shared_ptr<species::TrackedSpecie> specie_;
|
std::shared_ptr<species::TrackedSpecie> specie_;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ void BorisMover::move(particle::Particle* particle,
|
|||||||
|
|
||||||
movementStep(particle, E, B, g, moved_distance, timestep);
|
movementStep(particle, E, B, g, moved_distance, timestep);
|
||||||
particle->increaseTimeAlive(timestep);
|
particle->increaseTimeAlive(timestep);
|
||||||
particle->increaseTimeInBin(timestep);
|
// particle->increaseTimeInBin(timestep);
|
||||||
|
|
||||||
auto new_position = particle->position();
|
auto new_position = particle->position();
|
||||||
auto new_velocity = particle->velocity();
|
auto new_velocity = particle->velocity();
|
||||||
@@ -148,7 +148,7 @@ void BorisMover::move(particle::Particle* particle,
|
|||||||
if(died_in_bin)
|
if(died_in_bin)
|
||||||
particle->specie()->dynamicDensityField()->logMovement(
|
particle->specie()->dynamicDensityField()->logMovement(
|
||||||
old_position, old_kinetic_energy, old_mu, particle->weight());
|
old_position, old_kinetic_energy, old_mu, particle->weight());
|
||||||
particle->resetTimeInBin();
|
// particle->resetTimeInBin();
|
||||||
particle->specie()->currentCollector()->collect(particle, old_position);
|
particle->specie()->currentCollector()->collect(particle, old_position);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -401,7 +401,7 @@ void DriftMover::move(particle::Particle* particle,
|
|||||||
}
|
}
|
||||||
|
|
||||||
particle->increaseTimeAlive(timestep);
|
particle->increaseTimeAlive(timestep);
|
||||||
particle->increaseTimeInBin(timestep);
|
// particle->increaseTimeInBin(timestep);
|
||||||
// if instead of eps*deltaT 0.0 is used the integral would be conserved
|
// 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
|
// 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
|
// 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)
|
if(died_in_bin)
|
||||||
particle->specie()->dynamicDensityField()->logMovement(
|
particle->specie()->dynamicDensityField()->logMovement(
|
||||||
old_position, old_kinetic_energy, old_mu, particle->weight());
|
old_position, old_kinetic_energy, old_mu, particle->weight());
|
||||||
particle->resetTimeInBin();
|
|
||||||
particle->specie()->currentCollector()->collect(particle, old_position);
|
particle->specie()->currentCollector()->collect(particle, old_position);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ Particle::Particle(std::shared_ptr<species::TrackedSpecie> specie,
|
|||||||
velocity_(velocity, position),
|
velocity_(velocity, position),
|
||||||
id_(this->last_id_),
|
id_(this->last_id_),
|
||||||
time_alive_s_(time_birth),
|
time_alive_s_(time_birth),
|
||||||
time_in_bin_s_(0.),
|
|
||||||
interaction_counter_(0),
|
interaction_counter_(0),
|
||||||
weight_(weight) {
|
weight_(weight) {
|
||||||
last_id_++;
|
last_id_++;
|
||||||
@@ -101,18 +100,6 @@ double Particle::timeAlive() const {
|
|||||||
return time_alive_s_;
|
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 {
|
long int Particle::ID() const {
|
||||||
return id_;
|
return id_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user