QMCPACK
L2RadialPotential Struct Reference
+ Inheritance diagram for L2RadialPotential:
+ Collaboration diagram for L2RadialPotential:

Public Types

using GridType = OneDimGridBase< RealType >
 
using RadialPotentialType = OneDimCubicSpline< RealType >
 
- Public Types inherited from QMCTraits
enum  { DIM = OHMMS_DIM, DIM_VGL = OHMMS_DIM + 2 }
 
using QTBase = QMCTypes< OHMMS_PRECISION, DIM >
 
using QTFull = QMCTypes< OHMMS_PRECISION_FULL, DIM >
 
using RealType = QTBase::RealType
 
using ComplexType = QTBase::ComplexType
 
using ValueType = QTBase::ValueType
 
using PosType = QTBase::PosType
 
using GradType = QTBase::GradType
 
using TensorType = QTBase::TensorType
 
using IndexType = OHMMS_INDEXTYPE
 define other types More...
 
using FullPrecRealType = QTFull::RealType
 
using FullPrecValueType = QTFull::ValueType
 
using PropertySetType = RecordNamedProperty< FullPrecRealType >
 define PropertyList_t More...
 
using PtclGrpIndexes = std::vector< std::pair< int, int > >
 

Public Member Functions

RealType evaluate (RealType r)
 
RealType evaluate_guard (RealType r)
 
L2RadialPotentialmakeClone ()
 

Public Attributes

std::unique_ptr< RadialPotentialTypevL2
 
RealType rcut
 

Detailed Description

Definition at line 25 of file L2Potential.h.

Member Typedef Documentation

◆ GridType

Definition at line 27 of file L2Potential.h.

◆ RadialPotentialType

Definition at line 28 of file L2Potential.h.

Member Function Documentation

◆ evaluate()

RealType evaluate ( RealType  r)
inline

Definition at line 33 of file L2Potential.h.

References L2RadialPotential::vL2.

Referenced by L2Potential::evaluateD(), and L2Potential::evaluateDK().

33 { return vL2->splint(r); }
std::unique_ptr< RadialPotentialType > vL2
Definition: L2Potential.h:30

◆ evaluate_guard()

RealType evaluate_guard ( RealType  r)
inline

Definition at line 35 of file L2Potential.h.

References L2RadialPotential::rcut, and L2RadialPotential::vL2.

36  {
37  if (r < rcut)
38  return vL2->splint(r);
39  else
40  return 0.0;
41  }
std::unique_ptr< RadialPotentialType > vL2
Definition: L2Potential.h:30

◆ makeClone()

L2RadialPotential* makeClone ( )
inline

Definition at line 43 of file L2Potential.h.

References L2RadialPotential::rcut, and L2RadialPotential::vL2.

44  {
45  auto c = new L2RadialPotential();
46  c->vL2.reset(vL2->makeClone());
47  c->rcut = rcut;
48  return c;
49  }
std::unique_ptr< RadialPotentialType > vL2
Definition: L2Potential.h:30

Member Data Documentation

◆ rcut

RealType rcut

◆ vL2


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