def convert_gas_to_composition_dict( gas ):
    """
    Converts a Cantera gas with a specified composition into
    a composition dict of mole fractions
    """
    d = {}
    for sp in gas.species_names:
        if gas.mole_fraction(sp) > 0.0:
            d[sp] = gas.mole_fraction(sp)
    return d