25 #include "CollectiveVariable.h"
Abstract class for a collective variable.
std::vector< Vector3 > grad_
Gradient vector dCv/dxi.
double val_
Current value of CV.
std::array< double, 2 > bounds_
Bounds on CV.
Mock collective variable for testing purposes.
void Evaluate(const Snapshot &snapshot) override
Evaluate the CV.
MockCV(double value, const Vector3 &grad, double upper, double lower)
Constructor.
Vector3 usergrad_
User defined gradient vector.
void Initialize(const Snapshot &snapshot) override
Initialize necessary variables.
Class containing a snapshot of the current simulation in time.
const std::vector< Vector3 > & GetPositions() const
Access the particle positions.
Eigen::Vector3d Vector3
Three-dimensional vector.