AutoPas  3.0.0
Loading...
Searching...
No Matches
Functions
autopas::utils::NumParticlesEstimator Namespace Reference

Functions to estimate numbers of particles. More...

Functions

size_t estimateNumHalosUniform (size_t numParticles, const std::array< double, 3 > &boxMin, const std::array< double, 3 > &boxMax, double haloWidth)
 Given a number of particles and the dimensions of a box, estimate the number of halo particles.
 

Detailed Description

Functions to estimate numbers of particles.

Function Documentation

◆ estimateNumHalosUniform()

size_t autopas::utils::NumParticlesEstimator::estimateNumHalosUniform ( size_t  numParticles,
const std::array< double, 3 > &  boxMin,
const std::array< double, 3 > &  boxMax,
double  haloWidth 
)

Given a number of particles and the dimensions of a box, estimate the number of halo particles.

Assumptions:

  • Uniform particle distribution.
  • Cuboid particle container.
  • Halo width is the same in all dimensions.
    Parameters
    numParticles
    boxMin
    boxMax
    haloWidth
    Returns
    Estimated number of halo particles.