eOn client
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
CellList.h
Go to the documentation of this file.
1
// Emacs: This is -*- C++ -*-
2
3
#include "
Vec.h
"
4
#include <vector>
5
using
std::vector;
6
7
class
Atoms
;
8
class
SuperCell
;
9
struct
Image
;
10
12
18
19
class
CellList
{
20
public
:
21
CellList
(
Atoms
*a,
double
rMax
);
22
void
MakeNeighborList
(
int
neighborList[],
int
indices[],
int
&nMax,
23
vector<Image> &images);
24
int
GetNeighbors
(
Vec
point,
int
*neighbors,
int
size
)
const
;
25
bool
AnyNeighbors
(
Vec
point)
const
;
26
27
private
:
28
int
nAtoms
;
29
int
nAllAtoms
;
30
double
rMax
;
31
double
rMax2
;
32
Vec
minimum
,
size
;
33
int
nCells
[3];
34
int
nTotalCells
[4];
35
Vec
*
positions
;
36
const
SuperCell
*
superCell
;
37
const
double
*
superCellHeights
;
38
const
bool
*
periodic
;
39
vector<vector<int>>
cells
;
40
vector<int>
cellIndices
;
41
};
Vec.h
Atoms
The main list of atoms class.
Definition
Atoms.h:36
CellList::positions
Vec * positions
Definition
CellList.h:35
CellList::superCellHeights
const double * superCellHeights
Definition
CellList.h:37
CellList::periodic
const bool * periodic
Definition
CellList.h:38
CellList::nTotalCells
int nTotalCells[4]
Definition
CellList.h:34
CellList::rMax
double rMax
Definition
CellList.h:30
CellList::size
Vec size
Definition
CellList.h:32
CellList::MakeNeighborList
void MakeNeighborList(int neighborList[], int indices[], int &nMax, vector< Image > &images)
CellList::nAtoms
int nAtoms
Definition
CellList.h:28
CellList::rMax2
double rMax2
Definition
CellList.h:31
CellList::GetNeighbors
int GetNeighbors(Vec point, int *neighbors, int size) const
CellList::cellIndices
vector< int > cellIndices
Definition
CellList.h:40
CellList::AnyNeighbors
bool AnyNeighbors(Vec point) const
CellList::superCell
const SuperCell * superCell
Definition
CellList.h:36
CellList::cells
vector< vector< int > > cells
Definition
CellList.h:39
CellList::CellList
CellList(Atoms *a, double rMax)
CellList::nCells
int nCells[3]
Definition
CellList.h:33
CellList::nAllAtoms
int nAllAtoms
Definition
CellList.h:29
CellList::minimum
Vec minimum
Definition
CellList.h:32
SuperCell
The SuperCell defines the size, shape and boundary condx of a simulation.
Definition
SuperCell.h:20
Vec
A 3-vector useful for postions etc.
Definition
Vec.h:18
Image
Represents atoms seen through the periodic boundaries.
Definition
Image.h:7
include
eon
potentials
EMT
Asap
CellList.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf