WarpX
Functions
SplitAndScatterFunc.H File Reference
#include "Particles/Collision/ScatteringProcess.H"

Go to the source code of this file.

Functions

template<typename index_type , typename Tile , typename Index , typename CopyFunc , amrex::EnableIf_t< std::is_integral< Index >::value, int > foo = 0>
int splitScatteringParticles (const index_type &n_total_pairs, Tile &ptile1, Tile &ptile2, const Index *AMREX_RESTRICT mask, CopyFunc &&copy1, CopyFunc &&copy2, const amrex::ParticleReal m1, const amrex::ParticleReal m2, const index_type *AMREX_RESTRICT p_pair_indices_1, const index_type *AMREX_RESTRICT p_pair_indices_2, const amrex::ParticleReal *AMREX_RESTRICT p_pair_reaction_weight) noexcept
 Function that performs the particle scattering and injection due to binary collisions. More...
 

Function Documentation

◆ splitScatteringParticles()

template<typename index_type , typename Tile , typename Index , typename CopyFunc , amrex::EnableIf_t< std::is_integral< Index >::value, int > foo = 0>
int splitScatteringParticles ( const index_type &  n_total_pairs,
Tile &  ptile1,
Tile &  ptile2,
const Index *AMREX_RESTRICT  mask,
CopyFunc &&  copy1,
CopyFunc &&  copy2,
const amrex::ParticleReal  m1,
const amrex::ParticleReal  m2,
const index_type *AMREX_RESTRICT  p_pair_indices_1,
const index_type *AMREX_RESTRICT  p_pair_indices_2,
const amrex::ParticleReal *AMREX_RESTRICT  p_pair_reaction_weight 
)
noexcept

Function that performs the particle scattering and injection due to binary collisions.

Returns
num_added the number of particles added to each species.