DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
excDensityLLMGGAClass.h
Go to the documentation of this file.
1//
2// Created by Arghadwip Paul.
3//
4
5#ifndef DFTFE_EXCDENSITYLLMGGACLASS_H
6#define DFTFE_EXCDENSITYLLMGGACLASS_H
7
8#include <xc.h>
10namespace dftfe
11{
12 class NNLLMGGA;
13 template <dftfe::utils::MemorySpace memorySpace>
15 {
16 public:
17 excDensityLLMGGAClass(std::shared_ptr<xc_func_type> funcXPtr,
18 std::shared_ptr<xc_func_type> funcCPtr);
19
20 excDensityLLMGGAClass(std::shared_ptr<xc_func_type> funcXPtr,
21 std::shared_ptr<xc_func_type> funcCPtr,
22 std::string modelXCInputFile);
23
25
26
27 void
29 AuxDensityMatrix<memorySpace> &auxDensityMatrix,
30 const std::pair<dftfe::uInt, dftfe::uInt> &quadIndexRange,
31 std::unordered_map<xcRemainderOutputDataAttributes, std::vector<double>>
32 &xDataOut,
33 std::unordered_map<xcRemainderOutputDataAttributes, std::vector<double>>
34 &cDataout) const override;
35
36 void
38 const std::vector<xcRemainderOutputDataAttributes> &outputDataAttributes)
39 const override;
40
41 void
44 &src,
46 const dftfe::uInt inputVecSize,
47 const dftfe::uInt kPointIndex,
48 const dftfe::uInt spinIndex) override;
49
50 /*
51 * @brief The apply function that will be called in HXCheby() with single precision.
52 * The distribute() and updateGhostValues() for src
53 * has to be called before this function.
54 * Similarly for dst, accumulateLocallyOwned() should be called in HX()
55 * after this function is called. param[in] src The input vector param[out]
56 * dst The output vector param[in] inputVecSize The size of the input vector
57 * param[in] kPointIndex the k point for which the HX() is called
58 * param[in] spinIndex the spin index for which the HX() is called
59 */
60 void
63 memorySpace> &src,
65 &dst,
66 const dftfe::uInt inputVecSize,
67 const dftfe::uInt kPointIndex,
68 const dftfe::uInt spinIndex) override;
69
70 void
72 const std::shared_ptr<AuxDensityMatrix<memorySpace>> &auxDensityMatrixPtr,
73 const std::vector<double> &kPointWeights) override;
74 void
76 const std::shared_ptr<AuxDensityMatrix<memorySpace>> &auxDensityMatrix,
77 const std::vector<double> &kPointWeights) override;
78
79 double
81
82 double
84
85 void
87
88 private:
89 NNLLMGGA *d_NNLLMGGAPtr;
90 std::shared_ptr<xc_func_type> d_funcXPtr;
91 std::shared_ptr<xc_func_type> d_funcCPtr;
92 std::vector<double> d_spacingFDStencil;
94 };
95} // namespace dftfe
96#endif // DFTFE_EXCDENSITYLLMGGACLASS_H
Definition AuxDensityMatrix.h:40
ExcSSDFunctionalBaseClass(const ExcFamilyType excFamType, const densityFamilyType densityFamType, const std::vector< DensityDescriptorDataAttributes > &densityDescriptorAttributesList)
Definition ExcSSDFunctionalBaseClass.t.cc:25
void updateWaveFunctionDependentFuncDerWrtPsi(const std::shared_ptr< AuxDensityMatrix< memorySpace > > &auxDensityMatrixPtr, const std::vector< double > &kPointWeights) override
dftfe::uInt d_vxcDivergenceTermFDStencilSize
Definition excDensityLLMGGAClass.h:93
double getWaveFunctionDependentExcEnergy() override
void applyWaveFunctionDependentFuncDerWrtPsi(const dftfe::linearAlgebra::MultiVector< dataTypes::number, memorySpace > &src, dftfe::linearAlgebra::MultiVector< dataTypes::number, memorySpace > &dst, const dftfe::uInt inputVecSize, const dftfe::uInt kPointIndex, const dftfe::uInt spinIndex) override
void computeRhoTauDependentXCData(AuxDensityMatrix< memorySpace > &auxDensityMatrix, const std::pair< dftfe::uInt, dftfe::uInt > &quadIndexRange, std::unordered_map< xcRemainderOutputDataAttributes, std::vector< double > > &xDataOut, std::unordered_map< xcRemainderOutputDataAttributes, std::vector< double > > &cDataout) const override
std::shared_ptr< xc_func_type > d_funcXPtr
Definition excDensityLLMGGAClass.h:90
excDensityLLMGGAClass(std::shared_ptr< xc_func_type > funcXPtr, std::shared_ptr< xc_func_type > funcCPtr)
NNLLMGGA * d_NNLLMGGAPtr
Definition excDensityLLMGGAClass.h:89
std::vector< double > d_spacingFDStencil
Definition excDensityLLMGGAClass.h:92
void applyWaveFunctionDependentFuncDerWrtPsi(const dftfe::linearAlgebra::MultiVector< dataTypes::numberFP32, memorySpace > &src, dftfe::linearAlgebra::MultiVector< dataTypes::numberFP32, memorySpace > &dst, const dftfe::uInt inputVecSize, const dftfe::uInt kPointIndex, const dftfe::uInt spinIndex) override
std::shared_ptr< xc_func_type > d_funcCPtr
Definition excDensityLLMGGAClass.h:91
void checkInputOutputDataAttributesConsistency(const std::vector< xcRemainderOutputDataAttributes > &outputDataAttributes) const override
excDensityLLMGGAClass(std::shared_ptr< xc_func_type > funcXPtr, std::shared_ptr< xc_func_type > funcCPtr, std::string modelXCInputFile)
void computeWaveFunctionDependentExcEnergy(const std::shared_ptr< AuxDensityMatrix< memorySpace > > &auxDensityMatrix, const std::vector< double > &kPointWeights) override
void reinitKPointDependentVariables(dftfe::uInt kPointIndex) override
double getExpectationOfWaveFunctionDependentExcFuncDerWrtPsi() override
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition MultiVector.h:127
float numberFP32
Definition dftfeDataTypes.h:43
Definition pseudoPotentialToDftfeConverter.cc:34
xcRemainderOutputDataAttributes
Definition ExcSSDFunctionalBaseClass.h:58
std::uint32_t uInt
Definition TypeConfig.h:10