AutoPas  3.0.0
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
FCCGenerator.h File Reference
#include <array>
#include <cmath>
#include "autopas/utils/ParticleTypeTrait.h"
Include dependency graph for FCCGenerator.h:

Go to the source code of this file.

Namespaces

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.
 

Functions

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.
 

Variables

constexpr std::array< std::array< double, 3 >, 4 > autopas::generators::FCCGenerator::fccBasis
 Basis coordinates for conventional cubic FCC unit cell normalized by lattice constant a.
 

Detailed Description

Author
muehlhaeusser
Date
05.09.2026