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

Namespace to collect leaving particles from a container. More...

Functions

template<class ContainerType >
std::array< std::tuple< const std::array< double, 3 >, const std::array< double, 3 > >, 6 > calculateHaloVolumes (const ContainerType &container)
 For a given container that supports getCutoff(), getBoxMin() and getBoxMax(), calculates a set of 6 non-overlapping boxes that fully cover the halo.
 
template<class ContainerType >
std::vector< typename ContainerType::ParticleType > collectParticlesAndMarkNonOwnedAsDummy (ContainerType &container)
 Collects leaving particles and marks halo particles as dummy.
 

Detailed Description

Namespace to collect leaving particles from a container.

Function Documentation

◆ calculateHaloVolumes()

template<class ContainerType >
std::array< std::tuple< const std::array< double, 3 >, const std::array< double, 3 > >, 6 > autopas::LeavingParticleCollector::calculateHaloVolumes ( const ContainerType &  container)

For a given container that supports getCutoff(), getBoxMin() and getBoxMax(), calculates a set of 6 non-overlapping boxes that fully cover the halo.

These boxes extend into the container to catch halo particles which have moved inside the container.

Note
this function is public for testing purposes.
Template Parameters
ContainerType
Parameters
container
Returns
Vector of halo boxes. vector<tuple<lower_corner, upper_corner>>

◆ collectParticlesAndMarkNonOwnedAsDummy()

template<class ContainerType >
std::vector< typename ContainerType::ParticleType > autopas::LeavingParticleCollector::collectParticlesAndMarkNonOwnedAsDummy ( ContainerType &  container)

Collects leaving particles and marks halo particles as dummy.

Note
This function does not move or actually delete any particles!
Template Parameters
ContainerTypeThe type of the container.
Parameters
containerThe container from which particles should be collected.
Returns
Returns a vector of leaving particles.