Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
CellListTraversal.hpp File Reference

High-performance bin-sorted cell-list traversal and pairwise visitor engine. More...

#include "core/Cell.hpp"
#include "math/LinearAlgebra.hpp"
#include "math/Precision.hpp"
#include "math/SIMDUtils.hpp"
#include <algorithm>
#include <array>
#include <cmath>
#include <span>
#include <vector>
#include <tbb/blocked_range.h>
#include <tbb/enumerable_thread_specific.h>
#include <tbb/parallel_for.h>
Include dependency graph for CellListTraversal.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  correlation::calculators::detail::SearchGridConfig
struct  correlation::calculators::detail::SoACoordinates
struct  correlation::calculators::detail::BinSortedPositions
struct  correlation::calculators::detail::CandidateGatherer
struct  correlation::calculators::detail::ShiftBounds

Namespaces

namespace  correlation
namespace  correlation::calculators
namespace  correlation::calculators::detail

Enumerations

enum class  correlation::calculators::detail::CandidateGatherMode : uint8_t { correlation::calculators::detail::PARTITIONED , correlation::calculators::detail::PrimaryCellOnly , correlation::calculators::detail::PeriodicImageShift }

Functions

constexpr bool correlation::calculators::detail::shouldSkipCandidate (CandidateGatherMode mode, size_t atom_idx, size_t j_idx, const correlation::math::Vector3< real_t > &disp, bool ignore_periodic_self_interactions) noexcept
constexpr void correlation::calculators::detail::computePeriodicShiftAndBin (int coord, int delta, int dim_k, int &shift, int &wrap) noexcept
std::vector< correlation::math::Vector3< real_t > > correlation::calculators::detail::computeSmallCellShifts (const correlation::math::Matrix3< real_t > &lattice, const ShiftBounds &bounds)
SearchGridConfig correlation::calculators::detail::buildSearchGridConfig (const correlation::core::Cell &cell, real_t cutoff_sq)
BinSortedPositions correlation::calculators::detail::buildBinSortedPositions (const correlation::core::Cell &cell, const SearchGridConfig &grid_config)
template<typename Visitor>
void correlation::calculators::detail::forEachPairWithin (const correlation::core::Cell &cell, real_t r_max, bool ignore_periodic_self_interactions, Visitor &&visitor)

Detailed Description

High-performance bin-sorted cell-list traversal and pairwise visitor engine.

License
SPDX-License-Identifier: AGPL-3.0-only