Handle conversion between element symbols and atomic numbers
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | symbol_length | = | 4 |
Maximum allowed length of element symbols |
Get chemical identity
Get chemical identity from a list of atomic numbers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(out) | :: | nid |
Number of unique species |
||
integer, | intent(out) | :: | identity(:) |
Chemical identity |
||
integer, | intent(in) | :: | number(:) |
Ordinal numbers |
Get chemical identity from a list of element symbols
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(out) | :: | nid |
Number of unique species |
||
integer, | intent(out) | :: | identity(:) |
Chemical identity |
||
character(len=*), | intent(in) | :: | symbol(:) |
Element symbols |
Convert atomic number to element symbol
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | number |
Atomic number |
Element symbol
Convert element symbol to atomic number
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | symbol |
Element symbol |
Atomic number
Convert atomic number to element symbol
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | number |
Atomic number |
Element symbol
Establish a mapping between unique atom types and species
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | identity(:) |
Chemical identity |
||
integer, | intent(out) | :: | mapping(:) |
Mapping from unique atoms |
Convert atomic number to element symbol
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=2), | intent(out) | :: | symbol |
Element symbol |
||
integer, | intent(in) | :: | number |
Atomic number |
Convert atomic number to element symbol
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=2), | intent(out) | :: | symbol |
Element symbol |
||
integer, | intent(in) | :: | number |
Atomic number |
Convert element symbol to atomic number
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(out) | :: | number |
Atomic number |
||
character(len=*), | intent(in) | :: | symbol |
Element symbol |