WarpX
Typedefs | Functions
ParticleUtils Namespace Reference

Typedefs

using ParticleType = WarpXParticleContainer::ParticleType
 
using ParticleTileType = WarpXParticleContainer::ParticleTileType
 
using ParticleBins = DenseBins< ParticleType >
 
using index_type = ParticleBins::index_type
 

Functions

ParticleBins findParticlesInEachCell (int const lev, MFIter const &mfi, ParticleTileType const &ptile)
 
amrex::DenseBins< WarpXParticleContainer::ParticleTypefindParticlesInEachCell (int const lev, amrex::MFIter const &mfi, WarpXParticleContainer::ParticleTileType const &ptile)
 Find the particles and count the particles that are in each cell. More specifically this function returns an amrex::DenseBins object containing an offset array and a permutation array which can be used to loop over all the cells in a tile and apply an algorithm to particles of a given species present in each cell. Note that this does not rearrange particle arrays. More...
 

Typedef Documentation

◆ index_type

using ParticleUtils::index_type = typedef ParticleBins::index_type

◆ ParticleBins

using ParticleUtils::ParticleBins = typedef DenseBins<ParticleType>

◆ ParticleTileType

using ParticleUtils::ParticleTileType = typedef WarpXParticleContainer::ParticleTileType

◆ ParticleType

using ParticleUtils::ParticleType = typedef WarpXParticleContainer::ParticleType

Function Documentation

◆ findParticlesInEachCell() [1/2]

ParticleBins ParticleUtils::findParticlesInEachCell ( int const  lev,
MFIter const &  mfi,
ParticleTileType const &  ptile 
)

◆ findParticlesInEachCell() [2/2]

amrex::DenseBins<WarpXParticleContainer::ParticleType> ParticleUtils::findParticlesInEachCell ( int const  lev,
amrex::MFIter const &  mfi,
WarpXParticleContainer::ParticleTileType const &  ptile 
)

Find the particles and count the particles that are in each cell. More specifically this function returns an amrex::DenseBins object containing an offset array and a permutation array which can be used to loop over all the cells in a tile and apply an algorithm to particles of a given species present in each cell. Note that this does not rearrange particle arrays.

Parameters
[in]levthe index of the refinement level.
[in]mfithe MultiFAB iterator.
[in]ptilethe particle tile.