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

Energy-weighted spring constants (variable per segment). More...

#include <NEBSpringForce.h>

Public Member Functions

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

Public Attributes

std::vector< double > springConstants

Detailed Description

Energy-weighted spring constants (variable per segment).

Definition at line 40 of file NEBSpringForce.h.

Member Function Documentation

◆ compute()

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

Definition at line 31 of file NEBSpringForce.cpp.

32 {
33 double kspNext = springConstants[i];
34 double kspPrev = springConstants[i - 1];
35
36 SpringResult result;
37 result.forceSpringPar =
38 ((kspNext * distNext) - (kspPrev * distPrev)) * tangent;
39 result.forceSpring = AtomMatrix::Zero(tangent.rows(), tangent.cols());
40 return result;
41}
std::vector< double > springConstants

Member Data Documentation

◆ springConstants

std::vector<double> eonc::neb::WeightedSpring::springConstants

Definition at line 41 of file NEBSpringForce.h.


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