AutoPas  3.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
LCC08CellHandlerUtility.cpp File Reference
#include "LCC08CellHandlerUtility.h"
Include dependency graph for LCC08CellHandlerUtility.cpp:

Namespaces

namespace  autopas
 This is the main namespace of AutoPas.
 
namespace  autopas::LCC08CellHandlerUtility
 Helper function and type aliases for the C08 base step traversal.
 
namespace  autopas::LCC08CellHandlerUtility::internal
 Internal namespace of LCC08CellHandlerUtility containing private functions.
 

Functions

constexpr std::pair< int, int > autopas::LCC08CellHandlerUtility::internal::toMaskXY (const C08CellDirection &direction)
 Helper function for autopas::LCC08CellHandlerUtility::computePairwiseCellOffsetsC08.
 
constexpr bool autopas::LCC08CellHandlerUtility::internal::includeCellPair (const C08CellDirection &direction, const std::array< int, 3 > &overlap, int x, int y, int z)
 Returns true if the cell-interaction in the given direction, with the given base cell coordinates (x, y, z) and overlap needs to be included into the pairwise cell offsets.
 
std::array< double, 3 > autopas::LCC08CellHandlerUtility::internal::computeSortingDirection (const std::array< double, 3 > &offset1Vector, const std::array< double, 3 > &offset2Vector, const std::array< double, 3 > &cellLength)
 Computes the sorting direction between two cells from center of cell1 to center of cell2 using the 3D indices of the cells while incoperating the cellLength (required in case of less regular cuboid cells)
 
template<C08OffsetMode Mode>
OffsetPairType< Mode > autopas::LCC08CellHandlerUtility::computePairwiseCellOffsetsC08 (const std::array< unsigned long, 3 > &cellsPerDimension, const std::array< double, 3 > &cellLength, double interactionLength)
 Computes the cell pair offsets for the C08 base step and the normalized vector between pair of cell-centers, which is later used for early stopping the evaluation of the pairwise cell interactions due to being out-of-reach.
 

Detailed Description

Author
J. Schuhmacher
Date
11.07.2024