Utilities

roentgen.util Package

Functions

density_ideal_gas(pressure, temperature)

Given the pressure and temperature of a dry gas, return the density using the ideal gas law

get_atomic_number(element_str)

Return the atomic number of the element

get_compound_index(compound_str)

Return the index of the compound in the compound table

get_element_symbol(element)

Return the symbol of an element given its long or its atomic number.

get_material_density(material_str)

Given a material name return the default density

get_material_name(material_str)

Given a material name return the official name

get_material_symbol(material_str)

Given a material name return the symbol

is_an_element(element_str)

Returns True if the string represents an element

is_in_known_compounds(compound_str)

Returns True is the compound is in the list of known compounds