PyNE C++
|
Nuclide naming conventions. More...
Classes | |
class | IndeterminateNuclideForm |
class | NotANuclide |
Typedefs | |
typedef std::string | name_t |
name type | |
typedef int | zz_t |
Z number type. | |
typedef std::map< name_t, zz_t > | name_zz_t |
name and Z num map type | |
typedef name_zz_t::iterator | name_zz_iter |
name and Z num iter type | |
typedef std::map< zz_t, name_t > | zzname_t |
Z num to name map type. | |
typedef zzname_t::iterator | zzname_iter |
Z num to name iter type. | |
typedef std::set< name_t > | name_group |
name grouping type (for testing containment) | |
typedef name_group::iterator | name_group_iter |
name grouping iter type | |
typedef std::set< zz_t > | zz_group |
Z number grouping type (for testing containment) | |
typedef zz_group::iterator | zz_group_iter |
Z number grouping iter. | |
Functions | |||
name_zz_t | get_name_zz () | ||
Creates standard name to Z number mapping. | |||
zzname_t | get_zz_name () | ||
Creates standard Z number to name mapping. | |||
name_zz_t | get_fluka_zz () | ||
Creates standard fluka-name to nucid mapping. | |||
zzname_t | get_zz_fluka () | ||
Creates standard nucid to fluka-name mapping. | |||
zz_group | name_to_zz_group (name_group eg) | ||
isnuclide functions | |||
These functions test if an input nuc is a valid nuclide.
| |||
bool | isnuclide (std::string nuc) | ||
bool | isnuclide (const char *nuc) | ||
bool | isnuclide (int nuc) | ||
iselement functions | |||
These functions test if an input nuc is a valid element.
| |||
bool | iselement (std::string nuc) | ||
bool | iselement (const char *nuc) | ||
bool | iselement (int nuc) | ||
Identifier Form Functions | |||
The 'id' nuclide naming convention is the canonical form for representing nuclides in PyNE. This is termed a ZAS, or ZZZAAASSSS, representation because It stores 3 Z-number digits, 3 A-number digits, followed by 4 S-number digits which the nucleus excitation state. The id() function will always return an nuclide in id form, if successful. If the input nuclide is in id form already, then this is function does no work. For all other formats, the id() function provides a best-guess based on a heirarchy of other formats that is used to resolve ambiguities between naming conventions. For integer input the form resolution order is:
| |||
int | id (int nuc) | ||
int | id (const char *nuc) | ||
int | id (std::string nuc) | ||
Name Form Functions | |||
The 'name' nuclide naming convention is the more common, human readable notation. The chemical symbol (one or two characters long) is first, followed by the nucleon number. Lastly if the nuclide is metastable, the letter M is concatenated to the end. For example, ‘H-1’ and ‘Am242M’ are both valid. Note that nucname will always return name form with dashes removed, the chemical symbol used for letter casing (ie 'Pu'), and a trailing upercase 'M' for a metastable flag. The name() function first converts functions to id form using the id() function. Thus the form order resolution for id() also applies here.
| |||
std::string | name (int nuc) | ||
std::string | name (const char *nuc) | ||
std::string | name (std::string nuc) | ||
Z-Number Functions | |||
The Z-number, or charge number, represents the number of protons in a nuclide. This function returns that number.
| |||
int | znum (int nuc) | ||
int | znum (const char *nuc) | ||
int | znum (std::string nuc) | ||
A-Number Functions | |||
The A-number, or nucleon number, represents the number of protons and neutrons in a nuclide. This function returns that number.
| |||
int | anum (int nuc) | ||
int | anum (const char *nuc) | ||
int | anum (std::string nuc) | ||
S-Number Functions | |||
The S-number, or excitation state number, represents the excitation level of a nuclide. Normally, this is zero. This function returns that number.
| |||
int | snum (int nuc) | ||
int | snum (const char *nuc) | ||
int | snum (std::string nuc) | ||
ZZAAAM Form Functions | |||
The ZZAAAM nuclide naming convention is the former canonical form for nuclides in PyNE. This places the charge of the nucleus out front, then has three digits for the atomic mass number, and ends with a metastable flag (0 = ground, 1 = first excited state, 2 = second excited state, etc). Uranium-235 here would be expressed as ‘922350’.
| |||
int | zzaaam (int nuc) | ||
int | zzaaam (const char *nuc) | ||
int | zzaaam (std::string nuc) | ||
ZZAAAM Form to Identifier Form Functions | |||
This converts from the ZZAAAM nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | zzaaam_to_id (int nuc) | ||
int | zzaaam_to_id (const char *nuc) | ||
int | zzaaam_to_id (std::string nuc) | ||
ZZZAAA Form Functions | |||
The ZZZAAA nuclide naming convention is a form in which the nuclides three digit ZZZ number is followed by the 3 digit AAA number. If the ZZZ number is 2 digits, the preceding zeros are not included. Uranium-235 here would be expressed as ‘92235’.
| |||
int | zzzaaa (int nuc) | ||
int | zzzaaa (const char *nuc) | ||
int | zzzaaa (std::string nuc) | ||
ZZZAAA Form to Identifier Form Functions | |||
This converts from the ZZZAAA nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | zzzaaa_to_id (int nuc) | ||
int | zzzaaa_to_id (const char *nuc) | ||
int | zzzaaa_to_id (std::string nuc) | ||
ZZLLAAAM Form Functions | |||
The ZZLLAAAM nuclide naming convention is a form in which the nuclides AA number is followed by the redundant two LL characters, followed by the nuclides ZZZ number. Can also be followed with a metastable flag. Uranium-235 here would be expressed as ‘92-U-235’.
| |||
std::string | zzllaaam (int nuc) | ||
std::string | zzllaaam (const char *nuc) | ||
std::string | zzllaaam (std::string nuc) | ||
ZZLLAAAM Form to Identifier Form Functions | |||
This converts from the ZZLLAAAM nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | zzllaaam_to_id (const char *nuc) | ||
int | zzllaaam_to_id (std::string nuc) | ||
MCNP Form Functions | |||
This is the naming convention used by the MCNP suite of codes. The MCNP format for entering nuclides is unfortunately non-standard. In most ways it is similar to zzaaam form, except that it lacks the metastable flag. For information on how metastable isotopes are named, please consult the MCNP documentation for more information.
| |||
int | mcnp (int nuc) | ||
int | mcnp (const char *nuc) | ||
int | mcnp (std::string nuc) | ||
MCNP Form to Identifier Form Functions | |||
This converts from the MCNP nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | mcnp_to_id (int nuc) | ||
int | mcnp_to_id (const char *nuc) | ||
int | mcnp_to_id (std::string nuc) | ||
OPENMC Form Functions | |||
This is the naming convention used by the OpenMC code. The OpenMC format for entering nuclides uses a GND format. For information on how metastable isotopes are named, please consult the OpenMC documentation for more information.
| |||
std::string | openmc (int nuc) | ||
std::string | openmc (const char *nuc) | ||
std::string | openmc (std::string nuc) | ||
OPENMC Form to Identifier Form Functions | |||
This converts from the OPENMC nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | openmc_to_id (const char *nuc) | ||
int | openmc_to_id (std::string nuc) | ||
FLUKA Form Functions | |||
This is the naming convention used by the FLUKA suite of codes. The FLUKA format for entering nuclides requires some knowledge of FLUKA The nuclide in must cases should be the atomic # times 10000000. The exceptions are for FLUKA's named isotopes See the FLUKA Manual for more information.
| |||
std::string | fluka (int nuc) | ||
FLUKA Form to Identifier Form Functions | |||
This converts from the FLUKA name to the id canonical form for nuclides in PyNE.
| |||
int | fluka_to_id (std::string name) | ||
int | fluka_to_id (char *name) | ||
Serpent Form Functions | |||
This is the string-based naming convention used by the Serpent suite of codes. The serpent naming convention is similar to name form. However, only the first letter in the chemical symbol is uppercase, the dash is always present, and the the meta-stable flag is lowercase. For instance, ‘Am-242m’ is the valid serpent notation for this nuclide.
| |||
std::string | serpent (int nuc) | ||
std::string | serpent (const char *nuc) | ||
std::string | serpent (std::string nuc) | ||
Serpent Form to Identifier Form Functions | |||
This converts from the Serpent nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | serpent_to_id (const char *nuc) | ||
int | serpent_to_id (std::string nuc) | ||
NIST Form Functions | |||
This is the string-based naming convention used by NIST. The NIST naming convention is also similar to the Serpent form. However, this convention contains no metastable information. Moreover, the A-number comes before the element symbol. For example, ‘242Am’ is the valid NIST notation.
| |||
std::string | nist (int nuc) | ||
std::string | nist (const char *nuc) | ||
std::string | nist (std::string nuc) | ||
NIST Form to Identifier Form Functions | |||
This converts from the NIST nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | nist_to_id (const char *nuc) | ||
int | nist_to_id (std::string nuc) | ||
CINDER Form Functions | |||
This is the naming convention used by the CINDER burnup library. The CINDER format is similar to zzaaam form except that the placement of the Z- and A-numbers are swapped. Therefore, this format is effectively aaazzzm. For example, ‘2420951’ is the valid cinder notation for ‘AM242M’.
| |||
int | cinder (int nuc) | ||
int | cinder (const char *nuc) | ||
int | cinder (std::string nuc) | ||
Cinder Form to Identifier Form Functions | |||
This converts from the Cinder nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | cinder_to_id (int nuc) | ||
int | cinder_to_id (const char *nuc) | ||
int | cinder_to_id (std::string nuc) | ||
ALARA Form Functions | |||
This is the format used in the ALARA activation code elements library. For elements, the form is "ll" where ll is the atomic symbol. For isotopes the form is "ll:AAA". No metastable isotope flag is used.
| |||
std::string | alara (int nuc) | ||
std::string | alara (const char *nuc) | ||
std::string | alara (std::string nuc) | ||
ALARA Form to Identifier Form Functions | |||
This converts from the ALARA nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | alara_to_id (const char *nuc) | ||
int | alara_to_id (std::string nuc) | ||
SZA Form Functions | |||
This is the new format for ACE data tables in the form SSSZZZAAA. The first three digits represent the excited state (000 = ground, 001 = first excited state, 002 = second excited state, etc). The second three digits are the atomic number and the last three digits are the atomic mass. Prepending zeros can be omitted, making the SZA form equal to the MCNP form for non-excited nuclides.
| |||
int | sza (int nuc) | ||
int | sza (const char *nuc) | ||
int | sza (std::string nuc) | ||
SZA Form to Identifier Form Functions | |||
This converts from the SZA nuclide naming convention to the id canonical form for nuclides in PyNE.
| |||
int | sza_to_id (int nuc) | ||
int | sza_to_id (const char *nuc) | ||
int | sza_to_id (std::string nuc) | ||
Ground State Form Functions | |||
This form stores the nuclide in id form, but removes the state information about the nuclide. I is in the same form as ID, but the four last digits are all zeros.
| |||
int | groundstate (int nuc) | ||
int | groundstate (std::string nuc) | ||
int | groundstate (const char *nuc) | ||
ENSDF Form Functions | |||
This converts id's stored using standard ensdf syntax to nuc_id's
| |||
int | ensdf_to_id (const char *nuc) | ||
int | ensdf_to_id (std::string nuc) | ||
Variables | |
name_zz_t | name_zz = pyne::nucname::get_name_zz() |
name to Z num map | |
zzname_t | zz_name = pyne::nucname::get_zz_name() |
Z num to name map. | |
name_zz_t | fluka_zz = pyne::nucname::get_fluka_zz() |
fluka-name to nucid map | |
zzname_t | zz_fluka = pyne::nucname::get_zz_fluka() |
nucid to fluka-name map | |
name_t | LAN_array [15] |
array of lanthanide names More... | |
name_group | LAN |
lanthanide name group | |
zz_group | lan |
lanthanide Z number group More... | |
name_t | ACT_array [15] |
array of actinide names More... | |
name_group | ACT |
actinide name group | |
zz_group | act = pyne::nucname::name_to_zz_group(pyne::nucname::ACT) |
actinide Z number group | |
name_t | TRU_array [22] |
array of transuranic names More... | |
name_group | TRU |
transuranic name group | |
zz_group | tru |
transuranic Z number group More... | |
name_t | MA_array [10] |
array of minor actinide names More... | |
name_group | MA |
minor actinide name group | |
zz_group | ma |
minor actinide Z number group More... | |
name_t | FP_array [88] |
array of fission product names More... | |
name_group | FP |
fission product name group | |
zz_group | fp |
fission product Z number group More... | |
int | map_nuc_ids [TOTAL_STATE_MAPS] |
int | map_metastable [TOTAL_STATE_MAPS] |
Nuclide naming conventions.
pyne::nucname::zz_group pyne::nucname::name_to_zz_group | ( | name_group | eg | ) |
Converts a name group to a Z number group.
eg | a grouping of nuclides by name |
pyne::nucname::name_t pyne::nucname::ACT_array |
array of actinide names
pyne::nucname::zz_group pyne::nucname::fp |
fission product Z number group
pyne::nucname::name_t pyne::nucname::FP_array |
array of fission product names
pyne::nucname::zz_group pyne::nucname::lan |
lanthanide Z number group
pyne::nucname::name_t pyne::nucname::LAN_array |
array of lanthanide names
pyne::nucname::zz_group pyne::nucname::ma |
minor actinide Z number group
pyne::nucname::name_t pyne::nucname::MA_array |
array of minor actinide names
pyne::nucname::zz_group pyne::nucname::tru |
transuranic Z number group
pyne::nucname::name_t pyne::nucname::TRU_array |
array of transuranic names