![]() |
QMCPACK
|
Inheritance diagram for LRRPAHandlerTemp< Func, BreakupBasis >:
Collaboration diagram for LRRPAHandlerTemp< Func, BreakupBasis >:Public Types | |
| using | ParticleLayout = ParticleSet::ParticleLayout |
| using | BreakupBasisType = BreakupBasis |
Public Member Functions | |
| LRRPAHandlerTemp (ParticleSet &ref, mRealType kc_in=-1.0) | |
| LRRPAHandlerTemp (const LRRPAHandlerTemp &aLR, ParticleSet &ref) | |
| "copy" constructor More... | |
| LRHandlerBase * | makeClone (ParticleSet &ref) const override |
| make clone More... | |
| void | initBreakup (ParticleSet &ref) override |
| void | Breakup (ParticleSet &ref, mRealType rs_ext) override |
| void | resetTargetParticleSet (ParticleSet &ref) override |
| void | resetTargetParticleSet (ParticleSet &ref, mRealType rs) |
| mRealType | evaluate (mRealType r, mRealType rinv) const override |
| mRealType | srDf (mRealType r, mRealType rinv) const override |
| evaluate the first derivative of the short range part at r More... | |
| mRealType | evaluateLR (mRealType r) const override |
| evaluate the contribution from the long-range part for for spline More... | |
| mRealType | evaluate_vlr_k (mRealType k) const override |
Public Member Functions inherited from LRHandlerBase | |
| LRHandlerBase (mRealType kc) | |
| virtual | ~LRHandlerBase ()=default |
| mRealType | get_rc () const |
| mRealType | get_kc () const |
| mRealType | evaluate_w_sk (const std::vector< int > &kshell, const pRealType *restrict sk) const |
| mRealType | evaluate (const std::vector< int > &kshell, const pRealType *restrict rk1_r, const pRealType *restrict rk1_i, const pRealType *restrict rk2_r, const pRealType *restrict rk2_i) const |
evaluate More... | |
| virtual mRealType | evaluate_slab (pRealType z, const std::vector< int > &kshell, const pRealType *restrict rk1_r, const pRealType *restrict rk1_i, const pRealType *restrict rk2_r, const pRealType *restrict rk2_i) const |
| Evaluate the long-range potential with the open BC for the D-1 direction. More... | |
| void | evaluateGrad (const ParticleSet &A, const ParticleSet &B, int specB, std::vector< pRealType > &Zat, std::vector< TinyVector< pRealType, OHMMS_DIM >> &grad1) const |
evaluate and More... | |
| SymTensor< pRealType, OHMMS_DIM > | evaluateStress (const std::vector< int > &kshell, const pRealType *rhokA_r, const pRealType *rhokA_i, const pRealType *rhokB_r, const pRealType *rhokB_i) const |
| FIX_PRECISION. More... | |
| virtual mRealType | evaluateSR_k0 () const |
evaluate More... | |
| virtual mRealType | evaluateLR_r0 () const |
evaluate for the self-interaction term More... | |
| virtual SymTensor< mRealType, OHMMS_DIM > | evaluateLR_r0_dstrain () const |
| These functions return the strain derivatives of all corresponding quantities in total energy. More... | |
| virtual SymTensor< mRealType, OHMMS_DIM > | evaluateSR_k0_dstrain () const |
| virtual SymTensor< mRealType, OHMMS_DIM > | evaluateLR_dstrain (TinyVector< pRealType, OHMMS_DIM > k, pRealType kmag) const |
| virtual SymTensor< mRealType, OHMMS_DIM > | evaluateSR_dstrain (TinyVector< pRealType, OHMMS_DIM > r, pRealType rmag) const |
| virtual mRealType | lrDf (mRealType r) const |
Public Attributes | |
| bool | FirstTime |
| mRealType | rs |
| mRealType | kc |
| BreakupBasisType | Basis |
| Func | myFunc |
Public Attributes inherited from LRHandlerBase | |
| DECLARE_COULOMB_TYPES int | MaxKshell |
| Maxkimum Kshell for the given Kc. More... | |
| mRealType | LR_kc |
| Maximum k cutoff. More... | |
| mRealType | LR_rc |
| Maximum r cutoff. More... | |
| Vector< mRealType > | Fk |
| Fourier component for all the k-point. More... | |
| Vector< mRealType > | Fkg |
| Fourier component of the LR part, fit to optimize the gradients. More... | |
| std::vector< SymTensor< mRealType, OHMMS_DIM > > | dFk_dstrain |
| Fourier component of the LR part of strain tensor, by optimized breakup. More... | |
| Vector< mRealType > | Fkgstrain |
| Vector of df_k/dk, fit as to optimize strains. More... | |
| Vector< mRealType > | Fk_symm |
| Fourier component for each k-shell. More... | |
| std::vector< mRealType > | coefs |
| Fourier component for each k-shell Coefficient. More... | |
| std::vector< mRealType > | gcoefs |
| Coefficient for gradient fit. More... | |
| std::vector< mRealType > | gstraincoefs |
| Coefficient for strain fit. More... | |
Private Member Functions | |
| mRealType | evalFk (mRealType k) const |
| mRealType | evalXk (mRealType k) const |
| void | InitBreakup (const ParticleLayout &ref, int NumFunctions) |
| Initialise the basis and coefficients for the long-range beakup. More... | |
| void | fillXk (std::vector< TinyVector< mRealType, 2 >> &KList) |
| void | fillFk (const KContainer &KList) |
Additional Inherited Members | |
Protected Attributes inherited from LRHandlerBase | |
| std::string | ClassName |
Definition at line 36 of file LRRPAHandlerTemp.h.
| using BreakupBasisType = BreakupBasis |
Definition at line 42 of file LRRPAHandlerTemp.h.
Definition at line 41 of file LRRPAHandlerTemp.h.
|
inline |
Definition at line 51 of file LRRPAHandlerTemp.h.
References LRHandlerBase::ClassName, and LRRPAHandlerTemp< Func, BreakupBasis >::myFunc.
|
inline |
"copy" constructor
| aLR | LRHandlerTemp |
| ref | Particleset |
Copy the content of aLR References to ParticleSet or ParticleLayoutout_t are not copied.
Definition at line 70 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::fillFk(), ParticleSet::getSimulationCell(), and LRRPAHandlerTemp< Func, BreakupBasis >::myFunc.
|
inlineoverridevirtual |
Implements LRHandlerBase.
Definition at line 89 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::Basis, LRRPAHandlerTemp< Func, BreakupBasis >::fillFk(), ParticleSet::getLattice(), ParticleSet::getSimulationCell(), ParticleSet::getTotalNum(), LRRPAHandlerTemp< Func, BreakupBasis >::InitBreakup(), LRHandlerBase::LR_rc, LRRPAHandlerTemp< Func, BreakupBasis >::myFunc, qmcplusplus::pow(), and LRRPAHandlerTemp< Func, BreakupBasis >::rs.
Referenced by RadialJastrowBuilder::initTwoBodyFunctor().
Definition at line 141 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::Basis, LRHandlerBase::coefs, LRRPAHandlerTemp< Func, BreakupBasis >::myFunc, and qmcplusplus::n.
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::evaluate_vlr_k(), and LRRPAHandlerTemp< Func, BreakupBasis >::fillFk().
Implements LRHandlerBase.
Definition at line 106 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::Basis, LRHandlerBase::coefs, and qmcplusplus::n.
Referenced by RadialJastrowBuilder::initTwoBodyFunctor().
Implements LRHandlerBase.
Definition at line 138 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::evalFk().
evaluate the contribution from the long-range part for for spline
Implements LRHandlerBase.
Definition at line 130 of file LRRPAHandlerTemp.h.
Definition at line 150 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::Basis, and LRRPAHandlerTemp< Func, BreakupBasis >::myFunc.
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::fillXk().
|
inlineprivate |
Definition at line 218 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::evalFk(), LRHandlerBase::Fk, LRHandlerBase::Fk_symm, KContainer::kpts_cart, KContainer::kshell, KContainer::ksq, LRHandlerBase::MaxKshell, qmcplusplus::pow(), Vector< T, Alloc >::resize(), and Vector< T, Alloc >::size().
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::Breakup(), LRRPAHandlerTemp< Func, BreakupBasis >::initBreakup(), and LRRPAHandlerTemp< Func, BreakupBasis >::LRRPAHandlerTemp().
|
inlineprivate |
Definition at line 208 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::evalXk(), LRHandlerBase::Fk, and Vector< T, Alloc >::resize().
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::InitBreakup().
|
inlineoverridevirtual |
Implements LRHandlerBase.
Definition at line 82 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::Basis, LRRPAHandlerTemp< Func, BreakupBasis >::fillFk(), ParticleSet::getLattice(), ParticleSet::getSimulationCell(), LRRPAHandlerTemp< Func, BreakupBasis >::InitBreakup(), and LRHandlerBase::LR_rc.
|
inlineprivate |
Initialise the basis and coefficients for the long-range beakup.
We loocally create a breakup handler and pass in the basis that has been initialised here. We then discard the handler, leaving basis and coefs in a usable state. This method can be re-called later if lattice changes shape.
Definition at line 165 of file LRRPAHandlerTemp.h.
References qmcplusplus::app_log(), LRRPAHandlerTemp< Func, BreakupBasis >::Basis, LRHandlerBase::coefs, Vector< T, Alloc >::data(), LRBreakup< BreakupBasis >::DoBreakup(), LRRPAHandlerTemp< Func, BreakupBasis >::fillXk(), LRRPAHandlerTemp< Func, BreakupBasis >::FirstTime, LRHandlerBase::Fk, LRRPAHandlerTemp< Func, BreakupBasis >::kc, LRBreakup< BreakupBasis >::KList, LRHandlerBase::LR_kc, LRHandlerBase::MaxKshell, qmcplusplus::pow(), and LRBreakup< BreakupBasis >::SetupKVecs().
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::Breakup(), and LRRPAHandlerTemp< Func, BreakupBasis >::initBreakup().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements LRHandlerBase.
Definition at line 102 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::myFunc.
|
inline |
Definition at line 104 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::myFunc, and LRRPAHandlerTemp< Func, BreakupBasis >::rs.
evaluate the first derivative of the short range part at r
| r | radius |
| rinv | 1/r |
Implements LRHandlerBase.
Definition at line 119 of file LRRPAHandlerTemp.h.
References LRRPAHandlerTemp< Func, BreakupBasis >::Basis, LRHandlerBase::coefs, and qmcplusplus::n.
| BreakupBasisType Basis |
Definition at line 47 of file LRRPAHandlerTemp.h.
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::Breakup(), LRRPAHandlerTemp< Func, BreakupBasis >::evalFk(), LRRPAHandlerTemp< Func, BreakupBasis >::evaluate(), LRRPAHandlerTemp< Func, BreakupBasis >::evalXk(), LRRPAHandlerTemp< Func, BreakupBasis >::initBreakup(), LRRPAHandlerTemp< Func, BreakupBasis >::InitBreakup(), and LRRPAHandlerTemp< Func, BreakupBasis >::srDf().
| bool FirstTime |
Definition at line 44 of file LRRPAHandlerTemp.h.
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::InitBreakup().
| mRealType kc |
Definition at line 46 of file LRRPAHandlerTemp.h.
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::InitBreakup().
| Func myFunc |
Definition at line 48 of file LRRPAHandlerTemp.h.
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::Breakup(), LRRPAHandlerTemp< Func, BreakupBasis >::evalFk(), LRRPAHandlerTemp< Func, BreakupBasis >::evalXk(), LRRPAHandlerTemp< Func, BreakupBasis >::LRRPAHandlerTemp(), and LRRPAHandlerTemp< Func, BreakupBasis >::resetTargetParticleSet().
| mRealType rs |
Definition at line 45 of file LRRPAHandlerTemp.h.
Referenced by LRRPAHandlerTemp< Func, BreakupBasis >::Breakup(), and LRRPAHandlerTemp< Func, BreakupBasis >::resetTargetParticleSet().