QMCPACK
CuspCorrection Class Reference

Formulas for applying the cusp correction. More...

+ Collaboration diagram for CuspCorrection:

Public Member Functions

RealType Rr (RealType r) const
 
RealType pr (RealType r) const
 
RealType dpr (RealType r) const
 
RealType d2pr (RealType r) const
 
 CuspCorrection (const CuspCorrectionParameters &param)
 

Public Attributes

CuspCorrectionParameters cparam
 

Private Types

using RealType = QMCTraits::RealType
 

Detailed Description

Formulas for applying the cusp correction.

Definition at line 62 of file CuspCorrection.h.

Member Typedef Documentation

◆ RealType

using RealType = QMCTraits::RealType
private

Definition at line 64 of file CuspCorrection.h.

Constructor & Destructor Documentation

◆ CuspCorrection()

CuspCorrection ( const CuspCorrectionParameters param)
inline

Definition at line 87 of file CuspCorrection.h.

87 : cparam(param) {}
CuspCorrectionParameters cparam

Member Function Documentation

◆ d2pr()

RealType d2pr ( RealType  r) const
inline

Definition at line 81 of file CuspCorrection.h.

References CuspCorrectionParameters::alpha, and CuspCorrection::cparam.

Referenced by qmcplusplus::getCurrentLocalEnergy().

82  {
83  auto& alpha = cparam.alpha;
84  return 2.0 * alpha[2] + 6.0 * alpha[3] * r + 12.0 * alpha[4] * r * r;
85  }
TinyVector< ValueType, 5 > alpha
The coefficients of the polynomial in Eq 8.
CuspCorrectionParameters cparam

◆ dpr()

RealType dpr ( RealType  r) const
inline

Definition at line 75 of file CuspCorrection.h.

References CuspCorrectionParameters::alpha, and CuspCorrection::cparam.

Referenced by qmcplusplus::getCurrentLocalEnergy().

76  {
77  auto& alpha = cparam.alpha;
78  return alpha[1] + 2.0 * alpha[2] * r + 3.0 * alpha[3] * r * r + 4.0 * alpha[4] * r * r * r;
79  }
TinyVector< ValueType, 5 > alpha
The coefficients of the polynomial in Eq 8.
CuspCorrectionParameters cparam

◆ pr()

RealType pr ( RealType  r) const
inline

Definition at line 69 of file CuspCorrection.h.

References CuspCorrectionParameters::alpha, and CuspCorrection::cparam.

Referenced by CuspCorrection::Rr().

70  {
71  auto& alpha = cparam.alpha;
72  return alpha[0] + alpha[1] * r + alpha[2] * r * r + alpha[3] * r * r * r + alpha[4] * r * r * r * r;
73  }
TinyVector< ValueType, 5 > alpha
The coefficients of the polynomial in Eq 8.
CuspCorrectionParameters cparam

◆ Rr()

RealType Rr ( RealType  r) const
inline

Definition at line 67 of file CuspCorrection.h.

References CuspCorrection::cparam, qmcplusplus::exp(), CuspCorrection::pr(), and CuspCorrectionParameters::sg.

Referenced by qmcplusplus::getCurrentLocalEnergy(), and qmcplusplus::phiBar().

67 { return cparam.sg * std::exp(pr(r)); }
RealType sg
The sign of the wavefunction at the nucleus.
CuspCorrectionParameters cparam
MakeReturn< UnaryNode< FnExp, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t exp(const Vector< T1, C1 > &l)
RealType pr(RealType r) const

Member Data Documentation

◆ cparam


The documentation for this class was generated from the following file: