Added Mover for zero magnetic field
This commit is contained in:
@@ -47,4 +47,18 @@ class DriftMover : public Mover {
|
||||
const blitz::TinyVector<double, 3>& electric_field) const;
|
||||
};
|
||||
|
||||
// Mover for the case of 0 magnetic field. Simply ignores electric and magnetic field
|
||||
// for the movement step, i.e. velocity doesn't change.
|
||||
class EulerMover : public Mover {
|
||||
public:
|
||||
EulerMover(double maximal_distance);
|
||||
|
||||
void move(particle::Particle* particle,
|
||||
double mfp_m,
|
||||
ElectricField* electric_field,
|
||||
MagneticField* magnetic_field);
|
||||
private:
|
||||
const double maximal_distance_m_;
|
||||
};
|
||||
|
||||
#endif /* MOVER_H */
|
||||
|
||||
Reference in New Issue
Block a user