Extracting random point in file.
No Integration for Reaction Rate Cross sections.
This commit is contained in:
@@ -31,7 +31,7 @@ protected:
|
||||
double calc_macro_sigma_m(const double &E_eV, const vec3 &loc_m);
|
||||
double calc_microSigma_divbyn_m2(const double &E_eV);
|
||||
private:
|
||||
virtual double get_microSigma_divbyn_m2(const double &E_eV) = 0;
|
||||
virtual double get_microSigma_m2(const double &E_eV) = 0;
|
||||
};
|
||||
|
||||
inline double TI_thermal_tenary_Interaction_Base::get_macro_sigma_m(const Particle &interPart) {
|
||||
@@ -49,7 +49,7 @@ inline double TI_thermal_tenary_Interaction_Base::calc_microSigma_divbyn_m2(cons
|
||||
double v1_ms = calc_v_ms_from_E_eV(E_eV, m1_eV);
|
||||
auto integrand = [&](double theta) {
|
||||
double E_eV = m1_eV/2 * (pow(v1_ms,2) + pow(v_therm,2) - 2*v1_ms*v_therm*cos(theta)) * pow(c_ms, -2);
|
||||
return get_microSigma_divbyn_m2(E_eV);
|
||||
return get_microSigma_m2(E_eV);
|
||||
};
|
||||
return integrate(integrand, 0., pi, INT_N_INTPOINTS, simpson())/pi;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user