Function to calculate CO2 emissions (in kg/J) allocation factors - Inputs: Fuel type, Allocation Method, Heat flow fuel
function cogenerationEmissionAllocationFactors extends TransiEnt.Basics.Icons.Function; input TransiEnt.Basics.Types.TypeOfCO2AllocationMethod typeOfCO2Allocation; input SI.Efficiency eta_el "Electric efficiency"; input SI.Efficiency eta_th "Themal efficiency"; output Real A_fuel_th "Fraction of emissions going to thermal side of balance"; output Real A_fuel_el "Fraction of emissions going to electric side of balance"; end cogenerationEmissionAllocationFactors;