From: Carsten Niehaus Date: Sat, 22 Oct 2005 09:54:52 +0000 (+0000) Subject: Adding support for meltingpoint and boilingpoint; adding the xml-file here X-Git-Tag: v3.80.2~280 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=908141ac7947d0f749771add1508f7d40accc139;p=libqmvoc.git Adding support for meltingpoint and boilingpoint; adding the xml-file here svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=472960 --- diff --git a/libscience/chemicaldataobject.cpp b/libscience/chemicaldataobject.cpp index 6a18949..fb79b40 100644 --- a/libscience/chemicaldataobject.cpp +++ b/libscience/chemicaldataobject.cpp @@ -109,6 +109,12 @@ QString ChemicalDataObject::dictRef() case radiusVDW: botype = "radiusVDW"; break; + case meltingpoint: + botype = "meltingpoint"; + break; + case boilingpoint: + botype = "boilingpoint"; + break; } botype = botype.prepend( "bo:" ); diff --git a/libscience/chemicaldataobject.h b/libscience/chemicaldataobject.h index 5343d6e..04d5a1b 100644 --- a/libscience/chemicaldataobject.h +++ b/libscience/chemicaldataobject.h @@ -51,7 +51,9 @@ class ChemicalDataObject electronAffinity/**< the electron affinity of the element */, electronegativityPauling/**< the electronegativity in the definition of Pauling*/, radiusCovalent/**< the covalent radius */, - radiusVDW/**< the van der Waals radius */ + radiusVDW/**< the van der Waals radius */, + meltingpoint, + boilingpoint }; /** diff --git a/libscience/data/elements.xml b/libscience/data/elements.xml new file mode 100644 index 0000000..ba3056e --- /dev/null +++ b/libscience/data/elements.xml @@ -0,0 +1,1736 @@ + + + + + + + + + + + + + + + + + + + + 0 + Xx + Dummy + 0.0000 + 0.00000 + 0.0 + 0 + 0.07 0.50 0.70 + + + 1 + H + Hydrogen + 1.00794 + 1.007825032 + 13.5984 + 0.75420375 + 2.20 + 20.28 + 13.81 + Greek 'hydro' and 'gennao' for 'forms water' + 0.37 + 1.2 + 1.00 1.00 1.00 + + + 2 + He + Helium + 4.002602 + 4.002603254 + 24.5874 + 0 + 4.216 + 0.95 + The Greek word for the sun was 'helios' + 0.32 + 1.4 + 0.85 1.00 1.00 + + + 3 + Li + Lithium + 6.941 + 7.01600455 + 5.3917 + 0.618049 + 0.98 + 1615 + 453.7 + Greek 'lithos' means 'stone' + 1.34 + 2.2 + 0.80 0.50 1.00 + + + 4 + Be + Beryllium + 9.012182 + 9.0121822 + 9.3227 + 0 + 1.57 + 3243 + 1560 + Greek 'beryllos' for 'light-green stone' + 0.90 + 1.9 + 0.76 1.00 0.00 + + + 5 + B + Boron + 10.811 + 11.0093054 + 8.2980 + 0.279723 + 2.04 + 4275 + 2365 + Boron means 'Bor(ax) + (carb)on'. It is found in borax and behaves a lot like carbon + 0.82 + 1.8 + 1.00 0.71 0.71 + + + 6 + C + Carbon + 12.0107 + 12 + 11.2603 + 1.262118 + 2.55 + 5100 + 3825 + Latin 'carboneum' for carbon + 0.77 + 1.7 + 0.50 0.50 0.50 + + + 7 + N + Nitrogen + 14.0067 + 14.003074 + 14.5341 + -0.07 + 3.04 + 77.344 + 63.15 + Latin 'nitrogenium' ('forms saltpeter') + 0.75 + 1.6 + 0.05 0.05 1.00 + + + 8 + O + Oxygen + 15.9994 + 15.99491462 + 13.6181 + 1.4611120 + 3.44 + 90.188 + 54.8 + Latin 'oxygenium' (forms acids) + 0.73 + 1.55 + 1.00 0.05 0.05 + + + 9 + F + Fluorine + 18.9984032 + 18.99840322 + 17.4228 + 3.4011887 + 3.98 + 85 + 53.55 + Latin 'fluere' ('floats') + 0.71 + 1.5 + 0.70 1.00 1.00 + + + 10 + Ne + Neon + 20.1797 + 19.99244018 + 21.5645 + 0 + 27.1 + 24.55 + Greek 'neo'. meaning 'new' + 0.69 + 1.54 + 0.70 0.89 0.96 + + + 11 + Na + Sodium + 22.989770 + 22.98976928 + 5.1391 + 0.547926 + 0.93 + 1156 + 371 + Arabic 'natrun' for 'soda' + 1.54 + 2.4 + 0.67 0.36 0.95 + + + 12 + Mg + Magnesium + 24.3050 + 23.9850417 + 7.6462 + 0 + 1.31 + 1380 + 922 + Named after the city of Magnesia + 1.30 + 2.2 + 0.54 1.00 0.00 + + + 13 + Al + Aluminium + 26.981538 + 26.98153863 + 5.9858 + 0.43283 + 1.61 + 2740 + 933.5 + Latin 'alumen' + 1.18 + 2.1 + 0.75 0.65 0.65 + + + 14 + Si + Silicon + 28.0855 + 27.97692653 + 8.1517 + 1.389521 + 1.90 + 2630 + 1683 + Latin 'silex' + 1.11 + 2.1 + 0.50 0.60 0.60 + + + 15 + P + Phosphorus + 30.973761 + 30.97376163 + 10.4867 + 0.7465 + 2.19 + 553 + 317.3 + Greek 'phosphoros' for 'carries light' + 1.06 + 1.95 + 1.00 0.50 0.00 + + + 16 + S + Sulfur + 32.065 + 31.972071 + 10.3600 + 2.0771029 + 2.58 + 717.82 + 392.2 + In sankskrit 'sweb' means 'to sleep' + 1.02 + 1.8 + 1.00 1.00 0.19 + + + 17 + Cl + Chlorine + 35.453 + 34.96885268 + 12.9676 + 3.612724 + 3.16 + 239.18 + 172.17 + Greek 'chloros' for 'yellow-green' + 0.99 + 1.8 + 0.12 0.94 0.12 + + + 18 + Ar + Argon + 39.948 + 39.96238312 + 15.7596 + 0 + 87.45 + 83.95 + Greek 'aergon' for 'inactive' + 0.97 + 1.88 + 0.50 0.82 0.89 + + + 19 + K + Potassium + 39.0983 + 38.96370668 + 4.3407 + 0.501459 + 0.82 + 1033 + 336.8 + Arabic 'al qaliy' for potash + 1.96 + 2.8 + 0.56 0.25 0.83 + + + 20 + Ca + Calcium + 40.078 + 39.96259098 + 6.1132 + 0.02455 + 1.00 + 1757 + 1112 + Latin 'calx' for 'lime' + 1.74 + 2.4 + 0.24 1.00 0.00 + + + 21 + Sc + Scandium + 44.955910 + 44.9559119 + 6.5615 + 0.188 + 1.36 + 3109 + 1814 + Named because it was found in Scandinavia + 1.44 + 2.3 + 0.90 0.90 0.90 + + + 22 + Ti + Titanium + 47.867 + 47.9479463 + 6.8281 + 0.084 + 1.54 + 3560 + 1935 + The Titans were giants in Greek mythology + 1.36 + 2.15 + 0.75 0.76 0.78 + + + 23 + V + Vanadium + 50.9415 + 50.9439595 + 6.7462 + 0.525 + 1.63 + 3650 + 2163 + 'Vanadis' is another name for the Nordic goddess Freyja + 1.25 + 2.05 + 0.65 0.65 0.67 + + + 24 + Cr + Chromium + 51.9961 + 51.9405075 + 6.7665 + 0.67584 + 1.66 + 2945 + 2130 + Greek 'chroma' means 'color' + 1.27 + 2.05 + 0.54 0.60 0.78 + + + 25 + Mn + Manganese + 54.938049 + 54.9380451 + 7.4340 + 0 + 1.55 + 2235 + 1518 + It was discovered near a town named Magnesia in a black earth. Thus. it was named 'magnesia nigra'. short: Manganese + 1.39 + 2.05 + 0.61 0.48 0.78 + + + 26 + Fe + Iron + 55.845 + 55.9349375 + 7.9024 + 0.151 + 1.83 + 3023 + 1808 + Latin 'ferrum' + 1.25 + 2.05 + 0.50 0.48 0.78 + + + 27 + Co + Cobalt + 58.933200 + 58.933195 + 7.8810 + 0.6633 + 1.88 + 3143 + 1768 + Named after the German word 'Kobold' for 'goblin' + 1.26 + 2 + 0.44 0.48 0.78 + + + 28 + Ni + Nickel + 58.6934 + 57.9353429 + 7.6398 + 1.15716 + 1.91 + 3005 + 1726 + 'Nickel' was the name of a mountain goblin + 1.21 + 2 + 0.36 0.48 0.76 + + + 29 + Cu + Copper + 63.546 + 62.9295975 + 7.7264 + 1.23578 + 1.90 + 2840 + 1356.6 + Greek 'cuprum' for Cypres + 1.38 + 2 + 1.00 0.48 0.38 + + + 30 + Zn + Zinc + 65.409 + 63.9291422 + 9.3942 + 0 + 1.65 + 1180 + 692.73 + German 'zinking' for 'rough'. because zinc ore is very rough + 1.31 + 2.1 + 0.49 0.50 0.69 + + + 31 + Ga + Gallium + 69.723 + 68.9255736 + 5.9993 + 0.41 + 1.81 + 2478 + 302.92 + 'Gallia' is an old name for France + 1.26 + 2.1 + 0.76 0.56 0.56 + + + 32 + Ge + Germanium + 72.64 + 73.9211778 + 7.8994 + 1.232712 + 2.01 + 3107 + 1211.5 + Latin 'germania' is an old name for Germany + 1.22 + 2.1 + 0.40 0.56 0.56 + + + 33 + As + Arsenic + 74.92160 + 74.9215965 + 9.7886 + 0.814 + 2.18 + 876 + 1090 + Greek 'arsenikos' for 'male' or 'bold' + 1.19 + 2.05 + 0.74 0.50 0.89 + + + 34 + Se + Selenium + 78.96 + 79.9165213 + 9.7524 + 2.02067 + 2.55 + 958 + 494 + Greek 'selena' for 'moon' + 1.16 + 1.9 + 1.00 0.63 0.00 + + + 35 + Br + Bromine + 79.904 + 78.9183371 + 11.8138 + 3.3635880 + 2.96 + 331.85 + 265.95 + Greek 'bromos' for 'smells badly' + 1.14 + 1.9 + 0.65 0.16 0.16 + + + 36 + Kr + Krypton + 83.798 + 83.911507 + 13.9996 + 0 + 3.00 + 120.85 + 116 + Greek 'kryptos' for 'hidden' + 1.10 + 2.02 + 0.36 0.72 0.82 + + + 37 + Rb + Rubidium + 85.4678 + 84.91178974 + 4.1771 + 0.485916 + 0.82 + 961 + 312.63 + Latin 'rubidus' for 'dark red' + 2.11 + 2.9 + 0.44 0.18 0.69 + + + 38 + Sr + Strontium + 87.62 + 87.9056121 + 5.6949 + 0.05206 + 0.95 + 1655 + 1042 + Named after the mineral Strontianit + 1.92 + 2.55 + 0.00 1.00 0.00 + + + 39 + Y + Yttrium + 88.90585 + 88.9058483 + 6.2173 + 0.307 + 1.22 + 3611 + 1795 + Named after the small town of Ytterby near Stockholm in Sweden. Terbium. Ytterbium and Gadolinium are also named after this town. + 1.62 + 2.4 + 0.58 1.00 1.00 + + + 40 + Zr + Zirconium + 91.224 + 89.9047044 + 6.6339 + 0.426 + 1.33 + 4682 + 2128 + Named after the mineral zircon + 1.48 + 2.3 + 0.58 0.88 0.88 + + + 41 + Nb + Niobium + 92.90638 + 92.9063781 + 6.7589 + 0.893 + 1.6 + 5015 + 2742 + Named after Niobe. the daughter of the Greek god Tantalus + 1.37 + 2.15 + 0.45 0.76 0.79 + + + 42 + Mo + Molybdenum + 95.94 + 97.9054082 + 7.0924 + 0.7472 + 2.16 + 4912 + 2896 + This name has Greek roots. It means 'like Platinum' - it was difficult to distinguish Molybdenum from Platinum. + 1.45 + 2.1 + 0.33 0.71 0.71 + + + 43 + Tc + Technetium + 98 + 97.907216 + 7.28 + 0.55 + 1.9 + 4538 + 2477 + Greek 'technetos' for artificial + 1.56 + 2.05 + 0.23 0.62 0.62 + + + 44 + Ru + Ruthenium + 101.07 + 101.9043493 + 7.3605 + 1.04638 + 2.2 + 4425 + 2610 + Ruthenia is the old name of Russia + 1.26 + 2.05 + 0.14 0.56 0.56 + + + 45 + Rh + Rhodium + 102.90550 + 102.905504 + 7.4589 + 1.14289 + 2.28 + 3970 + 2236 + Greek 'rhodeos' means 'red like a rose' + 1.35 + 2 + 0.04 0.49 0.55 + + + 46 + Pd + Palladium + 106.42 + 105.903486 + 8.3369 + 0.56214 + 2.20 + 3240 + 1825 + Named after the asteroid Pallas + 1.31 + 2.05 + 0.00 0.41 0.52 + + + 47 + Ag + Silver + 107.8682 + 106.905097 + 7.5762 + 1.30447 + 1.93 + 2436 + 1235.1 + Latin 'argentum' for silver + 1.53 + 2.1 + 0.88 0.88 1.00 + + + 48 + Cd + Cadmium + 112.411 + 113.9033585 + 8.9938 + 0 + 1.69 + 1040 + 594.26 + Greek 'kadmia' ('Galmei' = Zinc carbonate) + 1.48 + 2.2 + 1.00 0.85 0.56 + + + 49 + In + Indium + 114.818 + 114.903878 + 5.7864 + 0.404 + 1.78 + 2350 + 429.78 + Named after 'Indigo' because of its blue spectrum + 1.44 + 2.2 + 0.65 0.46 0.45 + + + 50 + Sn + Tin + 118.710 + 119.9021947 + 7.3439 + 1.112066 + 1.96 + 2876 + 505.12 + Latin 'stannum' for tin + 1.41 + 2.25 + 0.40 0.50 0.50 + + + 51 + Sb + Antimony + 121.760 + 120.9038157 + 8.6084 + 1.047401 + 2.05 + 1860 + 903.91 + Arabic 'anthos ammonos' for 'blossom of the god Ammon' + 1.38 + 2.2 + 0.62 0.39 0.71 + + + 52 + Te + Tellurium + 127.60 + 129.9062244 + 9.0096 + 1.970875 + 2.1 + 1261 + 722.72 + Latin 'tellus' or 'telluris' for 'Planet Earth' + 1.35 + 2.1 + 0.83 0.48 0.00 + + + 53 + I + Iodine + 126.90447 + 126.904473 + 10.4513 + 3.059038 + 2.66 + 457.5 + 386.7 + Greek 'ioeides' for 'violett' + 1.33 + 2.1 + 0.58 0.00 0.58 + + + 54 + Xe + Xenon + 131.293 + 131.9041535 + 12.1298 + 0 + 2.6 + 165.1 + 161.39 + Greek 'xenos' for 'foreigner' + 1.30 + 2.16 + 0.26 0.62 0.69 + + + 55 + Cs + Caesium + 132.90545 + 132.9054519 + 3.8939 + 0.471626 + 0.79 + 944 + 301.54 + Latin 'caesius' for 'heavenblue' + 2.25 + 3 + 0.34 0.09 0.56 + + + 56 + Ba + Barium + 137.327 + 137.9052472 + 5.2117 + 0.14462 + 0.89 + 2078 + 1002 + Greek 'barys' for 'heavy' + 1.98 + 2.7 + 0.00 0.79 0.00 + + + 57 + La + Lanthanum + 138.9055 + 138.9063533 + 5.5769 + 0.47 + 1.10 + 3737 + 1191 + Greek 'lanthanein' for 'hidden'. The Lanthanoids are also called the 'rare earth' + 1.69 + 2.5 + 0.44 0.83 1.00 + + + 58 + Ce + Cerium + 140.116 + 139.9054387 + 5.5387 + 0.5 + 1.12 + 3715 + 1071 + Named after the planetoid Ceres + 2.48 + 1.00 1.00 0.78 + + + 59 + Pr + Praseodymium + 140.90765 + 140.9076528 + 5.473 + 0.5 + 1.13 + 3785 + 1204 + Greek 'prasinos didymos' for 'green twin' + 2.47 + 0.85 1.00 0.78 + + + 60 + Nd + Neodymium + 144.24 + 141.9077233 + 5.5250 + 0.5 + 1.14 + 3347 + 1294 + Greek 'neos didymos' for 'new twin' + 2.45 + 0.78 1.00 0.78 + + + 61 + Pm + Promethium + 145 + 144.912749 + 5.582 + 0.5 + 3273 + 1315 + Named after the greek Prometheus. Prometheus stole the fire from the gods and gave it to mankind + 2.43 + 0.64 1.00 0.78 + + + 62 + Sm + Samarium + 150.36 + 151.9197324 + 5.6437 + 0.5 + 1.17 + 2067 + 1347 + Named after the mineral Samarskit + 2.42 + 0.56 1.00 0.78 + + + 63 + Eu + Europium + 151.964 + 152.9212303 + 5.6704 + 0.5 + 1800 + 1095 + Named after Europe + 2.4 + 0.38 1.00 0.78 + + + 64 + Gd + Gadolinium + 157.25 + 157.9241039 + 6.1498 + 0.5 + 1.20 + 3545 + 1585 + Named after the Finnish chemist Johan Gadolin + 2.38 + 0.27 1.00 0.78 + + + 65 + Tb + Terbium + 158.92534 + 158.9253468 + 5.8638 + 0.5 + 3500 + 1629 + Named after the Swedish town of Ytterby + 2.37 + 0.19 1.00 0.78 + + + 66 + Dy + Dysprosium + 162.500 + 163.9291748 + 5.9389 + 0.5 + 1.22 + 2840 + 1685 + Greek 'dysprositor' for 'difficult to reach' + 2.35 + 0.12 1.00 0.78 + + + 67 + Ho + Holmium + 164.93032 + 164.9303221 + 6.0215 + 0.5 + 1.23 + 2968 + 1747 + Latin 'holmia' for the old name of Stockholm + 2.33 + 0.00 1.00 0.61 + + + 68 + Er + Erbium + 167.259 + 165.9302931 + 6.1077 + 0.5 + 1.24 + 3140 + 1802 + Named ofter the Swedish town of Ytterby. Terbium and Ytterbium are also named after this town. + 2.32 + 0.00 0.90 0.46 + + + 69 + Tm + Thulium + 168.93421 + 168.9342133 + 6.1843 + 0.5 + 1.25 + 2223 + 1818 + Named after the old name of Scandinavia. 'Thule' + 2.3 + 0.00 0.83 0.32 + + + 70 + Yb + Ytterbium + 173.04 + 173.9388621 + 6.2542 + 0.5 + 1469 + 1092 + Like Terbium and Gadolinium. this is named after the Swedish town of Ytterby + 2.28 + 0.00 0.75 0.22 + + + 71 + Lu + Lutetium + 174.967 + 174.9407718 + 5.4259 + 0.5 + 1.27 + 3668 + 1936 + Named after the Roman name 'Lutetia' for Paris + 1.60 + 2.27 + 0.00 0.67 0.14 + + + 72 + Hf + Hafnium + 178.49 + 179.94655 + 6.8251 + 0 + 1.3 + 4875 + 2504 + 'Hafnia' is the old name of Kopenhagen (Denmark) + 1.50 + 2.25 + 0.30 0.76 1.00 + + + 73 + Ta + Tantalum + 180.9479 + 180.9479958 + 7.5496 + 0.322 + 1.5 + 5730 + 3293 + Named after the Greek myth of Tantalos + 1.38 + 2.2 + 0.30 0.65 1.00 + + + 74 + W + Tungsten + 183.84 + 183.9509312 + 7.8640 + 0.815 + 2.36 + 5825 + 3695 + 'tung sten' means 'heavy stone' in Swedish. The old name (and thus the symbol 'W') was Wolfram. named after a mineral + 1.46 + 2.1 + 0.13 0.58 0.84 + + + 75 + Re + Rhenium + 186.207 + 186.9557531 + 7.8335 + 0.15 + 1.9 + 5870 + 3455 + Named after the German river Rhine (latin 'Rhenium') + 1.59 + 2.05 + 0.15 0.49 0.67 + + + 76 + Os + Osmium + 190.23 + 191.9614807 + 8.4382 + 1.07780 + 2.2 + 5300 + 3300 + Greek for 'smell'. Its oxides smell strongly like radishes + 1.28 + 2 + 0.15 0.40 0.59 + + + 77 + Ir + Iridium + 192.217 + 192.9629264 + 8.9670 + 1.56436 + 2.20 + 4700 + 2720 + Greek 'iris' for 'rainbow' + 1.37 + 2 + 0.09 0.33 0.53 + + + 78 + Pt + Platinum + 195.078 + 194.9647911 + 8.9588 + 2.12510 + 2.28 + 4100 + 2042.1 + Spanish 'platina' means 'small silver' + 1.28 + 2.05 + 0.96 0.93 0.82 + + + 79 + Au + Gold + 196.96655 + 196.9665687 + 9.2255 + 2.30861 + 2.54 + 3130 + 1337.58 + Latin 'aurum'. named after Aurora. the goddess of sunrise + 1.44 + 2.1 + 0.80 0.82 0.12 + + + 80 + Hg + Mercury + 200.59 + 201.970643 + 10.4375 + 0 + 2.00 + 629.88 + 234.31 + Graeco-Latin 'hydrargyrum' for 'liquid silver' + 1.49 + 2.05 + 0.71 0.71 0.76 + + + 81 + Tl + Thallium + 204.3833 + 204.9744275 + 6.1082 + 0.377 + 1.62 + 1746 + 577 + Greek 'tallos' for 'young twig' + 1.48 + 2.2 + 0.65 0.33 0.30 + + + 82 + Pb + Lead + 207.2 + 207.9766521 + 7.4167 + 0.364 + 2.33 + 2023 + 600.65 + Latin 'plumbum' for Lead + 1.47 + 2.3 + 0.34 0.35 0.38 + + + 83 + Bi + Bismuth + 208.98038 + 208.9803987 + 7.2855 + 0.942363 + 2.02 + 1837 + 544.59 + The old name of Bismuth is 'Wismut'. This stood for 'white mass' + 1.46 + 2.3 + 0.62 0.31 0.71 + + + 84 + Po + Polonium + 209 + 208.9824304 + 8.414 + 1.9 + 2.0 + 0 + 527 + Named after Poland to honor Marie Curie + 2 + 0.67 0.36 0.00 + + + 85 + At + Astatine + 210 + 209.987148 + 0 + 2.8 + 2.2 + 610 + 575 + Greek 'astator' for 'changing' + 2 + 0.46 0.31 0.27 + + + 86 + Rn + Radon + 222 + 222.0175777 + 10.7485 + 0 + 211.4 + 202 + Named after Radium. It ends with 'on' to make it clear that it is a noble gas + 1.45 + 2 + 0.26 0.51 0.59 + + + 87 + Fr + Francium + 223 + 223.0197359 + 4.0727 + 0.7 + 950 + 300 + Named after France to honor Marguerite Perey + 2 + 0.26 0.00 0.40 + + + 88 + Ra + Radium + 226 + 226.0254098 + 5.2784 + 0.9 + 1413 + 973 + Latin 'radius' for 'beam', as it is radioactive + 2 + 0.00 0.49 0.00 + + + 89 + Ac + Actinium + 227 + 227.0277521 + 5.17 + 1.1 + 3470 + 1324 + Greek 'aktis' for 'beam' - actinium is radioactive + 2 + 0.44 0.67 0.98 + + + 90 + Th + Thorium + 232.0381 + 232.0380553 + 6.3067 + 1.3 + 5060 + 2028 + Named after the German god of thunder: Thor + 2.4 + 0.00 0.73 1.00 + + + 91 + Pa + Protactinium + 231.03588 + 231.035884 + 5.89 + 1.5 + 4300 + 1845 + Greek 'protos' for 'ancester'. Protactinium is before Actinium in the periodic table. + 2 + 0.00 0.63 1.00 + + + 92 + U + Uranium + 238.02891 + 238.0507882 + 6.1941 + 1.38 + 4407 + 1408 + Greek 'ouranos' for 'heaven'. Named after the planet Uranus + 2.3 + 0.00 0.56 1.00 + + + 93 + Np + Neptunium + 237 + 237.0481734 + 6.2657 + 1.36 + 4175 + 912 + Named after the planet Neptune. + 2 + 0.00 0.50 1.00 + + + 94 + Pu + Plutonium + 244 + 244.064204 + 6.0260 + 1.28 + 3505 + 913 + Named after the planet Pluto. + 2 + 0.00 0.42 1.00 + + + 95 + Am + Americium + 243 + 243.0613811 + 5.9738 + 1.3 + 2880 + 1449 + Named after America. + 2 + 0.33 0.36 0.95 + + + 96 + Cm + Curium + 247 + 247.070354 + 5.9914 + 1.3 + 1620 + Named after Marie Curie. + 2 + 0.47 0.36 0.89 + + + 97 + Bk + Berkelium + 247 + 247.070307 + 6.1979 + 1.3 + 1258 + Named after the town Berkeley where it was discovered. + 2 + 0.54 0.31 0.89 + + + 98 + Cf + Californium + 251 + 251.079587 + 6.2817 + 1.3 + 1172 + Named after the US-State of California. + 2 + 0.63 0.21 0.83 + + + 99 + Es + Einsteinium + 252 + 252.08298 + 6.42 + 1.3 + 1130 + Named after the scientist Albert Einstein. + 2 + 0.70 0.12 0.83 + + + 100 + Fm + Fermium + 257 + 257.095105 + 6.50 + 1.3 + 1800 + Named after the scientist Enrico Fermi. + 2 + 0.70 0.12 0.73 + + + 101 + Md + Mendelevium + 258 + 258.098431 + 6.58 + 1.3 + 1100 + Named after the scientist D.I. Mendeleev. + 2 + 0.70 0.05 0.65 + + + 102 + No + Nobelium + 259 + 259.10103 + 6.65 + 1.3 + 1100 + Named after the scientist Alfred Nobel. + 2 + 0.74 0.05 0.53 + + + 103 + Lr + Lawrencium + 262 + 262.10963 + 4.9 + 1900 + Named after the scientist Ernest Orlando Lawrence. + 2 + 0.78 0.00 0.40 + + + 104 + Rf + Rutherfordium + 261 + 261.10877 + 6.0 + Named after the scientist Ernest Rutherford + 2 + 0.80 0.00 0.35 + + + 105 + Db + Dubnium + 262 + 262.11408 + Named after the science-town Dubna in Russia + 2 + 0.82 0.00 0.31 + + + 106 + Sg + Seaborgium + 266 + 263.11832 + Named after the scientist G. Theodore Seaborg. + 2 + 0.85 0.00 0.27 + + + 107 + Bh + Bohrium + 264 + 264.1246 + Named after the scientist Niels Bohr. + 2 + 0.88 0.00 0.22 + + + 108 + Hs + Hassium + 277 + 265.13009 + Latin 'hassia' for the German county Hessen. In Hessen a lot elements have been discovered. + 2 + 0.90 0.00 0.18 + + + 109 + Mt + Meitnerium + 268 + 268.13873 + Named after the scientist Lise Meitner. + 2 + 0.92 0.00 0.15 + + + 110 + Ds + Darmstadtium + 281 + 271.14606 + Named after the German city Darmstadt where many elements have been discovered. + 0.93 0.00 0.14 + + + 111 + Rg + Roentgenium + 272 + 272.15362 + Named after Wilhelm Conrad Röntgen. + 0.94 0.00 0.13 + + + 112 + Uub + Ununbium + 285 + 285.17411 + 0.95 0.00 0.12 + + + 113 + Uut + Ununtrium + 284 + 284.17808 + 0.96 0.00 0.11 + + + 114 + Uuq + Ununquadium + 289 + 289.18728 + 0.97 0.00 0.10 + + + 115 + Uup + Ununpentium + 288 + 288.19249 + 0.98 0.00 0.09 + + + 116 + Uuh + Ununhexium + 292 + 292.19979 + 0.99 0.00 0.08 + + diff --git a/libscience/elementparser.cpp b/libscience/elementparser.cpp index f080f76..f9370ff 100644 --- a/libscience/elementparser.cpp +++ b/libscience/elementparser.cpp @@ -31,7 +31,9 @@ ElementSaxParser::ElementSaxParser() inElectronAffinity_(false), inElectronegativityPauling_(false), inRadiusCovalent_(false), - inRadiusVDW_(false) + inRadiusVDW_(false), + inBoilingPoint_(false), + inMeltingPoint_(false) { } @@ -63,6 +65,10 @@ bool ElementSaxParser::startElement(const QString&, const QString &localName, co inRadiusCovalent_ = true; else if (attrs.value(i) == "bo:radiusVDW") inRadiusVDW_ = true; + else if (attrs.value(i) == "bo:meltingpoint") + inMeltingPoint_ = true; + else if (attrs.value(i) == "bo:boilingpoint") + inBoilingPoint_ = true; } } return true; @@ -136,6 +142,16 @@ bool ElementSaxParser::characters(const QString &ch) type = ChemicalDataObject::radiusVDW; inRadiusVDW_ = false; } + else if (inMeltingPoint_) { + value = ch.toDouble(); + type = ChemicalDataObject::meltingpoint; + inMeltingPoint_ = false; + } + else if (inBoilingPoint_) { + value = ch.toDouble(); + type = ChemicalDataObject::boilingpoint; + inBoilingPoint_ = false; + } else//it is a non known value. Do not create a wrong object but return return true; diff --git a/libscience/elementparser.h b/libscience/elementparser.h index 1acc4cc..8c388e9 100644 --- a/libscience/elementparser.h +++ b/libscience/elementparser.h @@ -44,6 +44,8 @@ class ElementSaxParser : public QXmlDefaultHandler inElectronAffinity_, inElectronegativityPauling_, inRadiusCovalent_, - inRadiusVDW_; + inRadiusVDW_, + inBoilingPoint_, + inMeltingPoint_; }; #endif // ELEMENTPARSER_H diff --git a/libscience/tests/xmlreadingtest.cpp b/libscience/tests/xmlreadingtest.cpp index c72e79f..d36662c 100644 --- a/libscience/tests/xmlreadingtest.cpp +++ b/libscience/tests/xmlreadingtest.cpp @@ -39,10 +39,10 @@ int main(int argc, char *argv[]) //X kdDebug() << "Name: " << e->dataAsString( ChemicalDataObject::name ) << endl; //Test: give me all data available -//X foreach( ChemicalDataObject*o, list ){ -//X if ( o ) -//X kdDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << endl; -//X } + foreach( ChemicalDataObject*o, list ){ + if ( o ) + kdDebug() << "Name: " << o->dictRef() << " " << o->valueAsString() << endl; + } } }