|
Cabana 0.8.0-dev
|
List of particle fields stored in AoSoA with associated mesh. More...
#include <Cabana_Grid_ParticleList.hpp>


Public Types | |
| using | memory_space = MemorySpace |
| Kokkos memory space. | |
| using | base = Cabana::ParticleList<memory_space, VectorLength, FieldTags...> |
| Base Cabana particle list type. | |
| using | traits = typename base::traits |
| Particle AoSoA member types. | |
| using | aosoa_type = typename base::aosoa_type |
| AoSoA type. | |
| using | tuple_type = typename base::tuple_type |
| Particle tuple type. | |
| template<std::size_t M> | |
| using | slice_type = typename aosoa_type::template member_slice_type<M> |
| Single field slice type. | |
| using | particle_type = typename base::particle_type |
| Single particle type. | |
| using | particle_view_type = typename base::particle_view_type |
| Single SoA type. | |
| Public Types inherited from Cabana::ParticleList< MemorySpace, VectorLength, FieldTags... > | |
| using | memory_space |
| Kokkos memory space. | |
| using | traits |
| AoSoA member field types. | |
| using | member_types |
| AoSoA member types. | |
| using | aosoa_type |
| AoSoA type. | |
| using | tuple_type |
| Particle tuple type. | |
| using | slice_type |
| Single field slice type. | |
| using | particle_type |
| Single particle type. | |
| using | particle_view_type |
| Single SoA type. | |
Public Member Functions | |
| ParticleList (const std::string &label) | |
| Default constructor. | |
| template<class LocalGridType> | |
| bool | redistribute (const LocalGridType &local_grid, const bool force_redistribute=false) |
| Redistribute particles to new owning grids. | |
| template<class PositionFieldTag, class LocalGridType> | |
| bool | redistribute (const LocalGridType &local_grid, PositionFieldTag, const bool force_redistribute=false) |
| Redistribute particles to new owning grids with explicit field. | |
| Public Member Functions inherited from Cabana::ParticleList< MemorySpace, VectorLength, FieldTags... > | |
| ParticleList (const std::string &label) | |
| Default constructor. | |
| KOKKOS_INLINE_FUNCTION std::size_t | size () const |
| Get the number of particles in the list. | |
| void | resize (const std::size_t n) |
| Update the number of particles in the list. | |
| aosoa_type & | aosoa () |
| Get the AoSoA. | |
| KOKKOS_INLINE_FUNCTION auto | getParticle (IndexType p) const |
| Get a single particle. | |
| KOKKOS_INLINE_FUNCTION void | setParticle (ParticleType particle, IndexType p) const |
| Set a single particle. | |
| KOKKOS_INLINE_FUNCTION auto | getParticleView (IndexType p) const |
| Set a single particle with the struct+array indexing. | |
| const std::string & | label () const |
| Get the AoSoA label. | |
| slice_type< TypeIndexer< FieldTag, FieldTags... >::index > | slice (FieldTag) const |
| Get a slice of a given field. | |
Protected Attributes | |
| aosoa_type | _aosoa |
| Particle AoSoA. | |
| Protected Attributes inherited from Cabana::ParticleList< MemorySpace, VectorLength, FieldTags... > | |
| aosoa_type | _aosoa |
| Particle AoSoA. | |
List of particle fields stored in AoSoA with associated mesh.
| using Cabana::Grid::ParticleList< MemorySpace, VectorLength, FieldTags >::slice_type = typename aosoa_type::template member_slice_type<M> |
Single field slice type.
| M | AoSoA field index. |
|
inline |
Redistribute particles to new owning grids.
|
inline |
Redistribute particles to new owning grids with explicit field.
| PositionFieldTag | Field tag for position data. |