Changed distance drawing procedure;
Changed mover to work with times instead of distance; Changed how interactions are done (recombination still tbd)
This commit is contained in:
@@ -4,10 +4,15 @@
|
||||
#include "simulation/electromagnetic_field.h"
|
||||
#include "simulation/particle.h"
|
||||
|
||||
|
||||
/*
|
||||
change the mfp_m variable to a time_s variable!
|
||||
*/
|
||||
|
||||
class Mover {
|
||||
public:
|
||||
virtual void move(particle::Particle* particle,
|
||||
double mfp_m,
|
||||
double collision_time_s,
|
||||
ElectricField* electric_field,
|
||||
MagneticField* magnetic_field,
|
||||
GravityField* gravity_field) = 0;
|
||||
@@ -18,7 +23,7 @@ class BorisMover : public Mover {
|
||||
BorisMover(double maximal_time_step_s);
|
||||
|
||||
void move(particle::Particle* particle,
|
||||
double mfp_m,
|
||||
double collision_time_s,
|
||||
ElectricField* electric_field,
|
||||
MagneticField* magnetic_field,
|
||||
GravityField* gravity_field);
|
||||
@@ -30,7 +35,7 @@ class BorisMover : public Mover {
|
||||
const blitz::TinyVector<double, 3>& electric_field,
|
||||
const blitz::TinyVector<double, 3>& magnetic_field,
|
||||
const blitz::TinyVector<double, 3>& gravity_field,
|
||||
double& moved_distance,
|
||||
// double& moved_distance,
|
||||
double timestep) const;
|
||||
};
|
||||
|
||||
@@ -39,7 +44,7 @@ class DriftMover : public Mover {
|
||||
DriftMover(double maximal_distance);
|
||||
|
||||
void move(particle::Particle* particle,
|
||||
double mfp_m,
|
||||
double collision_time_s,
|
||||
ElectricField* electric_field,
|
||||
MagneticField* magnetic_field,
|
||||
GravityField* gravity_field);
|
||||
|
||||
Reference in New Issue
Block a user