Added Ionization Channels for e+T2 -> now 3 Processes from Janev are available:

eT2_T2I_Ionization_Janev_(label)
1. non dissoziative labeled as ndiss
2. dissoziative via X2 Sigma^+_g labeled as diss_g
3. dissoziative via B2 Sigma^+_u labeled as diss_u

Added more Excitation Channels e + T2 from Janev
This commit is contained in:
Christian
2019-07-04 10:24:36 +02:00
parent 6ba3de7c6c
commit 4b744769c6
69 changed files with 843 additions and 378 deletions
+11 -11
View File
@@ -88,7 +88,7 @@ inline double Thermal_Population::get_density_m3(const vec3 &loc_m) {
double bin_size_m3 = bin_sizes.get_cell_volume_m3(loc_m);
double dens_m3 = cumulated_time_s_s/physical_time_s/bin_size_m3 - offset;
dens_m3 = (dens_m3 < 0) ? 0 : dens_m3;
return(dens_m3);
return dens_m3;
}
inline void Thermal_Population::increase_density(const Particle &upPart, const vec3 &oldLoc_m) {
@@ -106,22 +106,22 @@ inline vec3 Thermal_Population::get_average_speed_ms(const vec3 &loc_m) {
double z_wgtsHalf_m = Katrin_Geo::get_z_WGTSstart_m() + (Katrin_Geo::get_z_WGTSend_m() - Katrin_Geo::get_z_WGTSstart_m())/2;
double sign = (loc_m[2] < z_wgtsHalf_m) ? -1 : 1;
double zSpeed_ms = sign*wgtsT2FlowSpeed_ms;
return ( vec3(0,0,zSpeed_ms) );
return vec3(0,0,zSpeed_ms);
} else {
return (vec3(0,0,0));
return vec3(0,0,0);
}
}
inline vec3 Thermal_Population::roll_speed_ms(const vec3 &loc_m) {
Katrin_Geo::check_inKatrin(loc_m);
return (get_average_speed_ms(loc_m) + roll_thermSpeed_ms(loc_m));
return get_average_speed_ms(loc_m) + roll_thermSpeed_ms(loc_m);
}
inline vec3 Thermal_Population::roll_thermSpeed_ms(const vec3 &loc_m) {
double E_eV = roll_MBEnergy(wgtsTemp_K, m_eV, rngNormal);
double abs_speed_ms = calc_Speed_from_Ekin_eV(E_eV, m_eV);
vec3 speed_ms = roll_uniform_direction(rngUni)*abs_speed_ms;
return(speed_ms);
return speed_ms;
}
@@ -154,7 +154,7 @@ inline meta_vec Thermal_Population::get_bins_meta_info() {
}
temp_bin.z_min_m = temp_bin.z_max_m;
}
return (res);
return res;
}
inline bin_content_vec Thermal_Population::get_bins_content() {
@@ -177,7 +177,7 @@ inline bin_content_vec Thermal_Population::get_bins_content() {
}
}
}
return (res);
return res;
}
inline bin_count4 Thermal_Population::get_bin_count4() {
@@ -186,7 +186,7 @@ inline bin_count4 Thermal_Population::get_bin_count4() {
res[1] = get_r_scale().get_number_bins();
res[2] = get_phi_scale().get_number_bins();
res[3] = 0;
return(res);
return res;
}
inline void Thermal_Population::set_bins(bin_count4 bin_counts, bin_content_vec bin_contents) {
@@ -217,7 +217,7 @@ inline void Thermal_Population::set_bins(bin_count4 bin_counts, bin_content_vec
inline Lin_Scale Thermal_Population::get_z_scale() {
if (cumulated_times_s.get_z_scale() == number_annhilated.get_z_scale()) {
return (cumulated_times_s.get_z_scale());
return cumulated_times_s.get_z_scale();
} else {
std::stringstream ss;
ss<<"Thermal_Population::get_z_scale: Missmatch in scales.\n";
@@ -227,7 +227,7 @@ inline Lin_Scale Thermal_Population::get_z_scale() {
inline Lin_Scale Thermal_Population::get_r_scale() {
if (cumulated_times_s.get_r_scale() == number_annhilated.get_r_scale()) {
return (cumulated_times_s.get_r_scale());
return cumulated_times_s.get_r_scale();
} else {
std::stringstream ss;
ss<<"Thermal_Population::get_r_scale: Missmatch in scales.\n";
@@ -237,7 +237,7 @@ inline Lin_Scale Thermal_Population::get_r_scale() {
inline Lin_Scale Thermal_Population::get_phi_scale() {
if (cumulated_times_s.get_phi_scale() == number_annhilated.get_phi_scale()) {
return (cumulated_times_s.get_phi_scale());
return cumulated_times_s.get_phi_scale();
} else {
std::stringstream ss;
ss<<"Thermal_Population::get_phi_scale: Missmatch in scales.\n";