|
faunus
|
Harmonic Bond. More...
#include <bonds.h>


Public Member Functions | |
| Variant | type () const override |
| std::shared_ptr< BondData > | clone () const override |
| void | from_json (const json &j) override |
| void | to_json (json &j) const override |
| void | setEnergyFunction (const ParticleVector &particles) override |
| Set energy and force functors. More... | |
| HarmonicBond (double k, double req, const std::vector< int > &indices) | |
Public Attributes | |
| double | half_force_constant = 0.0 |
| double | equilibrium_distance = 0.0 |
Harmonic Bond.
U(r) = k/2 * (r - r_eq)^2
|
override |
Set energy and force functors.
| particles | Particle vector to all particles in the system |
This sets both the energyFunc and forceFunc function objects for calculating the potential energy and the forces on the participating atoms
1.8.13