Fixed theta distribtuion in integration of cross sections.

This commit is contained in:
Christian
2019-11-16 11:32:59 +01:00
parent c920a0ef98
commit ed3b18c4f5
+8 -8
View File
@@ -95,10 +95,10 @@ protected:
} else {
double v1_ms = sqrt(2*E_eV/mI_eV)*c_ms;
auto integrand = [&](double theta) {
double E_eV = m_eV/2/pi * (pow(v1_ms,2) + pow(v_therm,2) - 2*v1_ms*v_therm*cos(theta)) * pow(c_ms, -2);
double E_eV = m_eV/2 * (pow(v1_ms,2) + pow(v_therm,2) - 2*v1_ms*v_therm*cos(theta)) * pow(c_ms, -2);
return get_microSigma_m2(E_eV);
};
return integrate(integrand, 0., pi, 30, simpson());
return integrate(integrand, 0., pi, 30, simpson())/pi;
}
}
@@ -154,10 +154,10 @@ protected:
double calc_microSigma_m2(const double &E_eV) {
double v1_ms = sqrt(2*E_eV/m2_eV)*c_ms;
auto integrand = [&](double theta) {
double E_eV = m_eV/2/pi * (pow(v1_ms,2) + pow(v_therm,2) - 2*v1_ms*v_therm*cos(theta)) * pow(c_ms, -2);
double E_eV = m_eV/2 * (pow(v1_ms,2) + pow(v_therm,2) - 2*v1_ms*v_therm*cos(theta)) * pow(c_ms, -2);
return get_microSigma_m2(E_eV);
};
return integrate(integrand, 0., pi, 30, simpson());
return integrate(integrand, 0., pi, 30, simpson())/pi;
}
};
@@ -195,10 +195,10 @@ protected:
double calc_microSigma_divbyn_m2(const double &E_eV) {
double v1_ms = sqrt(2*E_eV/m2_eV)*c_ms;
auto integrand = [&](double theta) {
double E_eV = m_eV/2/pi * (pow(v1_ms,2) + pow(v_therm,2) - 2*v1_ms*v_therm*cos(theta)) * pow(c_ms, -2);
double E_eV = m_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 integrate(integrand, 0., pi, 30, simpson());
return integrate(integrand, 0., pi, 30, simpson())/pi;
}
};
@@ -252,10 +252,10 @@ protected:
return get_microSigma_m2(Ee_mids[Ee_bin]); // location is dummy again...
} else {
auto integrand = [&](double theta) {
double E_eV = m_eV/2/pi * (pow(v1_ms,2) + pow(v2_ms,2) - 2*v1_ms*v2_ms*cos(theta)) * pow(c_ms, -2);
double E_eV = m_eV/2 * (pow(v1_ms,2) + pow(v2_ms,2) - 2*v1_ms*v2_ms*cos(theta)) * pow(c_ms, -2);
return get_microSigma_m2(E_eV); // location is dummy again...
};
return integrate(integrand, 0., pi, 30, simpson());
return integrate(integrand, 0., pi, 30, simpson())/pi;
}
}
};