def get_preprocessing_GWP():
    GWPs = {}
    e_CF = CFs['GWP_CFs']['Electricity']
    NH3_CF = CFs['GWP_CFs']['NH3']
    CH4_CF = CFs['GWP_CFs']['CH4']
    e_rates = {}
    for (depot, dct) in depot_dct.items():
        sys = dct['flowsheet'].system.prep_sys
        e_rates[depot] = (sum((i.power_utility.rate for i in sys.units)) / dct['preprocessed'].F_mass)
    for depot in depot_dct.keys():
        GWPs[depot] = ((69.27 / _kg_per_ton) + ((e_rates[depot] - e_rates['HMPP']) * e_CF))
    for depot in ('CPP_AFEX', 'HMPP_AFEX'):
        dct = depot_dct[depot]
        feedstock_mass = dct['preprocessed'].F_mass
        GWPs[depot] += ((dct['flowsheet'].stream.ammonia.F_mass * NH3_CF) / feedstock_mass)
        GWPs[depot] += ((dct['flowsheet'].stream.natural_gas.F_mass * CH4_CF) / feedstock_mass)
    return GWPs
def get_preprocessing_GWP():
    GWPs = {}
    e_CF = CFs['GWP_CFs']['Electricity']
    NH3_CF = CFs['GWP_CFs']['NH3']
    CH4_CF = CFs['GWP_CFs']['CH4']
    e_rates = {}
    for (depot, dct) in depot_dct.items():
        sys = dct['flowsheet'].system.prep_sys
        e_rates[depot] = (sum((i.power_utility.rate for i in sys.units)) / dct['preprocessed'].F_mass)
    for depot in depot_dct.keys():
        GWPs[depot] = ((69.27 / _kg_per_ton) + ((e_rates[depot] - e_rates['HMPP']) * e_CF))
    for depot in ('CPP_AFEX', 'HMPP_AFEX'):
        dct = depot_dct[depot]
        feedstock_mass = dct['preprocessed'].F_mass
        GWPs[depot] += ((dct['flowsheet'].stream.ammonia.F_mass * NH3_CF) / feedstock_mass)
        GWPs[depot] += ((dct['flowsheet'].stream.natural_gas.F_mass * CH4_CF) / feedstock_mass)
    return GWPs