#include <array>
#include <random>
#include "autopas/particles/OwnershipState.h"
#include "autopas/utils/inBox.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::UniformGenerator |
| | Generator class for uniform distributions.
|
| |
|
| std::array< double, 3 > | autopas::generators::UniformGenerator::randomPosition (std::mt19937 &generator, const std::array< double, 3 > &boxMin, const std::array< double, 3 > &boxMax) |
| | Generate a random position within a given box.
|
| |
| template<class Container , class Particle > |
| void | autopas::generators::UniformGenerator::fillWithParticles (Container &container, const Particle &defaultParticle, const std::array< double, 3 > &boxMin, const std::array< double, 3 > &boxMax, unsigned long numParticles=100ul, unsigned int seed=42) |
| | Fills any container (also AutoPas object) with randomly uniformly distributed particles.
|
| |
| template<class Container , class Particle , class HaloAddFunction > |
| void | autopas::generators::UniformGenerator::fillWithHaloParticles (Container &container, const Particle &defaultParticle, double haloWidth, unsigned long numParticles, const HaloAddFunction &haloAddFunction, unsigned int seed=42) |
| | Fills the halo of a container (also AutoPas object) with randomly uniformly distributed particles.
|
| |
| template<class Container , class Particle > |
| void | autopas::generators::UniformGenerator::fillWithHaloParticles (Container &container, const Particle &defaultParticle, double haloWidth, unsigned long numParticles, unsigned int seed=42) |
| | Fills the halo of a container with randomly uniformly distributed particles.
|
| |
- Author
- seckler
- Date
- 22.05.18