Simpatico
v1.10
|
Dihedral interaction classes are used in dihedral potential class templates to implement dihedral potential classes both the McMd and DdMd namespaces, in the templates McMd::DihedralPotentialImpl and DdMd::DihedralPotentialImpl. These templates call specific functions by name, and thus define an implicit interface that must be implemented by all dihedral interaction classes.
An dihedral is an interaction between two four atoms numbered 0,1, 2, and 3. Let be the position vector for atom i, with
.
Here is a prototype class definition that shows the signatures for all of the required functions, for a hypothetical interaction class called Dihedral: