## Constant Pressure Reactor¶

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

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

## Constant Pressure Reactor¶

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

A Constant Pressure Reactor is defined by the three state variables:

\(m\), the mass of the reactor's contents (in kg)

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

\(Y_k\), the mass fractions for each species (dimensionless)

The total mass of the reactor's contents changes as a result of flow through
the reactor's inlets and outlets, and production of homogeneous phase species
on the reactor `Wall()`

:

Where the subscripts *in* and *out* refer to the sum of the superscipted property
over all inlets and outlets respectively. A dot above a variable signifies a time
derivative. A Reactor *wall* is defined here.

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{h_k Y_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 rate at which species \(k\) is generated through homogeneous phase reactions is \(V \dot{\omega}_k W_k\), and the total rate at which species \(k\) is generated is:

The rate of change in the mass of each species is:

Expanding the derivative on the left hand side and substituting the equation for \(dm/dt\), the equation for each homogeneous phase species is:

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