#include <kim.h>
The Kim class links MDStressLab to an openkim interatomic potential model.
- Examples
- crack/main.cpp, testLDADLJ.cpp, testLJ.cpp, and testMls.cpp.
Definition at line 20 of file kim.h.
◆ Kim() [1/2]
Kim::Kim |
( |
const std::string & |
modelname | ) |
|
Constructs the Kim object
- Parameters
-
modelname | - KIM model name |
Definition at line 13 of file kim.cpp.
◆ Kim() [2/2]
Definition at line 34 of file kim.h.
◆ ~Kim()
◆ broadcastToModel()
This function broadcasts the atomistic system to the KIM model
- Parameters
-
config_ptr | - pointer to the configuration of atoms |
particleContributing | - an integer array of size equal to the number of atoms. If a particle is contributing it is marked as 1, and 0 otherwise. |
forces_ptr | - pointer to a matrix of size [3 x numberOfParticle] describing atomic forces |
nl_ptr | - pointer to the neighbor list |
get_neigh_ptr | - a pointer to a function that return the neighbor list of an atom |
bonds | - pointer to a InteratomicForces object |
processDEDr_ptr | - a pointer to the processdEdr function |
Definition at line 254 of file kim.cpp.
◆ compute()
This function call the model's compute routine to calculate the atomic forces. In addition, if processDEDr_ptr!=nullptr, interatomic forces are calculated using the model's processdEdr functionality.
Definition at line 303 of file kim.cpp.
◆ getCutoffs()
const double * Kim::getCutoffs |
( |
| ) |
const |
◆ getNumberOfNeighborLists()
int Kim::getNumberOfNeighborLists |
( |
| ) |
const |
◆ queryModel()
◆ computeArguments
KIM::ComputeArguments* Kim::computeArguments |
Definition at line 27 of file kim.h.
◆ influenceDistance
double Kim::influenceDistance |
Definition at line 25 of file kim.h.
◆ kim_ptr
Definition at line 26 of file kim.h.
◆ modelname
std::string Kim::modelname |
Definition at line 24 of file kim.h.
◆ speciesCode
std::vector<int> Kim::speciesCode |
Definition at line 23 of file kim.h.
The documentation for this class was generated from the following files: