Ideal Gas Constant Pressure Mole Reactor#
A constant pressure mole reactor using temperature as a state variable, as implemented
by the C++ class IdealGasConstPressureMoleReactor and available in Python as the
IdealGasConstPressureMoleReactor class. It is defined by the state
variables:
\(T\), the temperature (in K)
\(n_k\), the number of moles for each species (in kmol)
Equations 1 and 2 below are the governing equations for this reactor model. While the class name is historical, this formulation is applicable to non-ideal equations of state as well.
Species Equations#
The moles of each species in the reactor changes as a result of flow through the reactor’s inlets and outlets, and production of homogeneous gas phase species and reactions on the reactor surfaces. The rate at which species \(k\) is generated through homogeneous phase reactions is \(V \dot{\omega}_k\), and the total rate at which moles of species \(k\) changes is:
Where the subscripts in and out refer to the sum of the corresponding property over all inlets and outlets respectively. A dot above a variable signifies a time derivative.
Energy Equation#
Writing the first law for an open system gives:
where positive \(\dot{Q}\) represents heat addition to the system and \(\hat{h}\) is the molar enthalpy of the reactor’s contents.
Differentiating the definition of the total enthalpy, \(H = U + pV\), with respect to time gives:
Noting that \(dp/dt = 0\) and substituting into the energy equation yields:
In this reactor model, the reactor temperature \(T\) is used as a state variable instead of the total enthalpy \(H\). For a general equation of state, write:
At constant pressure, applying the chain rule gives:
where \(N\) is the total number of moles, \(\hat{c}_p\) is the mixture molar heat capacity, and \(\bar{h}_k\) are the partial molar enthalpies. Making this substitution yields:
Rearranging and simplifying gives the final energy equation: