Utilities

roentgen.util Package

Functions

density_ideal_gas(pressure, temperature)

Given 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_density(material_str)

Given a material name return the default density

get_element_symbol(element_str)

Return the element abbreviation

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