Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#ifndef REFLECTOR_H
|
||||
#define REFLECTOR_H
|
||||
|
||||
#include "simulation/particle.h"
|
||||
|
||||
class Reflector {
|
||||
public:
|
||||
virtual bool needsReflectionBackToDomain(
|
||||
const particle::Particle* particle) const = 0;
|
||||
virtual void reflectBackToDomain(particle::Particle* particle) const = 0;
|
||||
};
|
||||
|
||||
class ReflectorDPS : public Reflector {
|
||||
public:
|
||||
ReflectorDPS(double z_position_dps);
|
||||
bool needsReflectionBackToDomain(const particle::Particle* particle) const;
|
||||
void reflectBackToDomain(particle::Particle* particle) const;
|
||||
|
||||
private:
|
||||
const double z_position_dps_;
|
||||
};
|
||||
|
||||
class NoReflector : public Reflector {
|
||||
bool needsReflectionBackToDomain(const particle::Particle* particle) const;
|
||||
void reflectBackToDomain(particle::Particle* particle) const;
|
||||
};
|
||||
|
||||
#endif /* REFLECTOR_H */
|
||||
Reference in New Issue
Block a user