-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathatomicdata.go
132 lines (127 loc) · 3.03 KB
/
atomicdata.go
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
* atomicdata.go, part of gochem.
*
*
* Copyright 2021 Raul Mera <rmera{at}chemDOThelsinkiDOTfi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this program. If not, see
* <http://www.gnu.org/licenses/>.
*
*
* goChem is currently developed at the Universidad de Santiago de Chile
* (USACH)
*
*/
package chem
//A map for assigning mass to elements.
//Note that just common "bio-elements" are present
var symbolMass = map[string]float64{
"H": 1.0,
"C": 12.01,
"O": 16.00,
"N": 14.01,
"P": 30.97,
"S": 32.06,
"Se": 78.96,
"K": 39.1,
"Ca": 40.08,
"Mg": 24.30,
"Cl": 35.45,
"Na": 22.99,
"Cu": 63.55,
"Zn": 65.38,
"Co": 58.93,
"Fe": 55.84,
"Mn": 54.94,
"Cr": 51.996,
"Si": 28.08,
"Be": 9.012,
"F": 18.998,
"Br": 79.904,
"I": 126.90,
}
//A map for assigning covalent radii to elements
//Values from Cordero et al., 2008 (DOI:10.1039/B801115J)
//Note that just common "bio-elements" are present
var symbolCovrad = map[string]float64{
"H": 0.4, // 0.31 I altered this one. Since H always has only one bond, it doesn't matter if I set a longer radius, the extra bonds will get eliminated later.
"C": 0.76, //the sp3 radius
"O": 0.66,
"N": 0.71,
"P": 1.07,
"S": 1.05,
"Se": 1.2,
"K": 2.03,
"Ca": 1.76,
"Mg": 1.41,
"Cl": 1.02,
"Na": 1.66,
"Cu": 1.32,
"Zn": 1.22,
"Co": 1.5, // hs
"Fe": 1.52, //hs
"Mn": 1.61, //hs
"Cr": 1.39,
"Si": 1.11,
"Be": 0.96,
"F": 0.57,
"Br": 1.2,
"I": 1.39,
}
//A map for assigning van der Waals radii to elements
//Values from 10.1021/j100785a001 and 10.1021/jp8111556
//metal radii from 10.1023/A:1011625728803
//Note that just common "bio-elements" are present
var symbolVdwrad = map[string]float64{
"H": 1.10, // 0.31 I altered this one. Since H always has only one bond, it doesn't matter if I set a longer radius, the extra bonds will get eliminated later.
"C": 1.70, //the sp3 radius
"O": 1.52,
"N": 1.55,
"P": 1.80,
"S": 1.80,
"Se": 1.90,
"K": 2.75,
"Ca": 2.31,
"Mg": 1.73,
"Cl": 1.75,
"Na": 2.27,
"Cu": 2.00,
"Zn": 2.02,
"Co": 1.95,
"Fe": 1.96,
"Mn": 1.96,
"Cr": 1.97,
"Si": 2.10,
"Be": 1.53,
"F": 1.47,
"Br": 1.83,
"I": 1.98,
}
//A map for checking that atoms don't
//have too many bonds. A value of 0 means
//undefined, i.e. that this atom shouldn't
//be checked for max bonds. I decided not to define it
var symbolMaxBonds = map[string]int{
"H": 1, //this is the only one truly important.
"C": 4,
"O": 2,
"N": 0, //undefined
"P": 0,
"S": 0,
"Se": 0,
"Be": 0,
"F": 1,
"Br": 1,
"I": 1,
}