|
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. | |
| bool | operator== (Neighbor const &rhs) const |
| Overload == operator. | |
| bool | operator!= (Neighbor const &rhs) const |
| Overload != operator. | |
| bool | operator< (Neighbor const &rhs) const |
| Overload < operator. | |
| bool | operator> (Neighbor const &rhs) const |
| Overload > operator. | |
| bool | operator<= (Neighbor const &rhs) const |
| Overload <= operator. | |
| bool | operator>= (Neighbor const &rhs) const |
| Overload >= operator. | |
| std::vector< std::string > | info () const |
| Get atom information as a vector of strings. | |
Public Attributes | |
| std::size_t | index |
| Index of neighbor atom. | |
| int64_t | tag |
| Tag of neighbor atom. | |
| std::size_t | element |
| Element index of neighbor atom. | |
| double | d |
| Distance to neighbor atom. | |
| Vec3D | dr |
| Distance vector to neighbor atom. | |
| std::vector< double > | cache |
| Symmetry function cache (e.g. for cutoffs, compact functions). | |
| std::vector< Vec3D > | dGdr |
| Derivatives of symmetry functions with respect to neighbor coordinates. | |
| 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.
References d.
|
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 cache, d, dGdr, dr, element, index, nnp::strpr(), and 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(), nnp::InterfaceLammps::getForcesDevelop(), info(), and Neighbor().
| int64_t nnp::Atom::Neighbor::tag |
Tag of neighbor atom.
Definition at line 40 of file Atom.h.
Referenced by nnp::InterfaceLammps::addNeighbor(), nnp::Atom::calculateDChidr(), info(), and Neighbor().
| 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(), info(), main(), Neighbor(), 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(), info(), main(), Neighbor(), 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(), info(), 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(), nnp::Atom::free(), and info().
| 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(), nnp::Atom::free(), and info().