8#ifndef LINEAR_BREIT_WHEELER_CROSS_SECTION_H
9#define LINEAR_BREIT_WHEELER_CROSS_SECTION_H
36 if (E_star < me*c2) {
return 0._prt;}
41 auto constexpr pow2 = [](
auto const x) {
return x*x; };
42 auto constexpr pow4 = [](
auto const x) {
return x*x*x*x; };
47 const amrex::ParticleReal term1 = (3._prt-pow4(beta))*std::log((1._prt+beta)/(1._prt-beta));
49 const amrex::ParticleReal cross_section = one_half_pr*pi*re2*(1._prt-pow2(beta))*(term1+term2);
#define AMREX_GPU_HOST_DEVICE
AMREX_GPU_HOST_DEVICE AMREX_INLINE amrex::ParticleReal LinearBreitWheelerCrossSection(const amrex::ParticleReal &E_star)
Computes the linear Breit-Wheeler cross section (refer to, for example, [Gould and Schreder Phys....
Definition LinearBreitWheelerCrossSection.H:29
amrex_particle_real ParticleReal
constexpr auto r_e
classical electron radius = 1./(4*pi*epsilon_0) * q_e*q_e/(m_e*c*c) [m]
Definition constant.H:180
constexpr auto m_e
electron mass [kg]
Definition constant.H:165
constexpr auto c2_v
square of the vacuum speed of light [m^2/s^2] (variable template)
Definition constant.H:138
constexpr auto pi
ratio of a circle's circumference to its diameter
Definition constant.H:29