Added vibrational excitation 0->1, 0->2
Previous commit was incomplete.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// eT2I_recombination.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 18.06.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef eT2I_recombination_h
|
||||
#define eT2I_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 /* eT2I_recombination_h */
|
||||
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// eT2_vibexc0102.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 18.06.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef eT2_vibexc0102_h
|
||||
#define eT2_vibexc0102_h
|
||||
|
||||
#include "exc_base.h"
|
||||
#include "janev_eT2_vibexc0102.h"
|
||||
|
||||
class eT2_VibExc01 : public Excitation_Base {
|
||||
public:
|
||||
eT2_VibExc01(Population_Base *T2Population, UniRNG *rngUni) : Excitation_Base(T2Population, rngUni, Janev_eT2_VibExc0102::get_deltaE_eV(1)) {};
|
||||
|
||||
private:
|
||||
double get_microSigma_m2(const double &Ekin_eV) {
|
||||
return Janev_eT2_VibExc0102::get_TCS(Ekin_eV, 1);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class eT2_VibExc02 : public Excitation_Base {
|
||||
public:
|
||||
eT2_VibExc02(Population_Base *T2Population, UniRNG *rngUni) : Excitation_Base(T2Population, rngUni, Janev_eT2_VibExc0102::get_deltaE_eV(2)) {};
|
||||
|
||||
private:
|
||||
double get_microSigma_m2(const double &Ekin_eV) {
|
||||
return Janev_eT2_VibExc0102::get_TCS(Ekin_eV, 2);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif /* eT2_vibexc0102_h */
|
||||
@@ -0,0 +1,67 @@
|
||||
//
|
||||
// exc_base.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 18.06.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef exc_base_h
|
||||
#define exc_base_h
|
||||
|
||||
|
||||
class Excitation_Base : public Sub_Interaction_Base {
|
||||
Inelastic_Kinematic_Base kinematics;
|
||||
DCS_Theta_Container dcs_data;
|
||||
double deltaE_eV;
|
||||
|
||||
public:
|
||||
Excitation_Base(Population_Base *Population, UniRNG *rngUni, double deltaE_eV) : Sub_Interaction_Base(Population, rngUni),
|
||||
kinematics(deltaE_eV, me_eV, mT2_eV),
|
||||
dcs_data(zero, 2e4, 1e3, 200, get_data_path() + "eT2_ela_DCS.dat") {
|
||||
this->deltaE_eV = deltaE_eV;
|
||||
}
|
||||
|
||||
double get_macroSigma_m2(const Particle &interPart);
|
||||
InteractionOut do_Interaction (Particle *interPart);
|
||||
private:
|
||||
double calc_T_eV(Particle *interPart, vec3 *v2_ms);
|
||||
virtual double get_microSigma_m2(const double &Ekin_EV) = 0;
|
||||
};
|
||||
|
||||
|
||||
inline double Excitation_Base::get_macroSigma_m2(const Particle &interPart) {
|
||||
double Ekin_eV = interPart.get_EKin_eV();
|
||||
double microSigma_m2 = get_microSigma_m2(Ekin_eV);
|
||||
vec3 loc_m = interPart.get_Location_m();
|
||||
double n_m3 = Population->get_density_m3(loc_m);
|
||||
return (microSigma_m2*n_m3);
|
||||
}
|
||||
|
||||
inline InteractionOut Excitation_Base::do_Interaction (Particle *interPart) {
|
||||
vec3 v2_ms = Population->roll_speed_ms(interPart->get_Location_m());
|
||||
double T_eV = calc_T_eV(interPart, &v2_ms);
|
||||
double theta_lab = dcs_data.roll_value(T_eV,rngUni);
|
||||
double phi_lab = rngUni->random() * 2 * pi;
|
||||
kinematics.doKinematics(interPart, v2_ms, theta_lab, phi_lab);
|
||||
return (InteractionOut());
|
||||
}
|
||||
|
||||
inline double Excitation_Base::calc_T_eV(Particle *interPart, vec3 *v2_ms) {
|
||||
vec3 v_ms = interPart->get_Speed_ms();
|
||||
vec3 vLab_ms = v_ms - *v2_ms;
|
||||
double T_eV = calc_Ekin_eV_from_speed(vLab_ms, me_eV);
|
||||
if (T_eV < deltaE_eV) {
|
||||
*v2_ms = 0;
|
||||
T_eV = calc_Ekin_eV_from_speed(v_ms, me_eV);
|
||||
if (T_eV < deltaE_eV) {
|
||||
std::stringstream ss;
|
||||
ss<<"Excitation_Base::calc_T_eV: T_eV < deltaE_eV \n";
|
||||
throw MyException (ss.str());
|
||||
}
|
||||
}
|
||||
return (T_eV);
|
||||
}
|
||||
|
||||
|
||||
#endif /* exc_base_h */
|
||||
@@ -0,0 +1,60 @@
|
||||
//
|
||||
// janev_eT2_vibexc0102.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 18.06.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef janev_eT2_vibexc0102_h
|
||||
#define janev_eT2_vibexc0102_h
|
||||
|
||||
#include "error_types.h"
|
||||
|
||||
|
||||
class Janev_eT2_VibExc0102 {
|
||||
public:
|
||||
Janev_eT2_VibExc0102() {}
|
||||
|
||||
static double get_TCS(const double &E_eV, const int &finale_state) {
|
||||
if (E_eV<get_deltaE_eV(finale_state)) {
|
||||
return (0);
|
||||
}
|
||||
double xi = get_xi(finale_state);
|
||||
double deltaE_eV = get_deltaE_eV(finale_state);
|
||||
double x = E_eV/deltaE_eV;
|
||||
double fac1 = 5.78*xi*pow(deltaE_eV,-4)*pow(x,-2);
|
||||
double fac2 = pow(1-1/x, 6.11*pow(deltaE_eV,-0.5));
|
||||
return fac1*fac2*1e-20;
|
||||
}
|
||||
|
||||
static double get_deltaE_eV(const int &finale_state) {
|
||||
if (finale_state == 1) {
|
||||
return (0.516);
|
||||
} else if (finale_state == 2) {
|
||||
return (1.003);
|
||||
}
|
||||
std::stringstream ss;
|
||||
ss<<"Janev_eT2_Recombination:get_deltaE_eV: finale_state != 1,2 \n";
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
|
||||
private:
|
||||
static double get_xi(const int &finale_state) {
|
||||
if (finale_state == 1) {
|
||||
return (1);
|
||||
} else if (finale_state == 2) {
|
||||
return (0.628);
|
||||
}
|
||||
std::stringstream ss;
|
||||
ss<<"Janev_eT2_Recombination:get_xi: finale_state != 1,2 \n";
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* janev_eT2_vibexc0102_h */
|
||||
Reference in New Issue
Block a user