Multiple Changes:

Conceptional Change, where terminated Particles were set to Energy = 0. Now Particles are just moved within mover and termination detects, position and starts Interaction only if particle remains in tank.

Added function_container: Filled with anker points and get values corresponding to input by interpolation. 2D Interpolation needs improvement. CSV-Read in function needs error checks of input file.
Changes in katrin class: Boris Push and Drift Approximation improved.
Minor Renamings.
This commit is contained in:
Christian
2019-03-18 13:51:41 +01:00
parent 698eb8e7b2
commit e77176cc76
21 changed files with 503 additions and 186 deletions
+5 -5
View File
@@ -74,17 +74,17 @@ Particle::Particle(double mass_eV, double charge_e,vec3 loc_m, vec3 speed_ms, do
s = spec;
}
double Particle::borisFly_m(blitz::TinyVector<double, 3> E_Vm , blitz::TinyVector<double, 3> B_T , double dt_s) {
double Particle::do_BorisStep_m(blitz::TinyVector<double, 3> E_Vm , blitz::TinyVector<double, 3> B_T , double dt_s) {
double distance_m;
x_m += dt_s/2 * v_ms;
distance_m = dt_s/2 * getSpeedAbs_ms();
this->changeSpeedBoris(E_Vm , B_T , dt_s);
distance_m = dt_s/2 * get_SpeedAbs_ms();
this->doBoris_SpeedChange(E_Vm , B_T , dt_s);
x_m += dt_s/2 * v_ms;
distance_m += dt_s/2 * getSpeedAbs_ms();
distance_m += dt_s/2 * get_SpeedAbs_ms();
return(distance_m);
}
void Particle::changeSpeedBoris(blitz::TinyVector<double, 3> E_Vm , blitz::TinyVector<double, 3> B_T , double dt_s) {
void Particle::doBoris_SpeedChange(blitz::TinyVector<double, 3> E_Vm , blitz::TinyVector<double, 3> B_T , double dt_s) {
blitz::TinyVector<double, 3> vMinus_ms, vPlus_ms, vPrime_ms, t, s;
double q_C = -1*Z * e_C;
double m_kg = m_eV*e_C/c_ms/c_ms;