Added Interactions:
diss. excitation between e and T_2^+, T_3^+ and vice versa.
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
Ionization:
|
||||
Using BED-Model Kim and Rudd 1994
|
||||
*/
|
||||
class eT2_T2I_Ionization_Base : public Sub_Interaction_Base {
|
||||
class eT2_Ionization_Base : public Sub_Interaction_Base {
|
||||
double deltaE_eV;
|
||||
public:
|
||||
eT2_T2I_Ionization_Base(Population_Base *T2Population, UniRNG *rngUni, double deltaE_eV) : Sub_Interaction_Base(T2Population, rngUni){
|
||||
eT2_Ionization_Base(Population_Base *T2Population, UniRNG *rngUni, double deltaE_eV) : Sub_Interaction_Base(T2Population, rngUni){
|
||||
this->deltaE_eV = deltaE_eV;
|
||||
};
|
||||
|
||||
@@ -39,7 +39,7 @@ protected:
|
||||
virtual void add_Tritiums(InteractionOut *InterOut, const Particle &interPart) = 0;
|
||||
};
|
||||
|
||||
inline InteractionOut eT2_T2I_Ionization_Base::do_Interaction (Particle *interPart) {
|
||||
inline InteractionOut eT2_Ionization_Base::do_Interaction (Particle *interPart) {
|
||||
vec3 v1_ms = interPart->get_v_ms();
|
||||
vec3 vOff_ms = get_vOff_ms(*interPart, deltaE_eV);
|
||||
vec3 vLab_ms = v1_ms - vOff_ms;
|
||||
@@ -73,7 +73,7 @@ inline InteractionOut eT2_T2I_Ionization_Base::do_Interaction (Particle *interPa
|
||||
return InterOut;
|
||||
}
|
||||
|
||||
inline vec3 eT2_T2I_Ionization_Base::roll_vLab_ms(const Particle &interPart) {
|
||||
inline vec3 eT2_Ionization_Base::roll_vLab_ms(const Particle &interPart) {
|
||||
vec3 v_ms = interPart.get_v_ms();
|
||||
vec3 vT2_ms = Population->roll_v_ms(interPart.get_x_m());
|
||||
vec3 vLab_ms = v_ms - vT2_ms;
|
||||
@@ -85,7 +85,7 @@ inline vec3 eT2_T2I_Ionization_Base::roll_vLab_ms(const Particle &interPart) {
|
||||
}
|
||||
}
|
||||
|
||||
inline double eT2_T2I_Ionization_Base::roll_theta1(double T_eV, double W_eV) {
|
||||
inline double eT2_Ionization_Base::roll_theta1(double T_eV, double W_eV) {
|
||||
double theta1;
|
||||
if (W_eV > 100) {
|
||||
double numerator = W_eV/T_eV;
|
||||
@@ -97,7 +97,7 @@ inline double eT2_T2I_Ionization_Base::roll_theta1(double T_eV, double W_eV) {
|
||||
return theta1;
|
||||
}
|
||||
|
||||
inline double eT2_T2I_Ionization_Base::roll_theta2(double T_eV, double W_eV) {
|
||||
inline double eT2_Ionization_Base::roll_theta2(double T_eV, double W_eV) {
|
||||
double theta2;
|
||||
if (W_eV > 200) {
|
||||
double numerator = 1- W_eV/T_eV;
|
||||
@@ -117,9 +117,9 @@ inline double eT2_T2I_Ionization_Base::roll_theta2(double T_eV, double W_eV) {
|
||||
}
|
||||
|
||||
|
||||
class eT2_T2I_Ionization_BED_Base : public eT2_T2I_Ionization_Base {
|
||||
class eT2_Ionization_BED_Base : public eT2_Ionization_Base {
|
||||
public:
|
||||
eT2_T2I_Ionization_BED_Base(Population_Base *T2Population, UniRNG *rngUni) : eT2_T2I_Ionization_Base(T2Population, rngUni, EionT2_eV){};
|
||||
eT2_Ionization_BED_Base(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_Base(T2Population, rngUni, EionT2_eV){};
|
||||
|
||||
protected:
|
||||
virtual double get_microSigma_m2(const double &T_eV) = 0;
|
||||
@@ -134,9 +134,9 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class eT2_T2I_Ionization_BED_Analytic : public eT2_T2I_Ionization_BED_Base {
|
||||
class eT2_Ionization_BED_Analytic : public eT2_Ionization_BED_Base {
|
||||
public:
|
||||
eT2_T2I_Ionization_BED_Analytic(Population_Base *T2Population, UniRNG *rngUni) : eT2_T2I_Ionization_BED_Base(T2Population, rngUni) {};
|
||||
eT2_Ionization_BED_Analytic(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_BED_Base(T2Population, rngUni) {};
|
||||
|
||||
protected:
|
||||
double get_microSigma_m2(const double &E_eV) {
|
||||
@@ -158,13 +158,13 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class eT2_T2I_Ionization_BED_Container : public eT2_T2I_Ionization_BED_Base {
|
||||
class eT2_Ionization_BED_Container : public eT2_Ionization_BED_Base {
|
||||
TCS_Container tcs_data;
|
||||
DCS_Ionization_Container dcs_data;
|
||||
|
||||
public:
|
||||
eT2_T2I_Ionization_BED_Container(Population_Base *T2Population, UniRNG *rngUni) :
|
||||
eT2_T2I_Ionization_BED_Base(T2Population, rngUni),
|
||||
eT2_Ionization_BED_Container(Population_Base *T2Population, UniRNG *rngUni) :
|
||||
eT2_Ionization_BED_Base(T2Population, rngUni),
|
||||
tcs_data(scale_start, scale_end, 100, (get_data_path() + "eT2_ion_TCS.dat")),
|
||||
dcs_data(EionT2_eV, scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat"))
|
||||
{};
|
||||
@@ -180,11 +180,11 @@ protected:
|
||||
|
||||
|
||||
// Not very fancy from here. Either one function for all 3 or base class with dcs_data, genereally only load the data once.
|
||||
class eT2_T2I_Ionization_Janev_ndiss : public eT2_T2I_Ionization_Base {
|
||||
class eT2_Ionization_Janev_ndiss : public eT2_Ionization_Base {
|
||||
DCS_Ionization_Container dcs_data;
|
||||
|
||||
public:
|
||||
eT2_T2I_Ionization_Janev_ndiss(Population_Base *T2Population, UniRNG *rngUni) : eT2_T2I_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_ndiss::get_deltaE_eV()), dcs_data(Janev_eT2_Ionization_ndiss::get_deltaE_eV(), scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat")) {};
|
||||
eT2_Ionization_Janev_ndiss(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_ndiss::get_deltaE_eV()), dcs_data(Janev_eT2_Ionization_ndiss::get_deltaE_eV(), scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat")) {};
|
||||
|
||||
protected:
|
||||
double get_microSigma_m2(const double &E_eV) {
|
||||
@@ -204,11 +204,11 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class eT2_T2I_Ionization_Janev_diss_g : public eT2_T2I_Ionization_Base {
|
||||
class eT2_Ionization_Janev_diss_g : public eT2_Ionization_Base {
|
||||
DCS_Ionization_Container dcs_data;
|
||||
|
||||
public:
|
||||
eT2_T2I_Ionization_Janev_diss_g(Population_Base *T2Population, UniRNG *rngUni) : eT2_T2I_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_diss_g::get_deltaE_eV()), dcs_data(Janev_eT2_Ionization_diss_g::get_deltaE_eV(), scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat")) {};
|
||||
eT2_Ionization_Janev_diss_g(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_diss_g::get_deltaE_eV()), dcs_data(Janev_eT2_Ionization_diss_g::get_deltaE_eV(), scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat")) {};
|
||||
|
||||
protected:
|
||||
double get_microSigma_m2(const double &E_eV) {
|
||||
@@ -233,11 +233,11 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class eT2_T2I_Ionization_Janev_diss_u : public eT2_T2I_Ionization_Base {
|
||||
class eT2_Ionization_Janev_diss_u : public eT2_Ionization_Base {
|
||||
DCS_Ionization_Container dcs_data;
|
||||
|
||||
public:
|
||||
eT2_T2I_Ionization_Janev_diss_u(Population_Base *T2Population, UniRNG *rngUni) : eT2_T2I_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_diss_u::get_deltaE_eV()), dcs_data(Janev_eT2_Ionization_diss_u::get_deltaE_eV(), scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat")) {};
|
||||
eT2_Ionization_Janev_diss_u(Population_Base *T2Population, UniRNG *rngUni) : eT2_Ionization_Base(T2Population, rngUni, Janev_eT2_Ionization_diss_u::get_deltaE_eV()), dcs_data(Janev_eT2_Ionization_diss_u::get_deltaE_eV(), scale_end, 100, 50, (get_data_path() + "eT2_ion_DCS.dat")) {};
|
||||
|
||||
protected:
|
||||
double get_microSigma_m2(const double &E_eV) {
|
||||
|
||||
Reference in New Issue
Block a user