DFT-FE 1.3.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
excTauMGGAClass.h
Go to the documentation of this file.
1#ifndef DFTFE_excTauMGGAClass_H
2#define DFTFE_excTauMGGAClass_H
3
4#include <xc.h>
6
7namespace dftfe
8{
9 template <dftfe::utils::MemorySpace memorySpace>
10 class excTauMGGAClass : public ExcSSDFunctionalBaseClass<memorySpace>
11 {
12 public:
13 excTauMGGAClass(std::shared_ptr<xc_func_type> &funcXPtr,
14 std::shared_ptr<xc_func_type> &funcCPtr,
15 const bool useLibXC);
16
17 excTauMGGAClass(std::shared_ptr<xc_func_type> &funcXPtr,
18 std::shared_ptr<xc_func_type> &funcCPtr,
19 std::string modelXCInputFile,
20 const bool useLibXC);
21
23
24 void
26 AuxDensityMatrix<memorySpace> &auxDensityMatrix,
27 const std::pair<dftfe::uInt, dftfe::uInt> &quadIndexRange,
28 std::unordered_map<
31 &xDataOut,
32 std::unordered_map<
35 &cDataout) const override;
36
37 void
39 const std::vector<xcRemainderOutputDataAttributes> &outputDataAttributes)
40 const override;
41
42 void
45 &src,
47 const dftfe::uInt inputVecSize,
48 const dftfe::uInt kPointIndex,
49 const dftfe::uInt spinIndex) override;
50
51 /*
52 * @brief The apply function that will be called in HXCheby() with single precision.
53 * The distribute() and updateGhostValues() for src
54 * has to be called before this function.
55 * Similarly for dst, accumulateLocallyOwned() should be called in HX()
56 * after this function is called. param[in] src The input vector param[out]
57 * dst The output vector param[in] inputVecSize The size of the input vector
58 * param[in] kPointIndex the k point for which the HX() is called
59 * param[in] spinIndex the spin index for which the HX() is called
60 */
61 void
64 memorySpace> &src,
66 &dst,
67 const dftfe::uInt inputVecSize,
68 const dftfe::uInt kPointIndex,
69 const dftfe::uInt spinIndex) override;
70
71
72 void
74 const std::shared_ptr<AuxDensityMatrix<memorySpace>> &auxDensityMatrixPtr,
75 const std::vector<double> &kPointWeights) override;
76
77 void
79 const std::shared_ptr<AuxDensityMatrix<memorySpace>> &auxDensityMatrix,
80 const std::vector<double> &kPointWeights) override;
81
82 double
84
85 double
87
88 void
90
91 private:
92 std::shared_ptr<xc_func_type> d_funcXPtr;
93 std::shared_ptr<xc_func_type> d_funcCPtr;
94 bool d_useLibxc; ///< Flag to indicate whether to use libxc or not
95 };
96
97} // namespace dftfe
98
99
100#endif
Definition AuxDensityMatrix.h:40
ExcSSDFunctionalBaseClass(const ExcFamilyType excFamType, const densityFamilyType densityFamType, const std::vector< DensityDescriptorDataAttributes > &densityDescriptorAttributesList)
Definition ExcSSDFunctionalBaseClass.t.cc:25
bool d_useLibxc
Flag to indicate whether to use libxc or not.
Definition excTauMGGAClass.h:94
void computeWaveFunctionDependentExcEnergy(const std::shared_ptr< AuxDensityMatrix< memorySpace > > &auxDensityMatrix, const std::vector< double > &kPointWeights) override
void checkInputOutputDataAttributesConsistency(const std::vector< xcRemainderOutputDataAttributes > &outputDataAttributes) const override
double getExpectationOfWaveFunctionDependentExcFuncDerWrtPsi() override
excTauMGGAClass(std::shared_ptr< xc_func_type > &funcXPtr, std::shared_ptr< xc_func_type > &funcCPtr, std::string modelXCInputFile, const bool useLibXC)
void computeRhoTauDependentXCData(AuxDensityMatrix< memorySpace > &auxDensityMatrix, const std::pair< dftfe::uInt, dftfe::uInt > &quadIndexRange, std::unordered_map< xcRemainderOutputDataAttributes, dftfe::utils::MemoryStorage< double, dftfe::utils::MemorySpace::HOST > > &xDataOut, std::unordered_map< xcRemainderOutputDataAttributes, dftfe::utils::MemoryStorage< double, dftfe::utils::MemorySpace::HOST > > &cDataout) const override
void reinitKPointDependentVariables(dftfe::uInt kPointIndex) override
excTauMGGAClass(std::shared_ptr< xc_func_type > &funcXPtr, std::shared_ptr< xc_func_type > &funcCPtr, const bool useLibXC)
void updateWaveFunctionDependentFuncDerWrtPsi(const std::shared_ptr< AuxDensityMatrix< memorySpace > > &auxDensityMatrixPtr, const std::vector< double > &kPointWeights) override
double getWaveFunctionDependentExcEnergy() override
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
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
std::shared_ptr< xc_func_type > d_funcCPtr
Definition excTauMGGAClass.h:93
std::shared_ptr< xc_func_type > d_funcXPtr
Definition excTauMGGAClass.h:92
An class template to encapsulate a MultiVector. A MultiVector is a collection of vectors belonging t...
Definition MultiVector.h:127
Definition MemoryStorage.h:33
float numberFP32
Definition dftfeDataTypes.h:41
Definition pseudoPotentialToDftfeConverter.cc:34
xcRemainderOutputDataAttributes
Definition ExcSSDFunctionalBaseClass.h:58
std::uint32_t uInt
Definition TypeConfig.h:10