-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcharmm.h
83 lines (73 loc) · 1.26 KB
/
charmm.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#ifndef _CHARMM_H_
#define _CHARMM_H_
using namespace std;
#include <string>
#include <cstdio>
const string CHARMM_ATOM_TYPES = "charmm_atom_types.in";
const string CHARMM_ATOM_PARAMS = "charmm_params.in";
class charmm_type
{
public:
string RES;
string PDBTYPE;
string CHARMMTYPE;
double charge;
double atomrad;
int acptype;
charmm_type(string s1, string s2, string s3, double c1, double c2, int i1)
{
RES = s1;
PDBTYPE = s2;
CHARMMTYPE = s3;
charge = c1;
atomrad = c2;
acptype = i1;
}
charmm_type()
{
RES = "";
PDBTYPE = "";
CHARMMTYPE = "";
charge = 0.0;
atomrad = 1.9;
acptype = 0;
}
};
class charmm_param
{
public:
double RMIN;
double AVOL;
double DGFREE;
double DGREF;
double LAMBDA;
double EMIN;
bool valset;
charmm_param(double d1, double d2, double d3, double d4, double d5, double d6)
{
AVOL = d1;
DGREF = d2;
DGFREE = d3;
LAMBDA = d4;
RMIN = d5;
EMIN = d6;
valset = true;
}
charmm_param()
{
AVOL = 0.;
DGREF = 0.;
DGFREE = 0.;
LAMBDA = 0.;
RMIN = 0.;
EMIN = 0.;
valset = false;
}
string tostring()
{
char buf[200];
sprintf(buf, "%f %f %f %f %f %f", AVOL, DGREF, DGFREE, LAMBDA, RMIN, EMIN);
return string(buf);
}
};
#endif