roentgen.util.util#
A module providing utility functions
Functions
|
Returns True if the string represents an element |
|
Return the atomic number of the element |
|
Returns True is the compound is in the list of known compounds |
|
Return the index of the compound in the compound table |
|
Given a material name return the default density |
|
Return the symbol of an element given its long or its atomic number. |
|
Given the pressure and temperature of a dry gas, return the density using the ideal gas law |
|
Given a material name return the official name |
|
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_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