Element balances determine the complete-conversion products
Choose one mole of methane as the feed basis, ideal dry air represented by oxygen plus 3.76 nitrogen molecules per oxygen molecule, and an air ratio \(\lambda\) relative to stoichiometric. For \(\lambda\geq1\) and complete conversion to carbon dioxide and water vapour, balance carbon, hydrogen, oxygen and nitrogen separately:
This balances atoms even though individual chemical species are created and consumed. At \(\lambda=1.3\) the products include 0.6 mol oxygen and 9.776 mol nitrogen per mole of fuel. The equivalence ratio is \(1/\lambda\) for this feed. If oxygen is deficient, the assumed set of products cannot satisfy these balances with nonnegative amounts.
Use a common reference for chemical and sensible energy
In steady adiabatic operation without shaft work or appreciable kinetic-energy change the inlet and outlet enthalpy flows are equal. For an ideal gas write \(h_i(T)=\Delta h^\circ_{f,i}(T_r)+\int_{T_r}^T c_{p,i}(u)du\). Elements in their reference states have zero standard formation enthalpy. Water vapour and liquid water have different formation enthalpies. Use the product phase appearing in the balance.
Use feeds at 298 K and an illustrative heat release of 802.3 kJ/mol of methane for vapour water. Take constant mean product heat capacities 51, 42, 35 and 33 J/(mol K) for carbon dioxide, water, oxygen and nitrogen, respectively. For stoichiometric air the total is \(51+2(42)+7.52(33)=383.16\) J/K per mole of fuel. The resulting estimate is 2392 K. With 30% excess air the sum rises to 478.61 J/K and the estimate falls to 1974 K. Both are deliberately conditional on constant averaged heat capacities and the assumed product set.

Close energy and composition together
At high temperature allow the product reaction \(\mathrm{CO_2}\rightleftharpoons\mathrm{CO}+\tfrac12\mathrm{O_2}\) to proceed by extent \(\xi\). Replace carbon dioxide by \(1-\xi\), add \(\xi\) carbon monoxide, and add \(\xi/2\) oxygen. For ideal gases define \(a_i=y_i p/p^\circ\). Chemical equilibrium and the energy balance are now two equations for \(T\) and \(\xi\):
Dissociation stores energy in chemical form, altering temperature and oxygen content. With one illustrative reaction the calculation isolates that effect. A quantitative high-temperature property model requires all important species, pressure and temperature-dependent thermochemical data. The physical root must have nonnegative species amounts.
Is there heat crossing the wall?
In this adiabatic model wall heat transfer is zero. Formation enthalpies carry the chemical energy with the flowing matter. Adding a separate fuel heating value to a balance that already includes formation enthalpies counts the same conversion twice.
Solve two independent reactions and the energy equation numerically
Use the preceding methane basis with stoichiometric air, at 298.15 K and initially 1 bar. Permit the carbon reaction above with extent \(x\) and the water dissociation \(\mathrm{H_2O}\rightleftharpoons\mathrm{H_2}+\tfrac12\mathrm{O_2}\) with extent \(y\). The product amounts in the order carbon dioxide, carbon monoxide, steam, hydrogen, oxygen and nitrogen are
These amounts preserve all four elemental inventories for any admissible pair. At an air ratio above one, add \(2(\lambda-1)\) mol oxygen and use \(7.52\lambda\) mol nitrogen. Both reactions share the same oxygen activity. Solving them as independent single-reaction mixtures would give two incompatible oxygen partial pressures.
In the stated species order use standard formation enthalpies \((-393.52,-110.53,-241.83,0,0,0)\) kJ/mol and standard entropies \((213.79,197.66,188.84,130.68,205.15,191.61)\) J/(mol K) at \(T_r=298.15\) K. For this pedagogical approximation use constant mean heat capacities \((51,33,42,31,35,33)\) J/(mol K) over the whole interval. The inlet formation enthalpy is −74.87 kJ per mole of methane. The common pressure reference is 1 bar. For each species integrate \(c_p\) for enthalpy and \(c_p/T\) for entropy. With reaction stoichiometric vectors \(\nu_j\), compute
Enforce \(\sum_i\nu_{ji}\ln[(n_i/\sum n)(p/p^\circ)]-\ln K_j=0\) for both reactions and \(\sum n_i h_i-H_{in}=0\) for energy. The notebook bounds \(x\) between zero and one and \(y\) between zero and two. It scales the energy residual by 100 kJ and verifies both equilibrium residuals and the atomic balances independently. At 1 bar the solution has \(x=0.11117\), \(y=0.03649\) mol and \(T=2286.01\) K, about 106 K below the corresponding complete-conversion estimate. Products contain 0.07383 mol oxygen per mole of methane even though the feed was stoichiometric.
Interactive experiment · Change the pressure and air ratio of an adiabatic mixture
Move the pressure slider and compare the recomputed equilibrium temperature with the complete-conversion curve. The air-ratio slider places an operating point on that curve and reports the two reaction extents. Every update solves the same two chemical-equilibrium equations and enthalpy balance specified above, using damped Newton steps in the browser. A bounded composition parametrisation keeps all species amounts positive.
At stoichiometric feed, raise pressure from 1 to 5 bar and explain why both dissociation reactions are suppressed: each increases the total number of gas molecules. Now add excess air and identify where dilution dominates the temperature change. The readout includes a residual check on the solved equations. The fixed mean heat capacities and six-species product set are deliberately limited thermochemical assumptions, shared with the downloadable OneSimulation model.
Continue in the OneSimulation notebook · Download its Python model
OneSimulation experiment · Air ratio and total pressure change the temperature of the six-species adiabatic equilibrium mixture
Run the notebook with OneSimulation 0.2.0, NumPy, SciPy and Matplotlib. Change the input data and compare your run with the recorded result.
"""Solve a two-reaction, six-product adiabatic equilibrium model for a methane-air stream."""
import numpy as np
import matplotlib.pyplot as plt
from onesim.numerics.nonlinear import LeastSquares
# Species order: CO2, CO, H2O(g), H2, O2, N2. Reference state 298.15 K and 1 bar.
reference = 298.15
gas_constant = 8.314462618 # J/(mol K)
hf = 1000*np.array([-393.52, -110.53, -241.83, 0.0, 0.0, 0.0]) # J/mol
entropy_ref = np.array([213.79,197.66,188.84,130.68,205.15,191.61]) # J/(mol K)
cp = np.array([51.,33.,42.,31.,35.,33.]) # constant teaching-model mean heat capacities
nu = np.array([[-1.,1.,0.,0.,0.5,0.], [0.,0.,-1.,1.,0.5,0.]])
element_counts = np.array([[1,1,0,0,0,0], [0,0,2,2,0,0],
[2,1,1,0,2,0], [0,0,0,0,0,2]])
inlet_enthalpy = -74870.0 # J per mole methane, with all reactants at 298.15 K
def equilibrate(air_ratio, pressure_bar):
complete = np.array([1.,0.,2.,0.,2*(air_ratio-1),7.52*air_ratio])
def residual(state):
extents, temperature = state[:2],state[2]
moles = complete + extents @ nu
enthalpies = hf + cp*(temperature-reference)
entropies = entropy_ref + cp*np.log(temperature/reference)
log_k = -(nu @ (enthalpies-temperature*entropies))/(gas_constant*temperature)
log_q = nu @ np.log(pressure_bar*moles/moles.sum())
return np.r_[log_q-log_k, (moles @ enthalpies-inlet_enthalpy)/1e5]
optimum = LeastSquares(options={"gtol":1e-13,"xtol":1e-13,"ftol":1e-13}).solve(
residual,[0.06,0.04,2200.0], bounds=([1e-12,1e-12,500.],[1-1e-12,2-1e-12,3500.]))
assert np.max(np.abs(optimum.fun)) < 1e-8
moles = complete + optimum.x[:2] @ nu
assert np.allclose(element_counts @ moles, element_counts @ complete)
return optimum.x, moles
for pressure in [1.,5.]:
result, moles = equilibrate(1.0, pressure)
print(f"{pressure:.0f} bar: T = {result[2]:.2f} K, extents = {result[0]:.5f}, {result[1]:.5f} mol")
print("product moles",np.round(moles,5))
ratios = np.linspace(1.0, 1.4, 30)
fig,ax = plt.subplots(figsize=(6.4,3.7),layout="constrained")
for pressure in [1.,5.]:
temperature = [equilibrate(r,pressure)[0][2] for r in ratios]
ax.plot(ratios,temperature,label=f"Two reactions, {pressure:g} bar")
complete_temp = reference + 802310/(51+2*42+2*(ratios-1)*35+7.52*ratios*33)
ax.plot(ratios,complete_temp,"--",label="Complete conversion")
ax.set(xlabel="Air ratio",ylabel="Adiabatic equilibrium temperature (K)")
ax.legend()
plt.show()Reference run
1 bar: T = 2286.01 K, extents = 0.11117, 0.03649 mol product moles [0.88883 0.11117 1.96351 0.03649 0.07383 7.52 ] 5 bar: T = 2319.34 K, extents = 0.07711, 0.02403 mol product moles [0.92289 0.07711 1.97597 0.02403 0.05057 7.52 ]

At 5 bar the computed extents are 0.07711 and 0.02403 mol. Reconstruct the oxygen amount and explain why the new temperature, 2319.34 K, is higher.
Worked solution
The released oxygen is \((0.07711+0.02403)/2=0.05057\) mol. Both reactions increase the mole count. At higher pressure their equilibrium extents shrink, leaving more energy as sensible enthalpy. The difference between 2286 and 2319 K follows from the model, not a direct pressure dependence of ideal-gas species enthalpy.
How could this model approach a thermochemical-table calculation?
Replace the constant heat capacities by temperature-dependent species functions with a common reference, then enlarge the allowed product set to include radical species when required. The elemental constraints and energy residual still apply. The present six-species answer is reproducible for its named property law.
Reference gas data · NIST carbon dioxide · carbon monoxide · water · hydrogen · oxygen · nitrogen · methane.
Exercises on model closure
At \(\lambda=1.3\) preheat all feed gases so their combined sensible inlet enthalpy rises by 20 kJ per mole of methane. Estimate the temperature change.
Worked solution
Holding the product composition and heat capacities fixed gives \(20000/478.61=41.8\) K of additional temperature rise. At equilibrium the reaction extent changes and this simple ratio is only an initial estimate.
In an ideal-gas equilibrium calculation, increase total pressure while holding \(T\) and composition momentarily fixed. Which way does the dissociation quotient move?
Worked solution
The net mole change is +1/2, so the quotient scales as \(p^{1/2}\). It rises above its original equilibrium value, favouring recombination. The coupled adiabatic temperature must then be solved again.
Further reading · Çengel, Boles and Kanoğlu, Thermodynamics: An Engineering Approach, 10th ed., Chapters 16–17.