Added option for initial weights in the injector

This commit is contained in:
2024-07-31 10:35:14 +02:00
parent 961f1a2a8e
commit 4301c4453b
7 changed files with 36 additions and 12 deletions
+6 -1
View File
@@ -15,7 +15,8 @@ class Particle {
Particle(std::shared_ptr<species::TrackedSpecie> specie,
const Coordinate& position,
const Vector& velocity,
const double time_birth);
const double time_birth,
const double weight);
void position(const Coordinate& new_position);
CartesianCoordinate position() const;
@@ -49,7 +50,11 @@ class Particle {
long int ID() const;
double weight() const;
private:
double weight_;
CartesianVector velocity_;
CartesianCoordinate position_;