Electric field only used at the position at the beginning of the timestep,
the magnetic field is not changed since its value does not depend on the particles; Added a reflector for both ends of the cylinder
This commit is contained in:
@@ -20,6 +20,16 @@ class ReflectorDPS : public Reflector {
|
||||
const double z_position_dps_;
|
||||
};
|
||||
|
||||
class LongitudinalReflector : public Reflector {
|
||||
public:
|
||||
LongitudinalReflector(double height);
|
||||
bool needsReflectionBackToDomain(const particle::Particle* particle) const;
|
||||
void reflectBackToDomain(particle::Particle* particle) const;
|
||||
|
||||
private:
|
||||
const double height_;
|
||||
};
|
||||
|
||||
class NoReflector : public Reflector {
|
||||
bool needsReflectionBackToDomain(const particle::Particle* particle) const;
|
||||
void reflectBackToDomain(particle::Particle* particle) const;
|
||||
|
||||
Reference in New Issue
Block a user