-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnbo.h
More file actions
69 lines (54 loc) · 1.36 KB
/
nbo.h
File metadata and controls
69 lines (54 loc) · 1.36 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef NBO_H
#define NBO_H
#include "stringtools.h"
#include "utils.h"
class NBO {
private:
int natoms;
int* anumbers;
string* anames;
double* xyz;
int isQC; //QC or MOPAC
int mheadersize;
string* mheader;
int nalpha;
int nbeta;
int nelec;
int nao; //# atomic orbitals
int nmo; //# molecular orbitals
int read_mo(string filename);
int read_mopac_mo(string filename);
void clean_long_bonds();
double distance(int i, int j);
void get_three_center(int& cmo, vector<string> tok_line);
void alloc_nbo();
public:
void alloc(int natoms);
void init(int natoms0, int* anumbers0, string* anames0, double* xyz0);
void reset(int natoms0, int* anumbers0, string* anames0, double* xyz0);
void freemem();
int read_nbo_file(string filename);
void print_nbo();
double* q;
double* spratio;
double* MO;
int* wAO;
int* tAO;
int nb;
int* blist; //broken list
int hasNBO;
int bmo; //occupied bonding orbitals
int vmo; //unoccupied bonding orbitals
double* mo_occ;
double* bmo_occ;
double* bmo_polar;
int* bmo_atoms;
int* bmo_num;
double* vmo_occ;
int* vmo_atoms;
int* vmo_num;
void print_molden_orbs(int norbs, int* olist, string filename);
int compare_nbo(NBO nbo1, string filename, int quiet);
double get_pol(int a1, int a2, double& ev1);
};
#endif