Hipace
Functions
TileSort.cpp File Reference
#include "TileSort.H"
#include "utils/HipaceProfilerWrapper.H"
#include <AMReX_ParticleTransformation.H>

Functions

PlasmaBins findParticlesInEachTile (amrex::Box bx, int bin_size, PlasmaParticleContainer &plasma, const amrex::Geometry &geom)
 Find plasma particles in each bin, and return collections of indices per bin (tile). More...
 
BeamBins findBeamParticlesInEachTile (amrex::Box bx, int bin_size, BeamParticleContainer &beam, const amrex::Geometry &geom)
 Find beam particles in each bin, and return collections of indices per bin (tile). More...
 

Function Documentation

◆ findBeamParticlesInEachTile()

BeamBins findBeamParticlesInEachTile ( amrex::Box  bx,
int  bin_size,
BeamParticleContainer beam,
const amrex::Geometry geom 
)

Find beam particles in each bin, and return collections of indices per bin (tile).

Note that this does not rearrange particle arrays

Parameters
[in]bx3d box in which particles are sorted per slice
[in]bin_sizenumber of cells per tile (square)
[in]beambeam particle container
[in]geomGeometry

◆ findParticlesInEachTile()

PlasmaBins findParticlesInEachTile ( amrex::Box  bx,
int  bin_size,
PlasmaParticleContainer plasma,
const amrex::Geometry geom 
)

Find plasma particles in each bin, and return collections of indices per bin (tile).

Note that this does not rearrange particle arrays

Parameters
[in]bx3d box in which particles are sorted per slice
[in]bin_sizenumber of cells per tile (square)
[in]plasmaPlasma particle container
[in]geomGeometry