Scine::Swoose
2.1.0
This is the SCINE module Swoose.
|
Class treating a bonded interaction, based solely on the bond length. (i.e. in 1 dimension) More...
#include <Bond.h>
Public Member Functions | |
Bond (double equilibriumDistance, double forceConstant) | |
Constructor with equilibrium distance and force constant. | |
Bond () | |
Constructor without arguments sets both parameters to zero and records that no parameters are available for this bond, hence throwing an exception if getInteraction() is called. This will not throw any error if the corresponding bonded term is disabled (e.g., in a QM/MM calculation). | |
bool | hasParameters () const |
Returns whether parameters are available for this bond. | |
Utils::AutomaticDifferentiation::Second1D | getInteraction (double bondLength) const |
Evaluates the energy and its derivatives for one bond. | |
Class treating a bonded interaction, based solely on the bond length. (i.e. in 1 dimension)