Generator for grids of particles. More...
Functions | |
| template<class Container > | |
| void | fillWithParticles (Container &container, const std::array< double, 3 > &boxMin, const std::array< double, 3 > &boxMax, const typename autopas::utils::ParticleTypeTrait< Container >::value &defaultParticle=typename autopas::utils::ParticleTypeTrait< Container >::value(), const double spacing=1.) |
| Fills any container (also AutoPas object) with a hexagonally closest packed particles. | |
Generator for grids of particles.
| void autopasTools::generators::ClosestPackingGenerator::fillWithParticles | ( | Container & | container, |
| const std::array< double, 3 > & | boxMin, | ||
| const std::array< double, 3 > & | boxMax, | ||
| const typename autopas::utils::ParticleTypeTrait< Container >::value & | defaultParticle = typename autopas::utils::ParticleTypeTrait<Container>::value(), |
||
| const double | spacing = 1. |
||
| ) |
Fills any container (also AutoPas object) with a hexagonally closest packed particles.
Particle properties will be used from the default particle. Particle IDs start from the default particle.
| Container | Arbitrary container class that needs to support addParticle(). |
| container | |
| boxMin | |
| boxMax | |
| defaultParticle | |
| spacing | Distance between all neighboring particles |