Added Processors for T atoms.

This commit is contained in:
Christian
2019-07-04 14:06:24 +02:00
parent 4b744769c6
commit 576d256529
16 changed files with 216 additions and 191 deletions
+34
View File
@@ -0,0 +1,34 @@
//
// postive_drift.h
// mc_electron
//
// Created by Christian Reiling on 04.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef postive_drift_h
#define postive_drift_h
#include "drift_base.h"
class Positive_Mover_Drift : public Drift_Base {
public:
Positive_Mover_Drift(species this_species, Particle_Logger_Base *Logger, Population_Base *Population) : Drift_Base(this_species, Logger, Population) {};
protected:
void doWallInteraction(Particle *movePart, vec3 *oldLoc_m, double *znew_m);
};
void Positive_Mover_Drift::doWallInteraction(Particle *movePart, vec3 *oldLoc_m, double *znew_m) {
if (*znew_m >= Katrin_Geo::get_z_WGTSend_m()) {
*znew_m = Katrin_Geo::get_z_WGTSend_m();
}
if (*znew_m <= Katrin_Geo::get_z_RW_m()) {
*znew_m = Katrin_Geo::get_z_RW_m();
}
}
#endif /* postive_drift_h */