Added some recombination and cluster formation channels.

Changed Parameter names to be more consistent.
This commit is contained in:
Christian
2019-10-14 15:37:45 +02:00
parent fe06550c8d
commit 3ddf92fd75
55 changed files with 543 additions and 355 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ public:
this->dt_s = dt_s;
};
void move(Particle *movePart, const double &macroSigma_m2);
void move(Particle *movePart, const double &macroSigma_m);
private:
double doBoris_singleStep_m(Particle *movePart, const vec3 &E_Vm , const vec3 &B_T);
@@ -28,18 +28,18 @@ private:
void doBoris_LogzDirChange(Particle *movePart, double *oldzDir, vec3 *oldLoc_m);
};
void E_Mover_Boris::move(Particle *movePart, const double &macroSigma_m2) {
void E_Mover_Boris::move(Particle *movePart, const double &macroSigma_m) {
// Prepare detection for change of z direction for logging
double oldzDir = movePart->get_v_ms()[2] < 0 ? -1 : 1;
vec3 oldLoc_m = movePart->get_x_m();
if (macroSigma_m2 == 0) { // If infinite movement distance let electron leave at only exit... Prob extremly faulty, but also impossible.
if (macroSigma_m == 0) { // If infinite movement distance let electron leave at only exit... Prob extremly faulty, but also impossible.
movePart->set_x_m(z_RW_m);
Logger->log(*movePart,oldLoc_m);
return;
}
double distance_m = 1/macroSigma_m2;
double distance_m = 1/macroSigma_m;
double traveledDistance_m = 0;
vec3 loc_m, E_Vm ,B_T;