55 {
"H",
"hydrogen", 1.00794},
56 {
"He",
"helium", 4.002602},
57 {
"Li",
"lithium", 6.941 },
58 {
"Be",
"beryllium", 9.012182},
59 {
"B",
"boron", 10.811 },
60 {
"C",
"carbon", 12.011 },
61 {
"N",
"nitrogen", 14.00674},
62 {
"O",
"oxygen", 15.9994 },
63 {
"F",
"fluorine", 18.9984032},
64 {
"Ne",
"neon", 20.1797 },
65 {
"Na",
"sodium", 22.98977},
66 {
"Mg",
"magnesium", 24.3050 },
67 {
"Al",
"aluminum", 26.98154},
68 {
"Si",
"silicon", 28.0855 },
69 {
"P",
"phosphorus", 30.97376},
70 {
"S",
"sulfur", 32.066 },
71 {
"Cl",
"chlorine", 35.4527 },
72 {
"Ar",
"argon", 39.948 },
73 {
"K",
"potassium", 39.0983 },
74 {
"Ca",
"calcium", 40.078 },
75 {
"Sc",
"scandium", 44.95591},
76 {
"Ti",
"titanium", 47.88 },
77 {
"V",
"vanadium", 50.9415 },
78 {
"Cr",
"chromium", 51.9961 },
79 {
"Mn",
"manganese", 54.9381 },
80 {
"Fe",
"iron", 55.847 },
81 {
"Co",
"cobalt", 58.9332 },
82 {
"Ni",
"nickel", 58.69 },
83 {
"Cu",
"copper", 63.546 },
84 {
"Zn",
"zinc", 65.39 },
85 {
"Ga",
"gallium", 69.723 },
86 {
"Ge",
"germanium", 72.61 },
87 {
"As",
"arsenic", 74.92159},
88 {
"Se",
"selenium", 78.96 },
89 {
"Br",
"bromine", 79.904 },
90 {
"Kr",
"krypton", 83.80 },
91 {
"Rb",
"rubidium", 85.4678 },
92 {
"Sr",
"strontium", 87.62 },
93 {
"Y",
"yttrium", 88.90585},
94 {
"Zr",
"zirconium", 91.224 },
95 {
"Nb",
"nobelium", 92.90638},
96 {
"Mo",
"molybdenum", 95.94 },
97 {
"Tc",
"technetium", 97.9072 },
98 {
"Ru",
"ruthenium", 101.07 },
99 {
"Rh",
"rhodium", 102.9055 },
100 {
"Pd",
"palladium", 106.42 },
101 {
"Ag",
"silver", 107.8682 },
102 {
"Cd",
"cadmium", 112.411 },
103 {
"In",
"indium", 114.82 },
104 {
"Sn",
"tin", 118.710 },
105 {
"Sb",
"antimony", 121.75 },
106 {
"Te",
"tellurium", 127.6 },
107 {
"I",
"iodine", 126.90447},
108 {
"Xe",
"xenon", 131.29 },
109 {
"Cs",
"cesium", 132.90543},
110 {
"Ba",
"barium", 137.327 },
111 {
"La",
"lanthanum", 138.9055 },
112 {
"Ce",
"cerium", 140.115 },
113 {
"Pr",
"praseodymium", 140.90765},
114 {
"Nd",
"neodymium", 144.24 },
115 {
"Pm",
"promethium", 144.9127 },
116 {
"Sm",
"samarium", 150.36 },
117 {
"Eu",
"europium", 151.965 },
118 {
"Gd",
"gadolinium", 157.25 },
119 {
"Tb",
"terbium", 158.92534},
120 {
"Dy",
"dysprosium", 162.50 },
121 {
"Ho",
"holmium", 164.93032},
122 {
"Er",
"erbium", 167.26 },
123 {
"Tm",
"thulium", 168.93421},
124 {
"Yb",
"ytterbium", 173.04 },
125 {
"Lu",
"lutetium", 174.967 },
126 {
"Hf",
"hafnium", 178.49 },
127 {
"Ta",
"tantalum", 180.9479 },
128 {
"W",
"tungsten", 183.85 },
129 {
"Re",
"rhenium", 186.207 },
130 {
"Os",
"osmium", 190.2 },
131 {
"Ir",
"iridium", 192.22 },
132 {
"Pt",
"platinum", 195.08 },
133 {
"Au",
"gold", 196.96654},
134 {
"Hg",
"mercury", 200.59 },
135 {
"Tl",
"thallium", 204.3833 },
136 {
"Pb",
"lead", 207.2 },
137 {
"Bi",
"bismuth", 208.98037},
138 {
"Po",
"polonium", 208.9824 },
139 {
"At",
"astatine", 209.9871 },
140 {
"Rn",
"radon", 222.0176 },
141 {
"Fr",
"francium", 223.0197 },
142 {
"Ra",
"radium", 226.0254 },
143 {
"Ac",
"actinium", 227.0279 },
144 {
"Th",
"thorium", 232.0381 },
145 {
"Pa",
"protactinium", 231.03588},
146 {
"U",
"uranium", 238.0508 },
147 {
"Np",
"neptunium", 237.0482 },
148 {
"Pu",
"plutonium", 244.0482 },
161 {
"D",
"deuterium", 2.0, 1},
162 {
"Tr",
"tritium", 3.0, 1},
163 {
"E",
"electron", 0.000545, 0},
172 for (
int i = 0; i < numElements; i++) {
179 for (
int i = 0; i < numIsotopes; i++) {
186 throw CanteraError(
"getElementWeight",
"element not found: " + ename);
192 if (atomicNumber > num || atomicNumber < 1) {
193 throw IndexError(
"getElementWeight",
"atomicWeightTable", atomicNumber, num);
203 for (
int i = 0; i < numElements; i++) {
208 for (
int i = 0; i < numIsotopes; i++) {
213 throw CanteraError(
"getElementSymbol",
"element not found: " + ename);
219 if (atomicNumber > num || atomicNumber < 1) {
220 throw IndexError(
"getElementSymbol",
"atomicWeightTable", atomicNumber,
231 for (
int i = 0; i < numElements; i++) {
236 for (
int i = 0; i < numIsotopes; i++) {
241 throw CanteraError(
"getElementName",
"element not found: " + ename);
247 if (atomicNumber > num || atomicNumber < 1) {
248 throw IndexError(
"getElementName",
"atomicWeightTable", atomicNumber,
260 for (
int i = 0; i < numElements; i++) {
267 for (
int i = 0; i < numIsotopes; i++) {
274 throw CanteraError(
"getAtomicNumber",
"element not found: " + ename);
int getAtomicNumber(const std::string &ename)
Get the atomic number for an element.
std::string trimCopy(const std::string &input)
Trim.
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data...
string fullName
Isotope full name, first letter lowercase.
double getElementWeight(int atomicNumber)
Get the atomic weight of an element.
int numElementsDefined()
Get the number of named elements defined in Cantera.
Contains the getElementWeight function and the definitions of element constraint types.
string fullName
Element full name, first letter lowercase.
string getElementSymbol(int atomicNumber)
Get the symbol for an element.
double atomicWeight
Isotope atomic weight in kg / kg-mol.
Base class for exceptions thrown by Cantera classes.
int atomicNumber
Isotope atomic number.
int numIsotopesDefined()
Get the number of named isotopes defined in Cantera.
static struct isotopeWeightData isotopeWeightTable[]
isotopeWeightTable is a vector containing the atomic weights database.
string getElementName(int atomicNumber)
Get the name of an element.
Contains declarations for string manipulation functions within Cantera.
string symbol
Element symbol, first letter capitalized.
double atomicWeight
Element atomic weight in kg / kg-mol.
An array index is out of range.
string symbol
Isotope symbol, first letter capitalized.
std::string toLowerCopy(const std::string &input)
Convert to lower case.
Namespace for the Cantera kernel.
static struct atomicWeightData atomicWeightTable[]
atomicWeightTable is a vector containing the atomic weights database.