## Ideal Gas Constant Pressure Mole Reactor¶

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

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

## Ideal Gas Constant Pressure Reactor¶

An Ideal Gas Constant Pressure Mole Reactor is defined by the two state variables:

\(T\), the temperature (in K)

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

The energy equation in terms of temperature is necessary as we replaced enthalpy in the state vector with temperature. We develop the equation for temperature by writing the total enthalpy in terms of the molar enthalpy and moles of each species.

After some manipulations yields an equation for the temperature:

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 an Ideal Gas Constant Pressure Mole Reactor.