-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpsf.h
More file actions
63 lines (55 loc) · 887 Bytes
/
psf.h
File metadata and controls
63 lines (55 loc) · 887 Bytes
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
#ifndef PSF
#define PSF
struct psfatom {
char seg[9];
char resid[9];
char res[9];
char name[9];
char type[7];
double charge;
double mass;
int imove; // 0 if free, 1 if fixed, -1 if lone-pair
double ech; // CHEQ electronegativity
double eha; // CHEQ hardness
double b; // scattering length
};
struct bond {
int a;
int b;
};
struct angle {
int a;
int b;
int c;
};
struct dihedral {
int a;
int b;
int c;
int d;
};
struct psfsig {
int valid;
int ext;
int cmapcheq;
int xplor;
int slb;
};
struct psf {
struct psfsig sig;
int ntitle;
int natom;
int nbond;
int ntheta;
int nphi;
int nimphi;
char ** titles;
struct psfatom * atoms;
struct bond * bonds;
struct angle * angles;
struct dihedral * dihedrals;
struct dihedral * impropers;
};
struct psf readPSF(const char * path);
void freePSF(struct psf p);
#endif