Calculting equilibrium composition of a mixture of gases - Exercise 16-89 from Çengel’s Thermodynamics book (7th ed)
Exercise from Çengel’s Thermodynamics
Author
Fábio P. Fortkamp
Published
March 17, 2022
This is exercise 16-89 from [1]: a mixture of 1 mol of , 2 mols of and 5 mols of is heated up to 2200 K and 5 atm of pressure. The final composition will have the formation of as well; what is the equilibrium composition, and is it reasonable to assume there will be no in the final composition?
I teach several classes on heat engines, steam generators and internal combustion engines, and for me the prime application of chemical thermodynamics and equilibrium composition is emissions. For a given combustion reaction, will pollutants such as and be formed? How much of them? The exercise explained above is a nice example of such calculations.
All calculations below assume all components are ideal gases.
First, we need to write the reaction:
where the unknowns form a vector to be found with an appropriate system of equations. Since we have three elements (), or equivalently ), we can write three mass balances:
For hydrogen gas:
For oxygen gas:
For nitrogen gas:
(Do you have any doubts on why these equations are as such?)
One missing equation has to be determined from equilibrium considerations. Looking at tables of equilibrium constants, I posit that the free hydrogen gas is formed by dissociation:
whose equilibrium constant at 2200 K is .
The definition of equilibrium coefficient for this latter equation is [1]:
where the are the stoichiometric coefficients in the dissociation equation, the are the real molar contents in the actual system where the dissociation occur, and is the pressure in atm:
Take a minute and see if you can understand this equation. It took me almost an hour to properly understand it.
The vector of unknowns then is the solution of a 4-dimensional function, and this problem can be solved numerically with R:
Keep in mind that I had to tweak this code until it worked. For instance, if you write the fourth equation in terms of logarithms, and not with exponentials as I did, you might have some numerical problems (try!). Also, the solution is sensitive to initial conditions; the final solution makes sense, as oxygen and nitrogen are practically preserved and some of the water vapor in fact dissociates.
As for the underlying assumption: will there be in the final composition? The equilibrium constant for at 2200 K is . The dissociation constants from water vapor to and are very similar, and hence the reactions will occur in parallel, giving some amount of in the products, contrary to our assumptions. If you actually perform an experiment similar to this problem and encounter some errors in the final composition, this is a likely source of deviations.
The smaller the value of , the harder is for the reaction to occur; you can see from the above equations that this coefficient is a measure of how much products form from the reactants. Hence, for similar , the amount of and formed will also be similar.
References
[1]: Çengel, Y. A., & Boles, M. A. Termodinâmica (7 ed.). Porto Alegre: AMGH, 2013.