68 virtual void Initialize(
const class Snapshot&) {}
78 virtual void Evaluate(
const class Snapshot&) = 0;
171 return val_ - location;
Eigen::Matrix3d Matrix3
3x3 matrix.
std::array< double, 2 > bounds_
Bounds on CV.
const std::array< double, 2 > & GetBoundaries()
Get CV boundaries.
std::vector< Vector3 > grad_
Gradient vector dCv/dxi.
const std::vector< Vector3 > & GetGradient() const
Get current gradient of the CV.
const Matrix3 & GetBoxGradient() const
Get gradient contribution to box.
double GetValue() const
Get current value of the CV.
virtual double GetDifference(double location) const
double val_
Current value of CV.
virtual double GetMinimumImage(double) const
Returns the minimum image of a CV based on the input location.
Abstract class for a collective variable.
Matrix3 boxgrad_
Gradient w.r.t box vectors dCv/dHij.
CollectiveVariable()
Constructor.
static CollectiveVariable * BuildCV(const Json::Value &json, const std::string &path)
Set up collective variable.
virtual double GetPeriodicValue(double location) const
Apply periodic boundaries to a given value.