GlassBuilder.get_mass_per_formula_unit#
- GlassBuilder.get_mass_per_formula_unit()[source]#
Calculate mass per formula unit.
A formula unit is defined by the stoichiometric coefficients in the composition dictionary.
- Returns:
- float
Mass per formula unit in amu.
- Raises:
- ValueError
If a species is not found in the mass database and no custom structure is provided.