This static class provides utility functions related to the treatment of atomic and ionic species.
| std::pair< short, short > AtomUtils::parseIon |
( |
string | ion | ) |
|
|
static |
This function returns a pair of the atomic number and number of electrons (Z,N) of the specified ion string. The ion string can have the following formats, as listed in the table below. Any other format will throw an error.
| Format | Returns |
| 'Z' | \((Z,N)=(Z,Z)\) |
| 'Z+' | \((Z,N)=(Z,Z-1)\) |
| 'Z+I' | \((Z,N)=(Z,Z-I)\) |
The number of electrons, N, can range from 0 to Z, any other value will result in an error.