A set of classes defining the behaviour of crystalline defects, with the final goal of carrying out dislocation dynamics simulations in two dimensions.
Take care to use Defect* as the type for the std::vector. When Defect is used, and a virtual function is called, the implementation of the base class, Defect in this case, is carried out instead of the one from the derived classes such as Dislocation, etc.
Take care to use
Defect*
as the type for thestd::vector
. WhenDefect
is used, and a virtual function is called, the implementation of the base class,Defect
in this case, is carried out instead of the one from the derived classes such asDislocation
, etc.