-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdft.h
50 lines (37 loc) · 988 Bytes
/
dft.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef DFT_H
#define DFT_H
#include "stringtools.h"
#include "pTable.h"
class DFT {
private:
int natoms;
int* anumbers;
string* anames;
void xyz_read(string filename);
public:
double sp();
double sp(string filename);
void sp_dnr(string filename);
void opt_dnr(string filename);
double get_energy(string filename);
double get_opt_energy(string filename);
void get_structure(string filename, double* xyz);
void get_charges(string filename, double* q);
double ts();
double ts(string filename);
void ts_dnr(string filename);
double get_energy_ts(string filename);
// double opt();
// double opt(string filename);
void alloc(int natoms);
void init(int natoms, int* anumbers, string* anames, double* xyz);
void reset(int natoms, int* anumbers, string* anames, double* xyz);
void freemem();
double energy0;
double energy;
double energyts;
int converged;
double* xyz0;
double* xyz;
};
#endif