CSTR Stability Analysis Template (Python Jupyter Notebook)
The CSTR Stability Analysis Template is a Python Jupyter Notebook resource designed to systematically analyze the steady-state and dynamic stability of Continuous Stirred-Tank Reactors (CSTRs) using numerical and analytical methods. It integrates reaction kinetics, mass and energy balances, and linearized stability theory to identify stable, unstable, and multiplicity regimes. The template enables engineers and students to visualize bifurcation diagrams, compute eigenvalues of the Jacobian matrix, and assess parametric sensitivity.
📖 Overview
📑 Key Components
🎯 Applications
- ✓ Identifying safe operating regions for exothermic catalytic reactors
- ✓ Teaching nonlinear dynamics and bifurcation theory in chemical engineering courses
- ✓ Supporting hazard and operability (HAZOP) studies for reactor design and control strategy development
📐 Key Formulas
Component Mass Balance
dC_i/dt = (F/V)(C_{i,in} - C_i) + r_i
Time rate of change of species concentration accounting for convection and reaction generation
Energy Balance
dU/dt = FρC_p(T_in - T) + (−ΔH_r)∑r_i V + Q_cool + W_s
Unsteady energy balance including enthalpy flow, heat of reaction, cooling/heating, and shaft work
Jacobian Matrix Element
J_{ij} = ∂f_i/∂x_j |_{x^*}
Partial derivative of the i-th ODE right-hand side with respect to the j-th state variable, evaluated at steady state x*