Major update:

1. Added precalculation of integral values in thermal regime.
2. Minor Changes in Injection of \beta-electrons and ions.
This commit is contained in:
Christian
2019-11-15 16:56:54 +01:00
parent 584b78914a
commit e24db610e5
59 changed files with 714 additions and 497 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ public:
this->dt_s = dt_s;
};
void move(Particle *movePart, const double &macroSigma_m);
void move(Particle *movePart, const double &macro_sigma_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_m) {
void E_Mover_Boris::move(Particle *movePart, const double &macro_sigma_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_m == 0) { // If infinite movement distance let electron leave at only exit... Prob extremly faulty, but also impossible.
if (macro_sigma_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_m;
double distance_m = 1/macro_sigma_m;
double traveledDistance_m = 0;
vec3 loc_m, E_Vm ,B_T;