|
WarpX
|
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::ParticleType > | 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. More... | |
| AMREX_GPU_HOST_DEVICE AMREX_INLINE void | getRandomVector (amrex::Real &x, amrex::Real &y, amrex::Real &z, amrex::RandomEngine const &engine) |
| Generate random unit vector in 3 dimensions https://mathworld.wolfram.com/SpherePointPicking.html. More... | |
| AMREX_GPU_HOST_DEVICE AMREX_INLINE void | RandomizeVelocity (amrex::ParticleReal &ux, amrex::ParticleReal &uy, amrex::ParticleReal &uz, const amrex::ParticleReal vp, amrex::RandomEngine const &engine) |
| Function to perform scattering of a particle that results in a random velocity vector with given magnitude. This is used in collision events. More... | |
| using ParticleUtils::index_type = typedef ParticleBins::index_type |
| using ParticleUtils::ParticleBins = typedef DenseBins<ParticleType> |
| using ParticleUtils::ParticleTileType = typedef WarpXParticleContainer::ParticleTileType |
| using ParticleUtils::ParticleType = typedef WarpXParticleContainer::ParticleType |
| 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.
| [in] | lev | the index of the refinement level. |
| [in] | mfi | the MultiFAB iterator. |
| [in] | ptile | the particle tile. |
| ParticleBins ParticleUtils::findParticlesInEachCell | ( | int const | lev, |
| MFIter const & | mfi, | ||
| ParticleTileType const & | ptile | ||
| ) |
| AMREX_GPU_HOST_DEVICE AMREX_INLINE void ParticleUtils::getRandomVector | ( | amrex::Real & | x, |
| amrex::Real & | y, | ||
| amrex::Real & | z, | ||
| amrex::RandomEngine const & | engine | ||
| ) |
Generate random unit vector in 3 dimensions https://mathworld.wolfram.com/SpherePointPicking.html.
| [out] | x | x-component of resulting random vector |
| [out] | y | y-component of resulting random vector |
| [out] | z | z-component of resulting random vector |
| [in] | engine | the random-engine |
| AMREX_GPU_HOST_DEVICE AMREX_INLINE void ParticleUtils::RandomizeVelocity | ( | amrex::ParticleReal & | ux, |
| amrex::ParticleReal & | uy, | ||
| amrex::ParticleReal & | uz, | ||
| const amrex::ParticleReal | vp, | ||
| amrex::RandomEngine const & | engine | ||
| ) |
Function to perform scattering of a particle that results in a random velocity vector with given magnitude. This is used in collision events.
1.8.13