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:
@@ -34,9 +34,9 @@ double BED_Ionization::get_TCS(double T_eV) {
|
||||
if (T_eV<=B_eV) {
|
||||
return (0);
|
||||
} else {
|
||||
double t = calc_t(T_eV);
|
||||
double t = get_t(T_eV);
|
||||
double fac = S_m2/(t+u+1);
|
||||
double sum1 = calc_Dt(t)*log(t);
|
||||
double sum1 = get_Dt(t)*log(t);
|
||||
double sum2 = (2-Ni/N)*( (t-1)/t - log(t)/(t+1) );
|
||||
return(fac*(sum1 + sum2) );
|
||||
}
|
||||
@@ -56,24 +56,24 @@ double BED_Ionization::get_SDCS (double T_eV, double W_eV) {
|
||||
if ( (T_eV<=B_eV) ||(W_eV >= (T_eV-B_eV) ) ) {
|
||||
return (0);
|
||||
} else {
|
||||
double t = calc_t(T_eV);
|
||||
double w = calc_w(W_eV);
|
||||
double t = get_t(T_eV);
|
||||
double w = get_w(W_eV);
|
||||
double fac = S_m2/B_eV/(t+u+1);
|
||||
double sum1 = (Ni/N - 2)/(t+1) * (1/(w+1) + 1/(t-w));
|
||||
double sum2 = (2-Ni/N) * (pow(w+1,-2) + pow(t-w,-2));
|
||||
double sum3 = log(t)/(N*(w+1)) * calc_dfdw(w);
|
||||
double sum3 = log(t)/(N*(w+1)) * get_dfdw(w);
|
||||
return(fac*(sum1 + sum2 + sum3));
|
||||
}
|
||||
}
|
||||
|
||||
double BED_Ionization::calc_t(double T_eV) {
|
||||
double BED_Ionization::get_t(double T_eV) {
|
||||
return(T_eV/B_eV);
|
||||
}
|
||||
double BED_Ionization::calc_w(double W_eV) {
|
||||
double BED_Ionization::get_w(double W_eV) {
|
||||
return(W_eV/B_eV);
|
||||
}
|
||||
|
||||
double BED_Ionization::calc_dfdw(double w) {
|
||||
double BED_Ionization::get_dfdw(double w) {
|
||||
double y = 1/(w+1);
|
||||
double res = 0;
|
||||
for (int i=0;i<4;i++) {
|
||||
@@ -82,7 +82,7 @@ double BED_Ionization::calc_dfdw(double w) {
|
||||
return(res);
|
||||
}
|
||||
|
||||
double BED_Ionization::calc_Dt(double t) {
|
||||
double BED_Ionization::get_Dt(double t) {
|
||||
double yh = 2/(t+1);
|
||||
double res = 0;
|
||||
for (int i=0;i<4;i++) {
|
||||
|
||||
Reference in New Issue
Block a user