Coverage for ase/phasediagram.py: 68.29%
369 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-27 15:21 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-27 15:21 +0000
1import fractions
2import functools
3import re
4from collections import OrderedDict
6import numpy as np
7from scipy.spatial import ConvexHull
9import ase.units as units
10from ase.formula import Formula
11from ase.utils import deprecated
13_solvated: list[tuple[str, dict[str, int], float, bool, float]] = []
16def parse_formula(formula):
17 aq = formula.endswith('(aq)')
18 if aq:
19 formula = formula[:-4]
20 charge = formula.count('+') - formula.count('-')
21 if charge:
22 formula = formula.rstrip('+-')
23 count = Formula(formula).count()
24 return count, charge, aq
27def float2str(x):
28 f = fractions.Fraction(x).limit_denominator(100)
29 n = f.numerator
30 d = f.denominator
31 if abs(n / d - f) > 1e-6:
32 return f'{f:.3f}'
33 if d == 0:
34 return '0'
35 if f.denominator == 1:
36 return str(n)
37 return f'{f.numerator}/{f.denominator}'
40def solvated(symbols):
41 """Extract solvation energies from database.
43 symbols: str
44 Extract only those molecules that contain the chemical elements
45 given by the symbols string (plus water and H+).
47 Data from:
49 Johnson JW, Oelkers EH, Helgeson HC (1992)
50 Comput Geosci 18(7):899.
51 doi:10.1016/0098-3004(92)90029-Q
53 and:
55 Pourbaix M (1966)
56 Atlas of electrochemical equilibria in aqueous solutions.
57 No. v. 1 in Atlas of Electrochemical Equilibria in Aqueous Solutions.
58 Pergamon Press, New York.
60 Returns list of (name, energy) tuples.
61 """
63 if isinstance(symbols, str):
64 symbols = Formula(symbols).count().keys()
65 if len(_solvated) == 0:
66 for line in _aqueous.splitlines():
67 energy, formula = line.split(',')
68 name = formula + '(aq)'
69 count, charge, aq = parse_formula(name)
70 energy = float(energy) * 0.001 * units.kcal / units.mol
71 _solvated.append((name, count, charge, aq, energy))
72 references = []
73 for name, count, charge, aq, energy in _solvated:
74 for symbol in count:
75 if symbol not in 'HO' and symbol not in symbols:
76 break
77 else:
78 references.append((name, energy))
79 return references
82def bisect(A, X, Y, f):
83 a = []
84 for i in [0, -1]:
85 for j in [0, -1]:
86 if A[i, j] == -1:
87 A[i, j] = f(X[i], Y[j])
88 a.append(A[i, j])
90 if np.ptp(a) == 0:
91 A[:] = a[0]
92 return
93 if a[0] == a[1]:
94 A[0] = a[0]
95 if a[1] == a[3]:
96 A[:, -1] = a[1]
97 if a[3] == a[2]:
98 A[-1] = a[3]
99 if a[2] == a[0]:
100 A[:, 0] = a[2]
101 if not (A == -1).any():
102 return
103 i = len(X) // 2
104 j = len(Y) // 2
105 bisect(A[: i + 1, : j + 1], X[: i + 1], Y[: j + 1], f)
106 bisect(A[: i + 1, j:], X[: i + 1], Y[j:], f)
107 bisect(A[i:, : j + 1], X[i:], Y[: j + 1], f)
108 bisect(A[i:, j:], X[i:], Y[j:], f)
111def print_results(results):
112 total_energy = 0.0
113 print('reference coefficient energy')
114 print('------------------------------------')
115 for name, coef, energy in results:
116 total_energy += coef * energy
117 if abs(coef) < 1e-7:
118 continue
119 print(f'{name:14}{float2str(coef):>10}{energy:12.3f}')
120 print('------------------------------------')
121 print(f'Total energy: {total_energy:22.3f}')
122 print('------------------------------------')
125class Pourbaix:
126 @deprecated(
127 'Use ase.pourbaix.Pourbaix. '
128 'This class will be removed in a future version of ASE.'
129 )
130 def __init__(self, references, formula=None, T=300.0, **kwargs):
131 """Pourbaix object.
133 references: list of (name, energy) tuples
134 Examples of names: ZnO2, H+(aq), H2O(aq), Zn++(aq), ...
135 formula: str
136 Stoichiometry. Example: ``'ZnO'``. Can also be given as
137 keyword arguments: ``Pourbaix(refs, Zn=1, O=1)``.
138 T: float
139 Temperature in Kelvin.
141 .. deprecated:: 3.24.0
142 """
144 if formula:
145 assert not kwargs
146 kwargs = parse_formula(formula)[0]
148 if 'O' not in kwargs:
149 kwargs['O'] = 0
150 if 'H' not in kwargs:
151 kwargs['H'] = 0
153 self.kT = units.kB * T
154 self.references = []
155 for name, energy in references:
156 if name == 'O':
157 continue
158 count, charge, aq = parse_formula(name)
159 if all(symbol in kwargs for symbol in count):
160 self.references.append((count, charge, aq, energy, name))
162 self.references.append(({}, -1, False, 0.0, 'e-')) # an electron
164 self.count = kwargs
166 self.N = {'e-': 0}
167 for symbol in kwargs:
168 if symbol not in self.N:
169 self.N[symbol] = len(self.N)
171 def decompose(self, U, pH, verbose=True, concentration=1e-6):
172 """Decompose material.
174 U: float
175 Potential in V.
176 pH: float
177 pH value.
178 verbose: bool
179 Default is True.
180 concentration: float
181 Concentration of solvated references.
183 """
185 alpha = np.log(10) * self.kT
186 entropy = -np.log(concentration) * self.kT
188 # We want to minimize np.dot(energies, x) under the constraints:
189 #
190 # np.dot(x, eq2) == eq1
191 #
192 # with bounds[i,0] <= x[i] <= bounds[i, 1].
193 #
194 # First two equations are charge and number of hydrogens, and
195 # the rest are the remaining species.
197 eq1 = [0] + list(self.count.values())
198 eq2 = []
199 energies = []
200 bounds = []
201 names = []
202 for count, charge, aq, energy, name in self.references:
203 eq = np.zeros(len(self.N))
204 eq[0] = charge
205 for symbol, n in count.items():
206 eq[self.N[symbol]] = n
207 eq2.append(eq)
208 if name in ['H2O(aq)', 'H+(aq)', 'e-']:
209 bounds.append((-np.inf, np.inf))
210 if name == 'e-':
211 energy = -U
212 elif name == 'H+(aq)':
213 energy = -pH * alpha
214 else:
215 bounds.append((0, np.inf))
216 if aq:
217 energy -= entropy
218 if verbose:
219 print('{:<5}{:10}{:10.3f}'.format(len(energies), name, energy))
220 energies.append(energy)
221 names.append(name)
223 from scipy.optimize import linprog
225 result = linprog(
226 c=energies, A_eq=np.transpose(eq2), b_eq=eq1, bounds=bounds
227 )
229 if verbose:
230 print_results(zip(names, result.x, energies))
232 return result.x, result.fun
234 def diagram(self, U, pH, plot=True, show=False, ax=None):
235 """Calculate Pourbaix diagram.
237 U: list of float
238 Potentials in V.
239 pH: list of float
240 pH values.
241 plot: bool
242 Create plot.
243 show: bool
244 Open graphical window and show plot.
245 ax: matplotlib axes object
246 When creating plot, plot onto the given axes object.
247 If none given, plot onto the current one.
248 """
249 a = np.empty((len(U), len(pH)), int)
250 a[:] = -1
251 colors = {}
252 f = functools.partial(self.colorfunction, colors=colors)
253 bisect(a, U, pH, f)
254 compositions = [None] * len(colors)
255 names = [ref[-1] for ref in self.references]
256 for indices, color in colors.items():
257 compositions[color] = ' + '.join(
258 names[i]
259 for i in indices
260 if names[i] not in ['H2O(aq)', 'H+(aq)', 'e-']
261 )
262 text = []
263 for i, name in enumerate(compositions):
264 b = a == i
265 x = np.dot(b.sum(1), U) / b.sum()
266 y = np.dot(b.sum(0), pH) / b.sum()
267 name = re.sub(r'(\S)([+-]+)', r'\1$^{\2}$', name)
268 name = re.sub(r'(\d+)', r'$_{\1}$', name)
269 text.append((x, y, name))
271 if plot:
272 import matplotlib.cm as cm
273 import matplotlib.pyplot as plt
275 if ax is None:
276 ax = plt.gca()
278 # rasterized pcolormesh has a bug which leaves a tiny
279 # white border. Unrasterized pcolormesh produces
280 # unreasonably large files. Avoid this by using the more
281 # general imshow.
282 ax.imshow(
283 a,
284 cmap=cm.Accent,
285 extent=[min(pH), max(pH), min(U), max(U)],
286 origin='lower',
287 aspect='auto',
288 )
290 for x, y, name in text:
291 ax.text(y, x, name, horizontalalignment='center')
292 ax.set_xlabel('pH')
293 ax.set_ylabel('potential [V]')
294 ax.set_xlim(min(pH), max(pH))
295 ax.set_ylim(min(U), max(U))
296 if show:
297 plt.show()
299 return a, compositions, text
301 def colorfunction(self, U, pH, colors):
302 coefs, _energy = self.decompose(U, pH, verbose=False)
303 indices = tuple(sorted(np.where(abs(coefs) > 1e-3)[0]))
304 color = colors.get(indices)
305 if color is None:
306 color = len(colors)
307 colors[indices] = color
308 return color
311class PhaseDiagram:
312 def __init__(self, references, filter='', verbose=True):
313 """Phase-diagram.
315 references: list of (name, energy) tuples
316 List of references. The energy must be the total energy and not
317 energy per atom. The names can also be dicts like
318 ``{'Zn': 1, 'O': 2}`` which would be equivalent to ``'ZnO2'``.
319 filter: str or list of str
320 Use only those references that match the given filter.
321 Example: ``filter='ZnO'`` will select those that
322 contain zinc or oxygen.
323 verbose: bool
324 Write information.
326 """
328 if not references:
329 raise ValueError(
330 'You must provide a non-empty list of references'
331 ' for the phase diagram! '
332 "You have provided '{}'".format(references)
333 )
334 filter = parse_formula(filter)[0]
336 self.verbose = verbose
338 self.species = OrderedDict()
339 self.references = []
340 for name, energy in references:
341 if isinstance(name, str):
342 count = parse_formula(name)[0]
343 else:
344 count = name
346 if filter and any(symbol not in filter for symbol in count):
347 continue
349 if not isinstance(name, str):
350 name = Formula.from_dict(count).format('metal')
352 natoms = 0
353 for symbol, n in count.items():
354 natoms += n
355 if symbol not in self.species:
356 self.species[symbol] = len(self.species)
357 self.references.append((count, energy, name, natoms))
359 ns = len(self.species)
360 self.symbols = [None] * ns
361 for symbol, id in self.species.items():
362 self.symbols[id] = symbol
364 if verbose:
365 print('Species:', ', '.join(self.symbols))
366 print('References:', len(self.references))
367 for i, (count, energy, name, natoms) in enumerate(self.references):
368 print(f'{i:<5}{name:10}{energy:10.3f}')
370 self.points = np.zeros((len(self.references), ns + 1))
371 for s, (count, energy, name, natoms) in enumerate(self.references):
372 for symbol, n in count.items():
373 self.points[s, self.species[symbol]] = n / natoms
374 self.points[s, -1] = energy / natoms
376 if len(self.points) == ns:
377 # Simple case that qhull would choke on:
378 self.simplices = np.arange(ns).reshape((1, ns))
379 self.hull = np.ones(ns, bool)
380 elif ns == 1:
381 # qhull also doesn't like ns=1:
382 i = self.points[:, 1].argmin()
383 self.simplices = np.array([[i]])
384 self.hull = np.zeros(len(self.points), bool)
385 self.hull[i] = True
386 else:
387 hull = ConvexHull(self.points[:, 1:])
389 # Find relevant simplices:
390 ok = hull.equations[:, -2] < 0
391 self.simplices = hull.simplices[ok]
393 # Create a mask for those points that are on the convex hull:
394 self.hull = np.zeros(len(self.points), bool)
395 for simplex in self.simplices:
396 self.hull[simplex] = True
398 if verbose:
399 print('Simplices:', len(self.simplices))
401 def decompose(self, formula=None, **kwargs):
402 """Find the combination of the references with the lowest energy.
404 formula: str
405 Stoichiometry. Example: ``'ZnO'``. Can also be given as
406 keyword arguments: ``decompose(Zn=1, O=1)``.
408 Example::
410 pd = PhaseDiagram(...)
411 pd.decompose(Zn=1, O=3)
413 Returns energy, indices of references and coefficients."""
415 if formula:
416 assert not kwargs
417 kwargs = parse_formula(formula)[0]
419 point = np.zeros(len(self.species))
420 N = 0
421 for symbol, n in kwargs.items():
422 point[self.species[symbol]] = n
423 N += n
425 # Find coordinates within each simplex:
426 X = self.points[self.simplices, 1:-1] - point[1:] / N
428 # Find the simplex with positive coordinates that sum to
429 # less than one:
430 eps = 1e-14
431 candidates = []
432 for i, Y in enumerate(X):
433 try:
434 x = np.linalg.solve((Y[1:] - Y[:1]).T, -Y[0])
435 except np.linalg.LinAlgError:
436 continue
437 if (x > -eps).all() and x.sum() < 1 + eps:
438 indices = self.simplices[i]
439 points = self.points[indices]
441 scaledcoefs = [1 - x.sum()]
442 scaledcoefs.extend(x)
444 energy = N * np.dot(scaledcoefs, points[:, -1])
445 candidates.append((energy, indices, points, scaledcoefs))
447 # Pick the one with lowest energy:
448 energy, indices, points, scaledcoefs = min(
449 candidates, key=lambda x: x[0]
450 )
452 coefs = []
453 results = []
454 for coef, s in zip(scaledcoefs, indices):
455 _count, e, name, natoms = self.references[s]
456 coef *= N / natoms
457 coefs.append(coef)
458 results.append((name, coef, e))
460 if self.verbose:
461 print_results(results)
463 return energy, indices, np.array(coefs)
465 def plot(self, ax=None, dims=None, show=False, **plotkwargs):
466 """Make 2-d or 3-d plot of datapoints and convex hull.
468 Default is 2-d for 2- and 3-component diagrams and 3-d for a
469 4-component diagram.
470 """
471 import matplotlib.pyplot as plt
473 N = len(self.species)
475 if dims is None:
476 if N <= 3:
477 dims = 2
478 else:
479 dims = 3
481 if ax is None:
482 projection = None
483 if dims == 3:
484 projection = '3d'
485 from mpl_toolkits.mplot3d import Axes3D
487 Axes3D # silence pyflakes
488 fig = plt.figure()
489 ax = fig.add_subplot(projection=projection)
490 else:
491 if dims == 3 and not hasattr(ax, 'set_zlim'):
492 raise ValueError(
493 'Cannot make 3d plot unless axes projection is 3d'
494 )
496 if dims == 2:
497 if N == 2:
498 self.plot2d2(ax, **plotkwargs)
499 elif N == 3:
500 self.plot2d3(ax)
501 else:
502 raise ValueError(
503 'Can only make 2-d plots for 2 and 3 component systems!'
504 )
505 else:
506 if N == 3:
507 self.plot3d3(ax)
508 elif N == 4:
509 self.plot3d4(ax)
510 else:
511 raise ValueError(
512 'Can only make 3-d plots for 3 and 4 component systems!'
513 )
514 if show:
515 plt.show()
516 return ax
518 def plot2d2(
519 self, ax=None, only_label_simplices=False, only_plot_simplices=False
520 ):
521 x, e = self.points[:, 1:].T
522 names = [
523 re.sub(r'(\d+)', r'$_{\1}$', ref[2]) for ref in self.references
524 ]
525 hull = self.hull
526 simplices = self.simplices
527 xlabel = self.symbols[1]
528 ylabel = 'energy [eV/atom]'
530 if ax:
531 for i, j in simplices:
532 ax.plot(x[[i, j]], e[[i, j]], '-b')
533 ax.plot(x[hull], e[hull], 'sg')
534 if not only_plot_simplices:
535 ax.plot(x[~hull], e[~hull], 'or')
537 if only_plot_simplices or only_label_simplices:
538 x = x[self.hull]
539 e = e[self.hull]
540 names = [name for name, h in zip(names, self.hull) if h]
541 for a, b, name in zip(x, e, names):
542 ax.text(a, b, name, ha='center', va='top')
544 ax.set_xlabel(xlabel)
545 ax.set_ylabel(ylabel)
547 return (x, e, names, hull, simplices, xlabel, ylabel)
549 def plot2d3(self, ax=None):
550 x, y = self.points[:, 1:-1].T.copy()
551 x += y / 2
552 y *= 3**0.5 / 2
553 names = [
554 re.sub(r'(\d+)', r'$_{\1}$', ref[2]) for ref in self.references
555 ]
556 hull = self.hull
557 simplices = self.simplices
559 if ax:
560 for i, j, k in simplices:
561 ax.plot(x[[i, j, k, i]], y[[i, j, k, i]], '-b')
562 ax.plot(x[hull], y[hull], 'og')
563 ax.plot(x[~hull], y[~hull], 'sr')
564 for a, b, name in zip(x, y, names):
565 ax.text(a, b, name, ha='center', va='top')
567 return (x, y, names, hull, simplices)
569 def plot3d3(self, ax):
570 x, y, e = self.points[:, 1:].T
572 ax.scatter(x[self.hull], y[self.hull], e[self.hull], c='g', marker='o')
573 ax.scatter(
574 x[~self.hull], y[~self.hull], e[~self.hull], c='r', marker='s'
575 )
577 for a, b, c, ref in zip(x, y, e, self.references):
578 name = re.sub(r'(\d+)', r'$_{\1}$', ref[2])
579 ax.text(a, b, c, name, ha='center', va='bottom')
581 for i, j, k in self.simplices:
582 ax.plot(x[[i, j, k, i]], y[[i, j, k, i]], zs=e[[i, j, k, i]], c='b')
584 ax.set_xlim3d(0, 1)
585 ax.set_ylim3d(0, 1)
586 ax.view_init(azim=115, elev=30)
587 ax.set_xlabel(self.symbols[1])
588 ax.set_ylabel(self.symbols[2])
589 ax.set_zlabel('energy [eV/atom]')
591 def plot3d4(self, ax):
592 x, y, z = self.points[:, 1:-1].T
593 a = x / 2 + y + z / 2
594 b = 3**0.5 * (x / 2 + y / 6)
595 c = (2 / 3) ** 0.5 * z
597 ax.scatter(a[self.hull], b[self.hull], c[self.hull], c='g', marker='o')
598 ax.scatter(
599 a[~self.hull], b[~self.hull], c[~self.hull], c='r', marker='s'
600 )
602 for x, y, z, ref in zip(a, b, c, self.references):
603 name = re.sub(r'(\d+)', r'$_{\1}$', ref[2])
604 ax.text(x, y, z, name, ha='center', va='bottom')
606 for i, j, k, w in self.simplices:
607 ax.plot(
608 a[[i, j, k, i, w, k, j, w]],
609 b[[i, j, k, i, w, k, j, w]],
610 zs=c[[i, j, k, i, w, k, j, w]],
611 c='b',
612 )
614 ax.set_xlim3d(0, 1)
615 ax.set_ylim3d(0, 1)
616 ax.set_zlim3d(0, 1)
617 ax.view_init(azim=115, elev=30)
620_aqueous = """\
621-525700,SiF6--
622-514100,Rh(SO4)3----
623-504800,Ru(SO4)3----
624-499900,Pd(SO4)3----
625-495200,Ru(SO4)3---
626-485700,H4P2O7
627-483700,Rh(SO4)3---
628-483600,H3P2O7-
629-480400,H2P2O7--
630-480380,Pt(SO4)3----
631-471400,HP2O7---
632-458700,P2O7----
633-447500,LaF4-
634-437600,LaH2PO4++
635-377900,LaF3
636-376299,Ca(HSiO3)+
637-370691,BeF4--
638-355400,BF4-
639-353025,Mg(HSiO3)+
640-346900,LaSO4+
641-334100,Rh(SO4)2--
642-325400,Ru(SO4)2--
643-319640,Pd(SO4)2--
644-317900,Ru(SO4)2-
645-312970,Cr2O7--
646-312930,CaSO4
647-307890,NaHSiO3
648-307800,LaF2+
649-307000,LaHCO3++
650-306100,Rh(SO4)2-
651-302532,BeF3-
652-300670,Pt(SO4)2--
653-299900,LaCO3+
654-289477,MgSO4
655-288400,LaCl4-
656-281500,HZrO3-
657-279200,HHfO3-
658-276720,Sr(HCO3)+
659-275700,Ba(HCO3)+
660-273830,Ca(HCO3)+
661-273100,H3PO4
662-270140,H2PO4-
663-266500,S2O8--
664-264860,Sr(CO3)
665-264860,SrCO3
666-263830,Ba(CO3)
667-263830,BaCO3
668-262850,Ca(CO3)
669-262850,CaCO3
670-260310,HPO4--
671-257600,LaCl3
672-250200,Mg(HCO3)+
673-249200,H3VO4
674-248700,S4O6--
675-246640,KSO4-
676-243990,H2VO4-
677-243500,PO4---
678-243400,KHSO4
679-242801,HSiO3-
680-241700,HYO2
681-241476,NaSO4-
682-239700,HZrO2+
683-239300,LaO2H
684-238760,Mg(CO3)
685-238760,MgCO3
686-237800,HHfO2+
687-236890,Ag(CO3)2---
688-236800,HNbO3
689-236600,LaF++
690-235640,MnSO4
691-233400,ZrO2
692-233000,HVO4--
693-231600,HScO2
694-231540,B(OH)3
695-231400,HfO2
696-231386,BeF2
697-231000,S2O6--
698-229000,S3O6--
699-229000,S5O6--
700-228460,HTiO3-
701-227400,YO2-
702-227100,NbO3-
703-226700,LaCl2+
704-223400,HWO4-
705-221700,LaO2-
706-218500,WO4--
707-218100,ScO2-
708-214900,VO4---
709-210000,YOH++
710-208900,LaOH++
711-207700,HAlO2
712-206400,HMoO4-
713-204800,H3PO3
714-202350,H2PO3-
715-202290,SrF+
716-201807,BaF+
717-201120,BaF+
718-200400,MoO4--
719-200390,CaF+
720-199190,SiO2
721-198693,AlO2-
722-198100,YO+
723-195900,LaO+
724-195800,LaCl++
725-194000,CaCl2
726-194000,HPO3--
727-191300,LaNO3++
728-190400,ZrOH+++
729-189000,HfOH+++
730-189000,S2O5--
731-187600,ZrO++
732-186000,HfO++
733-183700,HCrO4-
734-183600,ScO+
735-183100,H3AsO4
736-180630,HSO4-
737-180010,H2AsO4-
738-177930,SO4--
739-177690,MgF+
740-174800,CrO4--
741-173300,SrOH+
742-172300,BaOH+
743-172200,HBeO2-
744-171300,CaOH+
745-170790,HAsO4--
746-166000,ReO4-
747-165800,SrCl+
748-165475,Al(OH)++
749-165475,AlOH++
750-164730,BaCl+
751-164000,La+++
752-163800,Y+++
753-163100,CaCl+
754-162240,BO2-
755-158493,BeF+
756-158188,AlO+
757-155700,VOOH+
758-155164,CdF2
759-154970,AsO4---
760-153500,Rh(SO4)
761-152900,BeO2--
762-152370,HSO5-
763-151540,RuCl6---
764-149255,MgOH+
765-147400,H2S2O4
766-146900,HS2O4-
767-146081,CdCl4--
768-145521,BeCl2
769-145200,Ru(SO4)
770-145056,PbF2
771-143500,S2O4--
772-140330,H2AsO3-
773-140300,VO2+
774-140282,HCO3-
775-140200,Sc+++
776-139900,BeOH+
777-139700,MgCl+
778-139200,Ru(SO4)+
779-139000,Pd(SO4)
780-138160,HF2-
781-138100,HCrO2
782-138000,TiO++
783-137300,HGaO2
784-136450,RbF
785-134760,Sr++
786-134030,Ba++
787-133270,Zr++++
788-133177,PbCl4--
789-132600,Hf++++
790-132120,Ca++
791-129310,ZnCl3-
792-128700,GaO2-
793-128600,BeO
794-128570,NaF
795-128000,H2S2O3
796-127500,Rh(SO4)+
797-127200,HS2O3-
798-126191,CO3--
799-126130,HSO3-
800-125300,CrO2-
801-125100,H3PO2
802-124900,S2O3--
803-123641,MnF+
804-122400,H2PO2-
805-121000,HMnO2-
806-120700,RuCl5--
807-120400,MnO4--
808-120300,Pt(SO4)
809-119800,HInO2
810-116300,SO3--
811-115971,CdCl3-
812-115609,Al+++
813-115316,BeCl+
814-112280,AgCl4---
815-111670,TiO2++
816-111500,VOH++
817-111430,Ag(CO3)-
818-110720,HZnO2-
819-108505,Mg++
820-108100,HSeO4-
821-108000,LiOH
822-107600,MnO4-
823-106988,HgCl4--
824-106700,InO2-
825-106700,VO++
826-106100,VO+
827-105500,SeO4--
828-105100,RbOH
829-105000,CsOH
830-104500,KOH
831-104109,ZnF+
832-103900,PdCl4--
833-103579,CuCl4--
834-102600,MnO2--
835-102150,PbCl3-
836-101850,H2SeO3
837-101100,HFeO2
838-100900,CsCl
839-100500,CrOH++
840-99900,NaOH
841-99800,VOH+
842-99250,LiCl
843-98340,HSeO3-
844-98300,ZnCl2
845-97870,RbCl
846-97400,HSbO2
847-97300,HSnO2-
848-97300,MnOH+
849-97016,InF++
850-96240,HAsO2
851-95430,KCl
852-95400,HFeO2-
853-94610,CsBr
854-93290,ZnO2--
855-93250,RhCl4--
856-92910,NaCl
857-92800,CrO+
858-92250,CO2
859-91210,PtCl4--
860-91157,FeF+
861-91100,GaOH++
862-91010,RbBr
863-90550,Be++
864-90010,KBr
865-89963,CuCl3--
866-89730,RuCl4-
867-88400,SeO3--
868-88000,FeO2-
869-87373,CdF+
870-86600,GaO+
871-86500,HCdO2-
872-86290,MnCl+
873-85610,NaBr
874-84851,CdCl2
875-83900,RuCl4--
876-83650,AsO2-
877-83600,Ti+++
878-83460,CsI
879-83400,HCoO2-
880-82710,AgCl3--
881-82400,SbO2-
882-81980,HNiO2-
883-81732,CoF+
884-81500,MnO
885-81190,ZnOH+
886-81000,HPbO2-
887-79768,NiF+
888-79645,FeF++
889-79300,HBiO2
890-78900,RbI
891-77740,KI
892-77700,La++
893-77500,RhCl4-
894-75860,PbF+
895-75338,CuCl3-
896-75216,TlF
897-75100,Ti++
898-74600,InOH++
899-74504,HgCl3-
900-73480,FeCl2
901-72900,NaI
902-71980,SO2
903-71662,HF
904-71600,RuO4--
905-71200,PbCl2
906-69933,Li+
907-69810,PdCl3-
908-69710,Cs+
909-69400,InO+
910-67811,AuCl3--
911-67800,Rb+
912-67510,K+
913-67420,ZnO
914-67340,F-
915-67300,CdO2--
916-66850,ZnCl+
917-65850,FeOH+
918-65550,TlOH
919-64200,NiO2--
920-63530,RhCl3-
921-63200,CoO2--
922-62591,Na+
923-61700,BiO2-
924-61500,CdOH+
925-60100,HCuO2-
926-59226,InCl++
927-58600,SnOH+
928-58560,RuCl3
929-58038,CuCl2-
930-57900,V+++
931-57800,FeOH++
932-57760,PtCl3-
933-57600,HTlO2
934-56690,H2O
935-56025,CoOH+
936-55100,Mn++
937-54380,RuCl3-
938-53950,PbOH+
939-53739,CuF+
940-53600,SnO
941-53100,FeO+
942-53030,FeCl+
943-52850,NiOH+
944-52627,CdCl+
945-52000,V++
946-51560,AgCl2-
947-50720,FeO
948-49459,AgF
949-49300,Cr+++
950-47500,CdO
951-46190,RhCl3
952-46142,CuCl2
953-45200,HHgO2-
954-45157,CoCl+
955-44000,CoO
956-42838,HgCl2
957-41600,TlO2-
958-41200,CuO2--
959-40920,NiCl+
960-39815,TlCl
961-39400,Cr++
962-39350,PbO
963-39340,NiO
964-39050,PbCl+
965-38000,Ga+++
966-37518,FeCl++
967-36781,AuCl2-
968-35332,AuCl4-
969-35200,Zn++
970-35160,PdCl2
971-33970,RhCl2
972-32300,BiOH++
973-31700,HIO3
974-31379,Cl-
975-30600,IO3-
976-30410,HCl
977-30204,HgF+
978-30200,CuOH+
979-29300,BiO+
980-28682,CO
981-26507,NO3-
982-26440,RuCl2+
983-25590,Br3-
984-25060,RuCl2
985-24870,Br-
986-24730,HNO3
987-23700,HIO
988-23400,In+++
989-23280,OCN-
990-23000,CoOH++
991-22608,CuCl
992-22290,PtCl2
993-21900,AgOH
994-21870,Fe++
995-20800,CuO
996-20300,Mn+++
997-20058,Pb(HS)2
998-19700,HBrO
999-19100,HClO
1000-19100,ScOH++
1001-18990,NH4+
1002-18971,Pb(HS)3-
1003-18560,Cd++
1004-18290,Rh(OH)+
1005-17450,AgCl
1006-16250,CuCl+
1007-14780,RhCl2+
1008-14000,IO4-
1009-13130,Pd(OH)+
1010-13000,Co++
1011-12700,HgOH+
1012-12410,I-
1013-12300,I3-
1014-12190,Ru(OH)2++
1015-12100,HNO2
1016-11500,PdO
1017-10900,Ni++
1018-10470,Ru(OH)+
1019-10450,RuO+
1020-9200,IO-
1021-8900,HgO
1022-8800,ClO-
1023-8000,BrO-
1024-7740,Tl+
1025-7738,AgNO3
1026-7700,NO2-
1027-7220,RhO
1028-6673,H2S
1029-6570,Sn++
1030-6383,NH3
1031-5710,Pb++
1032-5500,AgO-
1033-4500,TlOH++
1034-4120,Fe+++
1035-3380,RhCl+
1036-3200,TlO+
1037-3184,AuCl
1038-2155,HgCl+
1039-2040,ClO4-
1040-1900,ClO3-
1041-1130,PtO
1042-820,Rh(OH)++
10430,Ag(HS)2-
10440,H+
1045230,RuO
10461400,HClO2
10471560,Pt(OH)+
10482429,Au(HS)2-
10492500,PdCl+
10502860,HS-
10513140,RhO+
10523215,Xe
10533554,Kr
10543890,Ar
10554100,ClO2-
10564347,N2
10574450,BrO3-
10584565,Ne
10594658,He
10605210,RuCl+
10617100,RuCl++
10628600,H2N2O2
10639375,TlCl++
106410500,HSe-
106511950,Cu+
106615675,Cu++
106715700,S5--
106816500,S4--
106917600,S3--
107018200,HN2O2-
107118330,RhCl++
107218380,PtCl+
107318427,Ag+
107419000,S2--
107519500,SeCN-
107619700,N2H5+
107721100,N2H6++
107822160,SCN-
107922880,Bi+++
108027700,Rh++
108128200,BrO4-
108228600,HCN
108332000,Co+++
108433200,N2O2--
108535900,Ru++
108636710,Hg2++
108739360,Hg++
108841200,CN-
108941440,Ru+++
109042200,Pd++
109151300,Tl+++
109252450,Rh+++
109361600,Pt++
109464300,Ag++
1095103600,Au+++"""