species_name_to_fastchem_name#
- shone.chemistry.translate.species_name_to_fastchem_name(species, charge=None, return_mass=False)[source]#
Convert generic species name, like “H2O” or “ClAlF2”, to Hill notation for FastChem, like “H2O1” or “Al1Cl1F2”.
Optionally, return the total mass of the species by summing the masses of its components.