| 312 | } |
| 313 | |
| 314 | string getElementName(const string& ename) |
| 315 | { |
| 316 | string symbol = trimCopy(ename); |
| 317 | for (const auto& atom : atomicWeightTable) { |
| 318 | if (symbol == atom.symbol) { |
| 319 | return atom.fullName; |
| 320 | } |
| 321 | } |
| 322 | for (const auto& atom : isotopeWeightTable) { |
| 323 | if (symbol == atom.symbol) { |
| 324 | return atom.fullName; |
| 325 | } |
| 326 | } |
| 327 | throw CanteraError("getElementName", "element not found: " + ename); |
| 328 | } |
| 329 | |
| 330 | string getElementName(int atomicNumber) |
| 331 | { |
no test coverage detected