DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
NNLLMGGA.h
Go to the documentation of this file.
1#ifndef NNLLMGGA_H
2#define NNLLMGGA_H
3#ifdef DFTFE_WITH_TORCH
4# include <string>
5# include <torch/torch.h>
7namespace dftfe
8{
9 class NNLLMGGA
10 {
11 public:
12 NNLLMGGA(std::string modelFilename,
13 const bool isSpinPolarized = false,
14 const excDensityPositivityCheckTypes densityPositivityCheckType =
15 excDensityPositivityCheckTypes::MAKE_POSITIVE);
16 ~NNLLMGGA();
17
18 void
19 evaluateexc(const double *rho,
20 const double *sigma,
21 const double *laprho,
22 const dftfe::uInt numPoints,
23 double *exc);
24 void
25 evaluatevxc(const double *rho,
26 const double *sigma,
27 const double *laprho,
28 const dftfe::uInt numPoints,
29 double *exc,
30 double *dexc);
31
32 private:
33 std::string d_modelFilename;
34 std::string d_ptcFilename;
35 torch::jit::script::Module *d_model;
36 const bool d_isSpinPolarized;
37 double d_rhoTol;
38 double d_sThreshold;
39 const excDensityPositivityCheckTypes d_densityPositivityCheckType;
40 };
41} // namespace dftfe
42#endif
43#endif // NNLLMGGA_H
Definition pseudoPotentialToDftfeConverter.cc:34
std::uint32_t uInt
Definition TypeConfig.h:10
excDensityPositivityCheckTypes
Definition excDensityPositivityCheckTypes.h:6