Major update:
1. Added precalculation of integral values in thermal regime. 2. Minor Changes in Injection of \beta-electrons and ions.
This commit is contained in:
@@ -18,14 +18,19 @@ protected:
|
||||
double deltaE_eV;
|
||||
|
||||
public:
|
||||
Excitation_Base(Population_Base *Population, UniRNG *rngUni, double deltaE_eV, DCS_Base *dcs_gen) : e_thermal_Interaction_Base(Population, rngUni) {
|
||||
Excitation_Base(Population_Base *Population, UniRNG *rngUni, double m_eV, double deltaE_eV, DCS_Base *dcs_gen) : e_thermal_Interaction_Base(Population, rngUni, m_eV) {
|
||||
this->deltaE_eV = deltaE_eV;
|
||||
this->dcs_gen = dcs_gen;
|
||||
}
|
||||
|
||||
double get_macro_sigma_m(const Particle &interPart) {
|
||||
if (interPart.get_E_eV() < deltaE_eV) {
|
||||
return 0;
|
||||
} else {
|
||||
return e_thermal_Interaction_Base::get_macro_sigma_m(interPart);
|
||||
}
|
||||
}
|
||||
InteractionOut do_Interaction (Particle *interPart);
|
||||
private:
|
||||
//virtual double get_microSigma_m2(const double &Ekin_EV) = 0;
|
||||
};
|
||||
|
||||
inline InteractionOut Excitation_Base::do_Interaction (Particle *interPart) {
|
||||
@@ -46,11 +51,12 @@ inline InteractionOut Excitation_Base::do_Interaction (Particle *interPart) {
|
||||
class Exp_Excitation_Base : public Excitation_Base {
|
||||
TCS_Container tcs_data;
|
||||
public:
|
||||
Exp_Excitation_Base(Population_Base *T2Population, UniRNG *rngUni, double deltaE_eV, DCS_Base *dcs_gen, std::string load_file_name) : Excitation_Base(T2Population, rngUni, deltaE_eV, dcs_gen),
|
||||
Exp_Excitation_Base(Population_Base *T2Population, UniRNG *rngUni, double m_eV, double deltaE_eV, DCS_Base *dcs_gen, std::string load_file_name) : Excitation_Base(T2Population, rngUni, m_eV, deltaE_eV, dcs_gen),
|
||||
tcs_data(scale_start, scale_end, 1e3, get_data_path() + load_file_name) {};
|
||||
|
||||
|
||||
private:
|
||||
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {
|
||||
double get_microSigma_m2(const double &E_eV) {
|
||||
if (E_eV < deltaE_eV) {
|
||||
return 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user