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