Added option for initial weights in the injector
This commit is contained in:
@@ -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_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user