In one of my chem eng classes, we calculate the yield of carbon-based products based on the carbon-based reactants.
When there's only one carbon-containing reactant, call it i, the yield of a product k is:
Yk=[(nk)out-(nk)in]/(ni)in×(vi)/(vk)
where n is the number of moles, v is the stoichiometric coefficient, "in" refers to the inlet stream and "out" refers to the outlet stream.
To my understanding, this equation only works when there's only one carbon-containing reactant, i, that all carbon-containing products originate from.
So, how would the yield of a carbon-based product be calculated in the case of there being more than just one carbon-based reactant that it comes from?