SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Rational Switching Function. More...
#include <PairwiseKernel.h>
Public Member Functions | |
RationalSwitchPK (double d0, double r0, int n, int m) | |
Constructor. More... | |
double | Evaluate (double rij, double &df) const override |
Evaluate the pairwise kernel function. More... | |
Public Member Functions inherited from SSAGES::PairwiseKernel | |
virtual | ~PairwiseKernel () |
Destructor. | |
Static Public Member Functions | |
static RationalSwitchPK * | Build (const Json::Value &json, const std::string &path) |
Build RationalSwitchPK from JSON value. More... | |
Static Public Member Functions inherited from SSAGES::PairwiseKernel | |
static PairwiseKernel * | Build (const Json::Value &json, const std::string &path) |
Build PairwiseKernel from JSON value. More... | |
Private Attributes | |
double | d0_ |
Minimum linear shift value. | |
double | r0_ |
Cutoff distance. | |
int | n_ |
Exponent of numerator in switching function (controls stiffness). | |
int | m_ |
Exponent of denominator in switching function (controls stiffness). | |
Rational Switching Function.
A switching function of a rational form.
Definition at line 120 of file PairwiseKernel.h.
|
inline |
Constructor.
d0 | Minimum linear shift value. |
r0 | Cutoff distance. |
m | An exponent of the switching function. |
n | An exponent of the switching function. |
Construct a GaussianPK.
Definition at line 139 of file PairwiseKernel.h.
Referenced by Build().
|
static |
Build RationalSwitchPK from JSON value.
json | JSON value node. |
Definition at line 77 of file PairwiseKernel.cpp.
References Json::Requirement::GetErrors(), Json::Requirement::HasErrors(), Json::ObjectRequirement::Parse(), RationalSwitchPK(), and Json::ObjectRequirement::Validate().
Referenced by SSAGES::PairwiseKernel::Build().
|
inlineoverridevirtual |
Evaluate the pairwise kernel function.
rij | distance between two atoms. |
df | Reference to variable which will store the gradient. |
Implements SSAGES::PairwiseKernel.
Definition at line 142 of file PairwiseKernel.h.