|
| ClusterTowerBlock2D (const std::array< double, 3 > &boxMin, const std::array< double, 3 > &boxMax, double interactionLength) |
| Constructor.
|
|
std::vector< ClusterTower< Particle_T > >::iterator | begin () |
| Start iterator over towers.
|
|
std::vector< ClusterTower< Particle_T > >::const_iterator | begin () const |
| Start iterator over towers.
|
|
std::vector< ClusterTower< Particle_T > >::iterator | end () |
| End iterator over towers.
|
|
std::vector< ClusterTower< Particle_T > >::const_iterator | end () const |
| End iterator over towers.
|
|
ClusterTower< Particle_T > & | operator[] (size_t i) |
| Access operator for towers.
|
|
const ClusterTower< Particle_T > & | operator[] (size_t i) const |
| Access operator for towers.
|
|
size_t | size () const |
| Return the number of towers.
|
|
void | resize (const std::array< double, 2 > &towerSideLength, const std::array< size_t, 2 > &towersPerDim) |
| Resize the internal grid and storage.
|
|
bool | empty () const |
| Indicator if the block contains any towers.
|
|
void | addTower (size_t clusterSize) |
| Construct a new tower at the end of the storage.
|
|
std::tuple< std::array< double, 2 >, std::array< size_t, 2 > > | estimateOptimalGridSideLength (size_t numParticles, size_t clusterSize) const |
| Estimates the optimal 2D tower grid side length.
|
|
std::tuple< std::array< double, 3 >, std::array< double, 3 > > | getTowerBoundingBox (size_t index1D) const |
| Calculates the low and high corner of a tower given by its index.
|
|
std::tuple< std::array< double, 3 >, std::array< double, 3 > > | getTowerBoundingBox (const std::array< size_t, 2 > &index2D) const |
| Calculates the low and high corner of a tower given by its 2D grid index.
|
|
std::array< size_t, 2 > | getTowerIndex2DAtPosition (const std::array< double, 3 > &pos) const |
| Returns the 2D index of the tower in the tower grid the given 3D coordinates are in.
|
|
size_t | getTowerIndex1DAtPosition (const std::array< double, 3 > &pos) const |
| Return the 1D index of the tower at a given position.
|
|
ClusterTower< Particle_T > & | getTowerAtPosition (const std::array< double, 3 > &pos) |
| Return a reference to the tower at a given position in the simulation coordinate system (e.g.
|
|
ClusterTower< Particle_T > & | getTowerByIndex2D (const size_t x, const size_t y) |
| Returns a reference to the tower for the given tower grid coordinates.
|
|
size_t | towerIndex2DTo1D (const size_t x, const size_t y) const |
| Returns the 1D index for the given 2D-coordinates of a tower.
|
|
std::array< size_t, 2 > | towerIndex1DTo2D (size_t index) const |
| Returns the 2D index for the given 1D index of a tower.
|
|
size_t | getFirstOwnedTowerIndex () const |
| Getter.
|
|
size_t | getLastOwnedTowerIndex () const |
| Getter.
|
|
double | getInteractionLength () const |
| Getter.
|
|
int | getNumTowersPerInteractionLength () const |
| Getter.
|
|
const std::array< double, 3 > & | getBoxMin () const |
| Getter.
|
|
const std::array< double, 3 > & | getBoxMax () const |
| Getter.
|
|
const std::array< double, 3 > & | getHaloBoxMin () const |
| Getter.
|
|
const std::array< double, 3 > & | getHaloBoxMax () const |
| Getter.
|
|
const std::vector< ClusterTower< Particle_T > > & | getTowers () const |
| Getter.
|
|
std::vector< ClusterTower< Particle_T > > & | getTowersRef () |
| Getter for a mutable reference.
|
|
const std::array< size_t, 2 > & | getTowersPerDim () const |
| Getter.
|
|
const std::array< double, 2 > & | getTowerSideLength () const |
| Getter.
|
|
const std::array< double, 2 > & | getTowerSideLengthReciprocal () const |
| Getter.
|
|
bool | cellCanContainHaloParticles (index_t index1d) const override |
| Checks if the cell with the one-dimensional index index1d can contain halo particles.
|
|
bool | cellCanContainOwnedParticles (index_t index1d) const override |
| Checks if the cell with the one-dimensional index index1d can contain owned particles.
|
|
Public Member Functions inherited from autopas::internal::CellBorderAndFlagManager |
virtual | ~CellBorderAndFlagManager ()=default |
| Cestructor.
|
|
virtual bool | cellCanContainHaloParticles (index_t index1d) const =0 |
| Checks if the cell with the one-dimensional index index1d can contain halo particles.
|
|
virtual bool | cellCanContainOwnedParticles (index_t index1d) const =0 |
| Checks if the cell with the one-dimensional index index1d can contain owned particles.
|
|
bool | ignoreCellForIteration (index_t index1d, IteratorBehavior behavior) const |
| Checks if cell with index1d can be ignored for iteration with currently selected behavior.
|
|
template<class Particle_T>
class autopas::internal::ClusterTowerBlock2D< Particle_T >
Class to manage the grid of towers for the Verlet Cluster Lists container.
This also includes the geometric shape of the container.
- Template Parameters
-