n2p2 - A neural network potential package
|
Storage for one atomic configuration. More...
#include <Structure.h>
Public Types | |
enum | SampleType { ST_UNKNOWN , ST_TRAINING , ST_VALIDATION , ST_TEST } |
Enumerates different sample types (e.g. More... | |
Public Member Functions | |
Structure () | |
Constructor, initializes to zero. More... | |
void | setElementMap (ElementMap const &elementMap) |
Set element map of structure. More... | |
void | addAtom (Atom const &atom, std::string const &element) |
Add a single atom to structure. More... | |
void | readFromFile (std::string const fileName="input.data") |
Read configuration from file. More... | |
void | readFromFile (std::ifstream &file) |
Read configuration from file. More... | |
void | readFromLines (std::vector< std::string > const &lines) |
Read configuration from lines. More... | |
void | calculateNeighborList (double cutoffRadius) |
Calculate neighbor list for all atoms. More... | |
void | calculatePbcCopies (double cutoffRadius) |
Calculate required PBC copies. More... | |
void | calculateInverseBox () |
Calculate inverse box. More... | |
void | calculateVolume () |
Calculate volume from box vectors. More... | |
void | remap () |
Translate all atoms back into box if outside. More... | |
void | remap (Atom &atom) |
Translate atom back into box if outside. More... | |
void | toNormalizedUnits (double meanEnergy, double convEnergy, double convLength) |
Normalize structure, shift energy and change energy and length unit. More... | |
void | toPhysicalUnits (double meanEnergy, double convEnergy, double convLength) |
Switch to physical units, shift energy and change energy and length unit. More... | |
std::size_t | getMaxNumNeighbors () const |
Find maximum number of neighbors. More... | |
void | freeAtoms (bool all) |
Free symmetry function memory for all atoms, see free() in Atom class. More... | |
void | reset () |
Reset everything but elementMap. More... | |
void | clearNeighborList () |
Clear neighbor list of all atoms. More... | |
void | updateError (std::string const &property, std::map< std::string, double > &error, std::size_t &count) const |
Update property error metrics with this structure. More... | |
std::string | getEnergyLine () const |
Get reference and NN energy. More... | |
std::vector< std::string > | getForcesLines () const |
Get reference and NN forces for all atoms. More... | |
std::vector< std::string > | getChargesLines () const |
Get reference and NN charges for all atoms. More... | |
void | writeToFile (std::string const fileName="output.data", bool const ref=true, bool const append=false) const |
Write configuration to file. More... | |
void | writeToFile (std::ofstream *const &file, bool const ref=true) const |
Write configuration to file. More... | |
void | writeToFileXyz (std::ofstream *const &file) const |
Write configuration to xyz file. More... | |
void | writeToFilePoscar (std::ofstream *const &file) const |
Write configuration to POSCAR file. More... | |
void | writeToFilePoscar (std::ofstream *const &file, std::string const elements) const |
Write configuration to POSCAR file. More... | |
std::vector< std::string > | info () const |
Get structure information as a vector of strings. More... | |
Public Attributes | |
ElementMap | elementMap |
Copy of element map provided as constructor argument. More... | |
bool | isPeriodic |
If periodic boundary conditions apply. More... | |
bool | isTriclinic |
If the simulation box is triclinic. More... | |
bool | hasNeighborList |
If the neighbor list has been calculated. More... | |
bool | hasSymmetryFunctions |
If symmetry function values are saved for each atom. More... | |
bool | hasSymmetryFunctionDerivatives |
If symmetry function derivatives are saved for each atom. More... | |
std::size_t | index |
Index number of this structure. More... | |
std::size_t | numAtoms |
Total number of atoms present in this structure. More... | |
std::size_t | numElements |
Global number of elements (all structures). More... | |
std::size_t | numElementsPresent |
Number of elements present in this structure. More... | |
int | pbc [3] |
Number of PBC images necessary in each direction. More... | |
double | energy |
Potential energy determined by neural network. More... | |
double | energyRef |
Reference potential energy. More... | |
double | charge |
Charge determined by neural network potential. More... | |
double | chargeRef |
Reference charge. More... | |
double | volume |
Simulation box volume. More... | |
SampleType | sampleType |
Sample type (training or test set). More... | |
std::string | comment |
Structure comment. More... | |
Vec3D | box [3] |
Simulation box vectors. More... | |
Vec3D | invbox [3] |
Inverse simulation box vectors. More... | |
std::vector< std::size_t > | numAtomsPerElement |
Number of atoms of each element in this structure. More... | |
std::vector< Atom > | atoms |
Vector of all atoms in this structure. More... | |
Storage for one atomic configuration.
Definition at line 33 of file Structure.h.
Enumerates different sample types (e.g.
training or test set).
Enumerator | |
---|---|
ST_UNKNOWN | Sample type not assigned yet. |
ST_TRAINING | Structure is part of the training set. |
ST_VALIDATION | Structure is part of validation set (currently unused). |
ST_TEST | Structure is part of the test set. |
Definition at line 37 of file Structure.h.
Structure::Structure | ( | ) |
Constructor, initializes to zero.
Definition at line 30 of file Structure.cpp.
void Structure::setElementMap | ( | ElementMap const & | elementMap | ) |
Set element map of structure.
[in] | elementMap | Reference to a map containing all possible (symbol, index)-pairs (see ElementMap). |
Definition at line 60 of file Structure.cpp.
References elementMap, numAtomsPerElement, numElements, and nnp::ElementMap::size().
Referenced by nnp::Dataset::distributeStructures(), nnp::InterfaceLammps::initialize(), main(), nnp::Dataset::prepareNumericForces(), and nnp::Prediction::readStructureFromFile().
void Structure::addAtom | ( | Atom const & | atom, |
std::string const & | element | ||
) |
Add a single atom to structure.
Definition at line 69 of file Structure.cpp.
References atoms, elementMap, index, numAtoms, numAtomsPerElement, and nnp::ElementMap::size().
void Structure::readFromFile | ( | std::string const | fileName = "input.data" | ) |
Read configuration from file.
[in] | fileName | Input file name. |
Reads the first configuration found in the input file.
Definition at line 86 of file Structure.cpp.
References readFromFile().
Referenced by nnp::Dataset::distributeStructures(), main(), readFromFile(), and nnp::Prediction::readStructureFromFile().
void Structure::readFromFile | ( | std::ifstream & | file | ) |
Read configuration from file.
[in] | file | Input file stream (already opened). |
Expects that a file with configurations is open, first keyword on first line should be begin
. Reads until keyword is end
.
Definition at line 102 of file Structure.cpp.
References readFromLines(), nnp::reduce(), and nnp::split().
void Structure::readFromLines | ( | std::vector< std::string > const & | lines | ) |
Read configuration from lines.
[in] | lines | One configuration in form of a vector of strings. |
Read the configuration from a vector of strings.
Definition at line 131 of file Structure.cpp.
References atoms, box, calculateInverseBox(), calculateVolume(), chargeRef, comment, elementMap, energyRef, index, isPeriodic, isTriclinic, numAtoms, numAtomsPerElement, numElements, numElementsPresent, nnp::reduce(), remap(), sampleType, nnp::split(), ST_TEST, and ST_TRAINING.
Referenced by readFromFile().
void Structure::calculateNeighborList | ( | double | cutoffRadius | ) |
Calculate neighbor list for all atoms.
[in] | cutoffRadius | Atoms are neighbors if there distance is smaller than the cutoff radius. |
Definition at line 253 of file Structure.cpp.
References atoms, box, calculatePbcCopies(), hasNeighborList, isPeriodic, nnp::Vec3D::norm(), nnp::Vec3D::norm2(), numAtoms, and pbc.
Referenced by main(), and nnp::Prediction::predict().
void Structure::calculatePbcCopies | ( | double | cutoffRadius | ) |
Calculate required PBC copies.
[in] | cutoffRadius | Cutoff radius for neighbor list. |
Called by calculateNeighborList().
Definition at line 375 of file Structure.cpp.
References box, nnp::Vec3D::cross(), nnp::Vec3D::normalize(), and pbc.
Referenced by calculateNeighborList().
void Structure::calculateInverseBox | ( | ) |
Calculate inverse box.
Simulation box looks like this:
\[ h = \begin{pmatrix} \phantom{a_x} & \phantom{b_x} & \phantom{c_x} \\ \vec{\mathbf{a}} & \vec{\mathbf{b}} & \vec{\mathbf{c}} \\ \phantom{a_z} & \phantom{b_z} & \phantom{c_z} \\ \end{pmatrix} = \begin{pmatrix} a_x & b_x & c_x \\ a_y & b_y & c_y \\ a_z & b_z & c_z \\ \end{pmatrix}, \]
where \(\vec{\mathbf{a}} = \) box[0]
, \(\vec{\mathbf{b}} = \) box[1]
and \(\vec{\mathbf{c}} = \) box[2]
. Thus, indices are column first, row second:
\[ h = \begin{pmatrix} \texttt{box[0][0]} & \texttt{box[1][0]} & \texttt{box[2][0]} \\ \texttt{box[0][1]} & \texttt{box[1][1]} & \texttt{box[2][1]} \\ \texttt{box[0][2]} & \texttt{box[1][2]} & \texttt{box[2][2]} \\ \end{pmatrix}. \]
The inverse box matrix (same scheme as above but with invbox
) can be used to calculate fractional coordinates:
\[ \begin{pmatrix} f_0 \\ f_1 \\ f_2 \end{pmatrix} = h^{-1} \; \vec{\mathbf{r}}. \]
Definition at line 408 of file Structure.cpp.
Referenced by readFromLines().
void Structure::calculateVolume | ( | ) |
Calculate volume from box vectors.
Definition at line 436 of file Structure.cpp.
Referenced by readFromLines().
void Structure::remap | ( | ) |
Translate all atoms back into box if outside.
Definition at line 443 of file Structure.cpp.
References atoms, and remap().
Referenced by nnp::Dataset::prepareNumericForces(), readFromLines(), and remap().
void Structure::remap | ( | Atom & | atom | ) |
Translate atom back into box if outside.
[in,out] | atom | Atom to be remapped. |
Definition at line 453 of file Structure.cpp.
References box, invbox, and nnp::Atom::r.
void Structure::toNormalizedUnits | ( | double | meanEnergy, |
double | convEnergy, | ||
double | convLength | ||
) |
Normalize structure, shift energy and change energy and length unit.
[in] | meanEnergy | Mean energy per atom (in old units). |
[in] | convEnergy | Multiplicative energy unit conversion factor. |
[in] | convLength | Multiplicative length unit conversion factor. |
Definition at line 479 of file Structure.cpp.
References atoms, box, energy, energyRef, invbox, isPeriodic, numAtoms, and volume.
Referenced by nnp::Mode::convertToNormalizedUnits(), and nnp::Prediction::readStructureFromFile().
void Structure::toPhysicalUnits | ( | double | meanEnergy, |
double | convEnergy, | ||
double | convLength | ||
) |
Switch to physical units, shift energy and change energy and length unit.
[in] | meanEnergy | Mean energy per atom (in old units). |
[in] | convEnergy | Multiplicative energy unit conversion factor. |
[in] | convLength | Multiplicative length unit conversion factor. |
Definition at line 505 of file Structure.cpp.
References atoms, box, energy, energyRef, invbox, isPeriodic, numAtoms, and volume.
Referenced by nnp::Mode::convertToPhysicalUnits(), and nnp::Prediction::predict().
size_t Structure::getMaxNumNeighbors | ( | ) | const |
Find maximum number of neighbors.
Definition at line 362 of file Structure.cpp.
References atoms.
void Structure::freeAtoms | ( | bool | all | ) |
Free symmetry function memory for all atoms, see free() in Atom class.
[in] | all | See description in Atom. |
Definition at line 531 of file Structure.cpp.
References atoms, hasSymmetryFunctionDerivatives, and hasSymmetryFunctions.
Referenced by nnp::Training::update().
void Structure::reset | ( | ) |
Reset everything but elementMap.
Definition at line 543 of file Structure.cpp.
References atoms, box, charge, chargeRef, comment, elementMap, energy, energyRef, hasNeighborList, hasSymmetryFunctionDerivatives, hasSymmetryFunctions, index, invbox, isPeriodic, isTriclinic, numAtoms, numAtomsPerElement, numElements, numElementsPresent, pbc, sampleType, nnp::ElementMap::size(), ST_UNKNOWN, and volume.
Referenced by main(), and nnp::Prediction::readStructureFromFile().
void Structure::clearNeighborList | ( | ) |
Clear neighbor list of all atoms.
Definition at line 580 of file Structure.cpp.
References atoms, nnp::Atom::clearNeighborList(), hasNeighborList, hasSymmetryFunctionDerivatives, hasSymmetryFunctions, numAtoms, numElements, and nnp::Atom::numNeighborsPerElement.
void Structure::updateError | ( | std::string const & | property, |
std::map< std::string, double > & | error, | ||
std::size_t & | count | ||
) | const |
Update property error metrics with this structure.
[in] | property | One of "energy", "force" or "charge". |
[in,out] | error | Input error metric map to be updated. |
[in,out] | count | Input counter to be updated. |
The "energy" error metric map stores temporary sums for the following metrics:
key "RMSEpa": RMSE of energy per atom key "RMSE" : RMSE of energy key "MAEpa" : MAE of energy per atom key "MAE" : MAE of energy
The "force" error metric map stores temporary sums for the following metrics:
key "RMSE" : RMSE of forces key "MAE" : MAE of forces
The "charge" error metric map stores temporary sums for the following metrics:
key "RMSE" : RMSE of charges key "MAE" : MAE of charges
Definition at line 596 of file Structure.cpp.
string Structure::getEnergyLine | ( | ) | const |
Get reference and NN energy.
Definition at line 626 of file Structure.cpp.
References energy, energyRef, index, numAtoms, and nnp::strpr().
vector< string > Structure::getForcesLines | ( | ) | const |
Get reference and NN forces for all atoms.
Definition at line 634 of file Structure.cpp.
References atoms.
vector< string > Structure::getChargesLines | ( | ) | const |
Get reference and NN charges for all atoms.
Definition at line 647 of file Structure.cpp.
References atoms.
void Structure::writeToFile | ( | std::string const | fileName = "output.data" , |
bool const | ref = true , |
||
bool const | append = false |
||
) | const |
Write configuration to file.
[in,out] | fileName | Ouptut file name. |
[in] | ref | If true, write reference energy and forces, if false, write NNP results instead. |
[in] | append | If true, append to existing file. |
Definition at line 659 of file Structure.cpp.
References writeToFile().
Referenced by main(), and writeToFile().
void Structure::writeToFile | ( | std::ofstream *const & | file, |
bool const | ref = true |
||
) | const |
Write configuration to file.
[in,out] | file | Ouptut file. |
[in] | ref | If true, write reference energy and forces, if false, write NNP results instead. |
Definition at line 684 of file Structure.cpp.
References atoms, box, charge, chargeRef, comment, elementMap, energy, energyRef, isPeriodic, and nnp::strpr().
void Structure::writeToFileXyz | ( | std::ofstream *const & | file | ) | const |
Write configuration to xyz file.
[in,out] | file | xyz output file. |
Definition at line 743 of file Structure.cpp.
References atoms, box, elementMap, isPeriodic, numAtoms, and nnp::strpr().
Referenced by main().
void Structure::writeToFilePoscar | ( | std::ofstream *const & | file | ) | const |
Write configuration to POSCAR file.
[in,out] | file | POSCAR output file. |
Definition at line 778 of file Structure.cpp.
References elementMap, nnp::ElementMap::getElementsString(), and writeToFilePoscar().
Referenced by main(), and writeToFilePoscar().
void Structure::writeToFilePoscar | ( | std::ofstream *const & | file, |
std::string const | elements | ||
) | const |
Write configuration to POSCAR file.
[in,out] | file | POSCAR output file. |
[in,out] | elements | User-defined order of elements, e.g. "Zn O Cu". |
Definition at line 785 of file Structure.cpp.
References atoms, box, comment, elementMap, isPeriodic, numAtomsPerElement, nnp::ElementMap::size(), nnp::split(), and nnp::strpr().
vector< string > Structure::info | ( | ) | const |
Get structure information as a vector of strings.
Definition at line 851 of file Structure.cpp.
References atoms, box, charge, chargeRef, comment, elementMap, energy, energyRef, hasNeighborList, hasSymmetryFunctionDerivatives, hasSymmetryFunctions, index, nnp::ElementMap::info(), invbox, isPeriodic, isTriclinic, numAtoms, numAtomsPerElement, numElements, numElementsPresent, pbc, sampleType, nnp::strpr(), and volume.
Referenced by main().
ElementMap nnp::Structure::elementMap |
Copy of element map provided as constructor argument.
Definition at line 54 of file Structure.h.
Referenced by addAtom(), info(), readFromLines(), reset(), setElementMap(), writeToFile(), writeToFilePoscar(), and writeToFileXyz().
bool nnp::Structure::isPeriodic |
If periodic boundary conditions apply.
Definition at line 56 of file Structure.h.
Referenced by calculateNeighborList(), info(), main(), nnp::Dataset::prepareNumericForces(), readFromLines(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), toNormalizedUnits(), toPhysicalUnits(), writeToFile(), writeToFilePoscar(), and writeToFileXyz().
bool nnp::Structure::isTriclinic |
If the simulation box is triclinic.
Definition at line 58 of file Structure.h.
Referenced by info(), readFromLines(), nnp::Dataset::recvStructure(), reset(), and nnp::Dataset::sendStructure().
bool nnp::Structure::hasNeighborList |
If the neighbor list has been calculated.
Definition at line 60 of file Structure.h.
Referenced by calculateNeighborList(), clearNeighborList(), info(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), and nnp::InterfaceLammps::setLocalAtoms().
bool nnp::Structure::hasSymmetryFunctions |
If symmetry function values are saved for each atom.
Definition at line 62 of file Structure.h.
Referenced by nnp::Mode::calculateSymmetryFunctionGroups(), nnp::Mode::calculateSymmetryFunctions(), clearNeighborList(), freeAtoms(), info(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), and nnp::InterfaceLammps::setLocalAtoms().
bool nnp::Structure::hasSymmetryFunctionDerivatives |
If symmetry function derivatives are saved for each atom.
Definition at line 64 of file Structure.h.
Referenced by nnp::Mode::calculateSymmetryFunctionGroups(), nnp::Mode::calculateSymmetryFunctions(), clearNeighborList(), freeAtoms(), info(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), and nnp::InterfaceLammps::setLocalAtoms().
std::size_t nnp::Structure::index |
Index number of this structure.
Definition at line 66 of file Structure.h.
Referenced by addAtom(), nnp::Dataset::distributeStructures(), getEnergyLine(), info(), main(), readFromLines(), nnp::Dataset::recvStructure(), reset(), nnp::Training::selectSets(), nnp::Dataset::sendStructure(), and nnp::InterfaceLammps::setLocalAtoms().
std::size_t nnp::Structure::numAtoms |
Total number of atoms present in this structure.
Definition at line 68 of file Structure.h.
Referenced by addAtom(), calculateNeighborList(), clearNeighborList(), nnp::Training::dPdc(), nnp::Training::dPdcN(), getEnergyLine(), info(), main(), nnp::Mode::normalizedEnergy(), nnp::Mode::physicalEnergy(), nnp::Dataset::prepareNumericForces(), readFromLines(), nnp::Dataset::recvStructure(), reset(), nnp::Training::selectSets(), nnp::Dataset::sendStructure(), nnp::InterfaceLammps::setLocalAtoms(), nnp::Training::sortUpdateCandidates(), toNormalizedUnits(), toPhysicalUnits(), nnp::Training::update(), updateError(), and writeToFileXyz().
std::size_t nnp::Structure::numElements |
Global number of elements (all structures).
Definition at line 70 of file Structure.h.
Referenced by clearNeighborList(), info(), main(), readFromLines(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), and setElementMap().
std::size_t nnp::Structure::numElementsPresent |
Number of elements present in this structure.
Definition at line 72 of file Structure.h.
Referenced by info(), readFromLines(), nnp::Dataset::recvStructure(), reset(), and nnp::Dataset::sendStructure().
int nnp::Structure::pbc[3] |
Number of PBC images necessary in each direction.
Definition at line 74 of file Structure.h.
Referenced by calculateNeighborList(), calculatePbcCopies(), info(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), and Structure().
double nnp::Structure::energy |
Potential energy determined by neural network.
Definition at line 76 of file Structure.h.
Referenced by nnp::Mode::addEnergyOffset(), nnp::Mode::calculateEnergy(), nnp::Training::dPdcN(), nnp::InterfaceLammps::getEnergy(), getEnergyLine(), nnp::Mode::getEnergyWithOffset(), info(), main(), nnp::Mode::normalizedEnergy(), nnp::Mode::physicalEnergy(), nnp::InterfaceLammps::process(), nnp::Dataset::recvStructure(), nnp::Mode::removeEnergyOffset(), reset(), nnp::Dataset::sendStructure(), nnp::InterfaceLammps::setLocalAtoms(), nnp::Training::sortUpdateCandidates(), toNormalizedUnits(), toPhysicalUnits(), nnp::Training::update(), updateError(), and writeToFile().
double nnp::Structure::energyRef |
Reference potential energy.
Definition at line 78 of file Structure.h.
Referenced by nnp::Mode::addEnergyOffset(), getEnergyLine(), nnp::Mode::getEnergyWithOffset(), info(), main(), nnp::Mode::normalizedEnergy(), nnp::Mode::physicalEnergy(), readFromLines(), nnp::Dataset::recvStructure(), nnp::Mode::removeEnergyOffset(), reset(), nnp::Dataset::sendStructure(), nnp::Training::sortUpdateCandidates(), toNormalizedUnits(), toPhysicalUnits(), nnp::Training::update(), updateError(), and writeToFile().
double nnp::Structure::charge |
Charge determined by neural network potential.
Definition at line 80 of file Structure.h.
Referenced by nnp::Mode::calculateCharge(), info(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), and writeToFile().
double nnp::Structure::chargeRef |
Reference charge.
Definition at line 82 of file Structure.h.
Referenced by info(), readFromLines(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), and writeToFile().
double nnp::Structure::volume |
Simulation box volume.
Definition at line 84 of file Structure.h.
Referenced by calculateVolume(), info(), main(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), toNormalizedUnits(), and toPhysicalUnits().
SampleType nnp::Structure::sampleType |
Sample type (training or test set).
Definition at line 86 of file Structure.h.
Referenced by info(), readFromLines(), nnp::Dataset::recvStructure(), reset(), nnp::Training::selectSets(), and nnp::Dataset::sendStructure().
std::string nnp::Structure::comment |
Structure comment.
Definition at line 88 of file Structure.h.
Referenced by nnp::Dataset::calculateBufferSize(), info(), main(), nnp::Dataset::prepareNumericForces(), readFromLines(), nnp::Dataset::recvStructure(), reset(), nnp::Dataset::sendStructure(), writeToFile(), and writeToFilePoscar().
Vec3D nnp::Structure::box[3] |
Simulation box vectors.
Definition at line 90 of file Structure.h.
Referenced by calculateInverseBox(), calculateNeighborList(), calculatePbcCopies(), calculateVolume(), info(), main(), readFromLines(), nnp::Dataset::recvStructure(), remap(), reset(), nnp::Dataset::sendStructure(), Structure(), toNormalizedUnits(), toPhysicalUnits(), writeToFile(), writeToFilePoscar(), and writeToFileXyz().
Vec3D nnp::Structure::invbox[3] |
Inverse simulation box vectors.
Definition at line 92 of file Structure.h.
Referenced by calculateInverseBox(), info(), nnp::Dataset::recvStructure(), remap(), reset(), nnp::Dataset::sendStructure(), Structure(), toNormalizedUnits(), and toPhysicalUnits().
std::vector<std::size_t> nnp::Structure::numAtomsPerElement |
Number of atoms of each element in this structure.
Definition at line 94 of file Structure.h.
Referenced by addAtom(), nnp::Mode::addEnergyOffset(), nnp::Dataset::calculateBufferSize(), nnp::Mode::getEnergyOffset(), nnp::Mode::getEnergyWithOffset(), info(), main(), readFromLines(), nnp::Dataset::recvStructure(), nnp::Mode::removeEnergyOffset(), reset(), nnp::Training::selectSets(), nnp::Dataset::sendStructure(), setElementMap(), nnp::InterfaceLammps::setLocalAtoms(), nnp::Training::update(), and writeToFilePoscar().
std::vector<Atom> nnp::Structure::atoms |
Vector of all atoms in this structure.
Definition at line 96 of file Structure.h.
Referenced by addAtom(), nnp::InterfaceLammps::addNeighbor(), nnp::Mode::calculateAtomicNeuralNetworks(), nnp::Dataset::calculateBufferSize(), nnp::Mode::calculateCharge(), nnp::Mode::calculateEnergy(), nnp::Mode::calculateForces(), calculateNeighborList(), nnp::Mode::calculateSymmetryFunctionGroups(), nnp::Mode::calculateSymmetryFunctions(), nnp::Training::calculateWeightDerivatives(), clearNeighborList(), nnp::Training::dPdc(), nnp::Training::dPdcN(), freeAtoms(), nnp::InterfaceLammps::getAtomicEnergy(), getChargesLines(), nnp::InterfaceLammps::getForces(), getForcesLines(), getMaxNumNeighbors(), info(), main(), nnp::Dataset::prepareNumericForces(), readFromLines(), nnp::Dataset::recvStructure(), remap(), reset(), nnp::Training::selectSets(), nnp::Dataset::sendStructure(), nnp::InterfaceLammps::setLocalAtoms(), nnp::InterfaceLammps::setLocalTags(), toNormalizedUnits(), toPhysicalUnits(), nnp::Training::update(), updateError(), writeToFile(), writeToFilePoscar(), and writeToFileXyz().