Namespace to collect leaving particles from a container.
More...
|
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.
|
|
Namespace to collect leaving particles from a container.
◆ 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
-
- Parameters
-
- 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
-
ContainerType | The type of the container. |
- Parameters
-
container | The container from which particles should be collected. |
- Returns
- Returns a vector of leaving particles.