Ideal Gas Control Volume Mole Reactor#
An ideal gas control volume mole reactor, as implemented by the C++ class
IdealGasMoleReactor and available in Python as the IdealGasMoleReactor
class. It is defined by the state variables:
\(T\), the temperature (in K)
\(V\), the reactor volume (in m3)
\(n_k\), the number of moles for each species (in kmol)
Equations 1-3 are the governing equations for an ideal gas control volume mole reactor.
Volume Equation#
The reactor volume can change as a function of time due to the motion of one or more walls:
Where \(f_w = \pm 1\) indicates the facing of the wall (whether moving the wall increases or decreases the volume of the reactor), \(A_w\) is the surface area of the wall, and \(v_w(t)\) is the velocity of the wall as a function of time.
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:
Energy Equation#
In the case of the ideal gas control volume mole reactor model, the reactor temperature \(T\) is used instead of the total internal energy \(U\) as a state variable. For an ideal gas, we can rewrite the total internal energy in terms of the species moles and temperature:
and differentiate it with respect to time to obtain:
Substituting this into the energy equation for the control volume mole reactor (3) yields an equation for the temperature: