SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Pairwise kernel base class. More...
#include <PairwiseKernel.h>
Public Member Functions | |
virtual double | Evaluate (double rij, double &df) const =0 |
Evaluate the pairwise kernel function. More... | |
virtual | ~PairwiseKernel () |
Destructor. | |
Static Public Member Functions | |
static PairwiseKernel * | Build (const Json::Value &json, const std::string &path) |
Build PairwiseKernel from JSON value. More... | |
Pairwise kernel base class.
Pairwise functions are useful for a variety of collective variables. Several classes of these functions exist.
Gaussian functions are useful for collective variables that focus on a certain value. Unlike a delta function, they interpolate provide a continuous function and gradient for biasing.
Switching functions are useful for collective variables that are discrete in nature. They interpolate the discrete values and provide a continuous gradient for biasing.
Definition at line 44 of file PairwiseKernel.h.
|
static |
Build PairwiseKernel from JSON value.
Definition at line 30 of file PairwiseKernel.cpp.
References SSAGES::GaussianPK::Build(), and SSAGES::RationalSwitchPK::Build().
Referenced by SSAGES::PairwiseCV::Build().
|
pure virtual |
Evaluate the pairwise kernel function.
rij | distance between two atoms. |
df | Reference to variable which will store the gradient. |
Implemented in SSAGES::RationalSwitchPK, and SSAGES::GaussianPK.
Referenced by SSAGES::PairwiseCV::Evaluate().