forked from subangstrom/superAngle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_element_name.m
215 lines (211 loc) · 3.19 KB
/
get_element_name.m
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
function [ sym_out, sym, sym_shell] = get_element_name( element_number, element_shell )
%Get element name
%Weizong Xu, [email protected], April, 2015
switch element_number
case 1
sym='H';
case 2
sym='He';
case 3
sym='Li';
case 4
sym='Be';
case 5
sym='B';
case 6
sym='C';
case 7
sym='N';
case 8
sym='O';
case 9
sym='F';
case 10
sym='Ne';
case 11
sym='Na';
case 12
sym='Mg';
case 13
sym='Al';
case 14
sym='Si';
case 15
sym='P';
case 16
sym='S';
case 17
sym='Cl';
case 18
sym='Ar';
case 19
sym='K';
case 20
sym='Ca';
case 21
sym='Sc';
case 22
sym='Ti';
case 23
sym='V';
case 24
sym='Cr';
case 25
sym='Mn';
case 26
sym='Fe';
case 27
sym='Co';
case 28
sym='Ni';
case 29
sym='Cu';
case 30
sym='Zn';
case 31
sym='Ga';
case 32
sym='Ge';
case 33
sym='As';
case 34
sym='Se';
case 35
sym='Br';
case 36
sym='Kr';
case 37
sym='Rb';
case 38
sym='Sr';
case 39
sym='Y';
case 40
sym='Zr';
case 41
sym='Nb';
case 42
sym='Mo';
case 43
sym='Tc';
case 44
sym='Ru';
case 45
sym='Rh';
case 46
sym='Pd';
case 47
sym='Ag';
case 48
sym='Cd';
case 49
sym='In';
case 50
sym='Sn';
case 51
sym='Sb';
case 52
sym='Te';
case 53
sym='I';
case 54
sym='Xe';
case 55
sym='Cs';
case 56
sym='Ba';
case 57
sym='La';
case 58
sym='Ce';
case 59
sym='Pr';
case 60
sym='Nd';
case 61
sym='Pm';
case 62
sym='Sm';
case 63
sym='Eu';
case 64
sym='Gd';
case 65
sym='Tb';
case 66
sym='Dy';
case 67
sym='Ho';
case 68
sym='Er';
case 69
sym='Tm';
case 70
sym='Yb';
case 71
sym='Lu';
case 72
sym='Hf';
case 73
sym='Ta';
case 74
sym='W';
case 75
sym='Re';
case 76
sym='Os';
case 77
sym='Ir';
case 78
sym='Pt';
case 79
sym='Au';
case 80
sym='Hg';
case 81
sym='Tl';
case 82
sym='Pb';
case 83
sym='Bi';
case 84
sym='Po';
case 85
sym='At';
case 86
sym='Rn';
case 87
sym='Fr';
case 88
sym='Ra';
case 89
sym='Ac';
case 90
sym='Th';
case 91
sym='Pa';
case 92
sym='U';
case 93
sym='Np';
case 94
sym='Pu';
otherwise
sym='?';
end
switch element_shell
case 1
sym_shell='K';
case 2
sym_shell='L';
case 3
sym_shell='M';
case 4
sym_shell='N';
case 5
sym_shell='O';
otherwise
sym='?';
end
sym_out = [sym,'-',sym_shell];
end