roentgen.util.util#

A module providing utility functions

Functions

is_an_element(element_str)

Returns True if the string represents an element

get_atomic_number(element_str)

Return the atomic number of the element

is_in_known_compounds(compound_str)

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

get_compound_index(compound_str)

Return the index of the compound in the compound table

get_material_density(material_str)

Given a material name return the default density

get_element_symbol(element)

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

density_ideal_gas(pressure, temperature)

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

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

roentgen.util.util.density_ideal_gas(pressure, temperature)[source]#

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

roentgen.util.util.get_atomic_number(element_str)[source]#

Return the atomic number of the element

roentgen.util.util.get_compound_index(compound_str)[source]#

Return the index of the compound in the compound table

roentgen.util.util.get_element_symbol(element)[source]#

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

roentgen.util.util.get_material_density(material_str)[source]#

Given a material name return the default density

roentgen.util.util.get_material_name(material_str)[source]#

Given a material name return the official name

roentgen.util.util.get_material_symbol(material_str)[source]#

Given a material name return the symbol

roentgen.util.util.is_an_element(element_str)[source]#

Returns True if the string represents an element

roentgen.util.util.is_in_known_compounds(compound_str)[source]#

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