Changes to Interaction Processor, making possible to add infinite Interactions for all kind of Particles
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// mover.hpp
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 13.04.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef mover_hpp
|
||||
#define mover_hpp
|
||||
|
||||
#include "functions.hpp"
|
||||
#include "katrin.hpp"
|
||||
#include "particle.hpp"
|
||||
#include "logger.hpp"
|
||||
|
||||
// Mover: Moves Particles within WGTS using parameter propagationMethod to determine Method.
|
||||
// Also Logging during movement
|
||||
class Mover {
|
||||
public:
|
||||
Mover(Katrin *Kat, H5_Logger *Log) {
|
||||
this->Kat = Kat;
|
||||
this->Log = Log;
|
||||
};
|
||||
|
||||
void moveParticle(Particle *movePart, const double &distance_m);
|
||||
|
||||
private:
|
||||
void do_DriftApproximationMovement(const double &distance_m);
|
||||
double getDrift_znew_m(const double &distance_m);
|
||||
void doDrift_WallInteraction(vec3 *oldLoc_m, double *znew_m);
|
||||
|
||||
void do_BorisPushMovement(const double &distance_m);
|
||||
double doBoris_singleStep_m(const vec3 &E_Vm , const vec3 &B_T);
|
||||
void doBoris_speedChange(const vec3 &E_Vm, const vec3 &B_T);
|
||||
bool doBoris_WallInteraction();
|
||||
void doBoris_LogzDirChange(double *oldzDir, vec3 *oldLoc_m);
|
||||
|
||||
static const int propagationMethod;
|
||||
static const double dt_s;
|
||||
|
||||
Particle *movePart;
|
||||
|
||||
Katrin *Kat;
|
||||
H5_Logger *Log;
|
||||
};
|
||||
#endif /* mover_hpp */
|
||||
Reference in New Issue
Block a user