#include <array>
#include <cmath>
#include "autopas/utils/ParticleTypeTrait.h"
Go to the source code of this file.
|
| namespace | autopas |
| | This is the main namespace of AutoPas.
|
| |
| namespace | autopas::generators |
| | Generators for filling containers with particles in various distributions (uniform, grid, gaussian, closest packed, ...), used by tests, benchmarks, and md-flexible's particle-object generation.
|
| |
| namespace | autopas::generators::FCCGenerator |
| | Generator for an face-centered cubic (FCC) particle grid.
|
| |
|
| size_t | autopas::generators::FCCGenerator::getNumberOfParticles (const std::array< double, 3 > &boxMin, const std::array< double, 3 > &boxMax, const double spacing=1.0, const bool centeredAlignment=false) |
| | Calculates the number of particles generated in an FCC lattice within [boxMin, boxMax) in O(1) time.
|
| |
| template<class Container > |
| void | autopas::generators::FCCGenerator::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.0, const bool centeredAlignment=false) |
| | Fills any container with particles arranged in a conventional Face-Centered Cubic (FCC) lattice.
|
| |
- Author
- muehlhaeusser
- Date
- 05.09.2026