Loading...
Searching...
No Matches
eonc::neb::GeometricSpring Struct Reference

Cubic-potential spring. More...

#include <NEBSpringForce.h>

Public Member Functions

SpringResult compute (long i, const AtomMatrix &tangent, double distNext, double distPrev) const

Public Attributes

double ksp

Detailed Description

Cubic-potential spring.

The parallel force is k times the difference of squared neighbour distances, so a perpendicular step cancels and the stiffness falls with the image spacing.

Definition at line 42 of file NEBSpringForce.h.

Member Function Documentation

◆ compute()

SpringResult eonc::neb::GeometricSpring::compute ( long i,
const AtomMatrix & tangent,
double distNext,
double distPrev ) const

Definition at line 33 of file NEBSpringForce.cpp.

34 {
35 static_cast<void>(i);
36 SpringResult result;
37 result.forceSpringPar =
38 ksp * (distNext * distNext - distPrev * distPrev) * tangent;
39 result.forceSpring = AtomMatrix::Zero(tangent.rows(), tangent.cols());
40 return result;
41}

Member Data Documentation

◆ ksp

double eonc::neb::GeometricSpring::ksp

Definition at line 43 of file NEBSpringForce.h.


The documentation for this struct was generated from the following files: