n2p2 - A neural network potential package
|
Struct to store information on neighbor atoms. More...
#include <Atom.h>
Public Member Functions | |
Neighbor () | |
Neighbor constructor, initialize to zero. More... | |
bool | operator== (Neighbor const &rhs) const |
Overload == operator. More... | |
bool | operator!= (Neighbor const &rhs) const |
Overload != operator. More... | |
bool | operator< (Neighbor const &rhs) const |
Overload < operator. More... | |
bool | operator> (Neighbor const &rhs) const |
Overload > operator. More... | |
bool | operator<= (Neighbor const &rhs) const |
Overload <= operator. More... | |
bool | operator>= (Neighbor const &rhs) const |
Overload >= operator. More... | |
std::vector< std::string > | info () const |
Get atom information as a vector of strings. More... | |
Public Attributes | |
std::size_t | index |
Index of neighbor atom. More... | |
int64_t | tag |
Tag of neighbor atom. More... | |
std::size_t | element |
Element index of neighbor atom. More... | |
double | d |
Distance to neighbor atom. More... | |
Vec3D | dr |
Distance vector to neighbor atom. More... | |
std::vector< double > | cache |
Symmetry function cache (e.g. for cutoffs, compact functions). More... | |
std::vector< Vec3D > | dGdr |
Derivatives of symmetry functions with respect to neighbor coordinates. More... | |
Atom::Neighbor::Neighbor | ( | ) |
bool Atom::Neighbor::operator== | ( | Atom::Neighbor const & | rhs | ) | const |
|
inline |
bool Atom::Neighbor::operator< | ( | Atom::Neighbor const & | rhs | ) | const |
Overload < operator.
Definition at line 600 of file Atom.cpp.
|
inline |
|
inline |
|
inline |
vector< string > Atom::Neighbor::info | ( | ) | const |
Get atom information as a vector of strings.
Definition at line 612 of file Atom.cpp.
References d, nnp::Atom::dGdr, nnp::Atom::element, nnp::Atom::index, nnp::strpr(), and nnp::Atom::tag.
std::size_t nnp::Atom::Neighbor::index |
Index of neighbor atom.
Definition at line 38 of file Atom.h.
Referenced by nnp::InterfaceLammps::addNeighbor(), nnp::Mode::calculateForces(), and nnp::InterfaceLammps::getForces().
int64_t nnp::Atom::Neighbor::tag |
Tag of neighbor atom.
Definition at line 40 of file Atom.h.
Referenced by nnp::InterfaceLammps::addNeighbor(), and nnp::Atom::calculateDChidr().
std::size_t nnp::Atom::Neighbor::element |
Element index of neighbor atom.
Definition at line 42 of file Atom.h.
Referenced by nnp::InterfaceLammps::addNeighbor(), nnp::Atom::allocate(), nnp::SymFncCompAngn::calculate(), nnp::SymFncCompAngnWeighted::calculate(), nnp::SymFncCompAngw::calculate(), nnp::SymFncCompAngwWeighted::calculate(), nnp::SymFncCompRad::calculate(), nnp::SymFncCompRadWeighted::calculate(), nnp::SymFncExpAngn::calculate(), nnp::SymFncExpAngnWeighted::calculate(), nnp::SymFncExpAngw::calculate(), nnp::SymFncExpRad::calculate(), nnp::SymFncExpRadWeighted::calculate(), nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngnWeighted::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngwWeighted::calculate(), nnp::SymGrpCompRad::calculate(), nnp::SymGrpCompRadWeighted::calculate(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngnWeighted::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpRad::calculate(), nnp::SymGrpExpRadWeighted::calculate(), nnp::Atom::calculateDChidr(), nnp::Atom::calculatePairForceShort(), nnp::Training::collectDGdxia(), main(), and operator==().
double nnp::Atom::Neighbor::d |
Distance to neighbor atom.
Definition at line 44 of file Atom.h.
Referenced by nnp::InterfaceLammps::addNeighbor(), nnp::SymFncCompAngn::calculate(), nnp::SymFncCompAngnWeighted::calculate(), nnp::SymFncCompAngw::calculate(), nnp::SymFncCompAngwWeighted::calculate(), nnp::SymFncCompRad::calculate(), nnp::SymFncCompRadWeighted::calculate(), nnp::SymFncExpAngn::calculate(), nnp::SymFncExpAngnWeighted::calculate(), nnp::SymFncExpAngw::calculate(), nnp::SymFncExpRad::calculate(), nnp::SymFncExpRadWeighted::calculate(), nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngnWeighted::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngwWeighted::calculate(), nnp::SymGrpCompRad::calculate(), nnp::SymGrpCompRadWeighted::calculate(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngnWeighted::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpRad::calculate(), nnp::SymGrpExpRadWeighted::calculate(), main(), operator<(), operator==(), and nnp::Structure::setupNeighborCutoffMap().
Vec3D nnp::Atom::Neighbor::dr |
Distance vector to neighbor atom.
Definition at line 46 of file Atom.h.
Referenced by nnp::InterfaceLammps::addNeighbor(), nnp::SymFncCompAngn::calculate(), nnp::SymFncCompAngnWeighted::calculate(), nnp::SymFncCompAngw::calculate(), nnp::SymFncCompAngwWeighted::calculate(), nnp::SymFncCompRad::calculate(), nnp::SymFncCompRadWeighted::calculate(), nnp::SymFncExpAngn::calculate(), nnp::SymFncExpAngnWeighted::calculate(), nnp::SymFncExpAngw::calculate(), nnp::SymFncExpRad::calculate(), nnp::SymFncExpRadWeighted::calculate(), nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngnWeighted::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngwWeighted::calculate(), nnp::SymGrpCompRad::calculate(), nnp::SymGrpCompRadWeighted::calculate(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngnWeighted::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpRad::calculate(), nnp::SymGrpExpRadWeighted::calculate(), and main().
std::vector<double> nnp::Atom::Neighbor::cache |
Symmetry function cache (e.g. for cutoffs, compact functions).
Definition at line 49 of file Atom.h.
Referenced by nnp::Atom::allocate(), nnp::SymFncCompAngn::calculate(), nnp::SymFncCompAngnWeighted::calculate(), nnp::SymFncCompAngw::calculate(), nnp::SymFncCompAngwWeighted::calculate(), nnp::SymFncCompRad::calculate(), nnp::SymFncCompRadWeighted::calculate(), nnp::SymFncExpAngn::calculate(), nnp::SymFncExpAngnWeighted::calculate(), nnp::SymFncExpAngw::calculate(), nnp::SymFncExpRad::calculate(), nnp::SymFncExpRadWeighted::calculate(), nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngnWeighted::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngwWeighted::calculate(), nnp::SymGrpCompRad::calculate(), nnp::SymGrpCompRadWeighted::calculate(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngnWeighted::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpRad::calculate(), nnp::SymGrpExpRadWeighted::calculate(), and nnp::Atom::free().
std::vector<Vec3D> nnp::Atom::Neighbor::dGdr |
Derivatives of symmetry functions with respect to neighbor coordinates.
May be empty, only filled when needed. Contains \( \frac{\partial G_i}{\partial \alpha_j} \), where \(G_i\) is a symmetry function of atom \(i\) and \(\alpha_j\) is a coordinate \( \alpha = x,y,z \) of neighbor atom \( j \), necessary for force calculation.
Definition at line 60 of file Atom.h.
Referenced by nnp::Atom::allocate(), nnp::SymFncCompAngn::calculate(), nnp::SymFncCompAngnWeighted::calculate(), nnp::SymFncCompAngw::calculate(), nnp::SymFncCompAngwWeighted::calculate(), nnp::SymFncCompRad::calculate(), nnp::SymFncCompRadWeighted::calculate(), nnp::SymFncExpAngn::calculate(), nnp::SymFncExpAngnWeighted::calculate(), nnp::SymFncExpAngw::calculate(), nnp::SymFncExpRad::calculate(), nnp::SymFncExpRadWeighted::calculate(), nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngnWeighted::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngwWeighted::calculate(), nnp::SymGrpCompRad::calculate(), nnp::SymGrpCompRadWeighted::calculate(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngnWeighted::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpRad::calculate(), nnp::SymGrpExpRadWeighted::calculate(), nnp::Atom::calculateDChidr(), nnp::Atom::calculatePairForceShort(), nnp::Training::collectDGdxia(), and nnp::Atom::free().