Fixed bug in pop_log_bin Population_Logger::transform.

Added Vibrational Exitation 0->1 0->2.
This commit is contained in:
Christian
2019-06-23 16:21:39 +02:00
parent 61c29739a8
commit 599d70c65d
4 changed files with 11 additions and 49 deletions
-1
View File
@@ -35,7 +35,6 @@ public:
inline double eT2_Elastic::get_macroSigma_m2(const Particle &interPart) {
double Ekin_eV = interPart.get_EKin_eV();
double microSigma_m2 = tcs_data.get_value(Ekin_eV);
//std::cout<<"DEBUG:\t"<<microSigma_m2<<"\n";
vec3 loc_m = interPart.get_Location_m();
double nT2_m3 = Population->get_density_m3(loc_m);
return (microSigma_m2*nT2_m3);
-42
View File
@@ -1,42 +0,0 @@
//
// e_T2I_recombination.h
// mc_electron
//
// Created by Christian Reiling on 24.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef e_T2I_recombination_h
#define e_T2I_recombination_h
#include "sub_interaction_base.h"
#include "tcs_container.hpp"
#include "janev_eT2I_recombination.h"
class eT2I_Recombination : public Sub_Interaction_Base {
public:
eT2I_Recombination(Population_Base *T2IPopulation, UniRNG *rngUni) : Sub_Interaction_Base(T2IPopulation, rngUni) {}
double get_macroSigma_m2(const Particle &interPart);
InteractionOut do_Interaction (Particle *interPart);
};
inline double eT2I_Recombination::get_macroSigma_m2(const Particle &interPart) {
double Ekin_eV = interPart.get_EKin_eV();
double microSigma_m2 = Janev_eT2_Recombination::get_TCS(Ekin_eV);
vec3 loc_m = interPart.get_Location_m();
double nT2I_m3 = Population->get_density_m3(loc_m);
return (microSigma_m2*nT2I_m3);
}
inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
InteractionOut res;
res.set_delete_current(true);
res.set_decrease(tritium2I, interPart->get_Location_m(), 0); // 0 is dummy parameter, since thermal population
// Maybe add the 2 T atoms.
return(res);
}
#endif /* e_T2I_recombination_h */
+6 -1
View File
@@ -10,7 +10,8 @@
#include "eT2_elastic.h"
#include "eT2_ionization.h"
#include "e_T2I_recombination.h"
#include "eT2I_recombination.h"
#include "eT2_vibexc0102.h"
#include "TT2_elastic.h"
@@ -37,7 +38,11 @@ Interaction_Base* Interaction_Builder::build_electron(Population_Manager *Popula
if (eT2ionization == 1) {
eInteraction->add(new eT2_T2I_Ionization_Container(T2Population, rngUni));
}
eInteraction->add(new eT2I_Recombination(T2IPopulation, rngUni));
eInteraction->add(new eT2_VibExc01(T2Population, rngUni));
eInteraction->add(new eT2_VibExc02(T2Population, rngUni));
return(eInteraction);
}
+5 -5
View File
@@ -69,11 +69,11 @@ inline pop_log_bin Population_Logger::transform(pop_bin_content pop_bin) {
pop_log_bin res;
res.phys_time_s = timer->get_physTime_s();
res.z_bin = pop_bin.z_bin;
res.z_bin = pop_bin.r_bin;
res.z_bin = pop_bin.phi_bin;
res.z_bin = pop_bin.E_bin;
res.z_bin = pop_bin.cumulated_time_s;
res.z_bin = pop_bin.offset;
res.r_bin = pop_bin.r_bin;
res.phi_bin = pop_bin.phi_bin;
res.E_bin = pop_bin.E_bin;
res.cumulated_time_s = pop_bin.cumulated_time_s;
res.offset = pop_bin.offset;
return res;
}