Hipace
Typedefs | Functions
TileSort.H File Reference
#include "particles/plasma/PlasmaParticleContainer.H"
#include "particles/beam/BeamParticleContainer.H"
#include <AMReX_MultiFab.H>

Go to the source code of this file.

Typedefs

using PlasmaBins = amrex::DenseBins< PlasmaParticleContainer::ParticleTileType::ParticleTileDataType >
 
using BeamBins = amrex::DenseBins< BeamTile::ParticleTileDataType >
 

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...
 

Typedef Documentation

◆ BeamBins

◆ PlasmaBins

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