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