## Constant Pressure Mole Reactor¶

This page shows the derivation of the governing equations used in Cantera's Constant Pressure Mole Reactor model.

More information on the Constant Pressure Mole Reactor class can be found here.

## Constant Pressure Mole Reactor¶

For this reactor model, the pressure is held constant. The energy equation is defined by the total enthalpy.

A Constant Pressure Mole Reactor is defined by the two state variables:

\(H\), the total enthalpy of the reactor's contents (in J)

\(n_k\), the number of moles for each species (in kmol)

Using the definition of the total enthalpy:

Noting that \(dp/dt = 0\) and substituting into the energy equation yields:

Where the total specific enthalpy \(h\) is defined as \(h = \sum_k{\bar{h}_k n_k}\). The enthalpy terms in equation 2 appear due to enthalpy flowing in and out of the reactor. The rate of heat transfer \(\dot{Q}\) can replace \(\frac{d U}{d t} + p \frac{dV}{dt}\) in the above equation due to the first law of thermodynamics, which states \(\dot{Q} = \dot{H}\) in a closed system where no work is done. Positive \(\dot{Q}\) represents heat addition to the system.

The moles of each species in the reactor's contents 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 `Wall()`

.
The rate of moles of species \(k\) 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. Reactor *Walls* are defined here.

Equations 1-2 are the governing equations for a Constant Pressure Mole Reactor.