species_name_to_fastchem_name

species_name_to_fastchem_name#

shone.chemistry.species_name_to_fastchem_name(species, 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.

Parameters:

species (str) – Generic name, like “H2O”.

Returns:

hill_name – Name in Hill notation, like “H2O1”.

Return type:

str