Proof-of-concept simulation of a one-dimensional Isothermal & Isobaric ammonia production reactor using a fourth-order Runge-Kutta method and Chart.js to solve a differential-algebraic system of equations. Possibly the first time a dynamic reactor simulation of this kind has been created in JavaScript. This project will be expanded to include more complex interactions and multiple reactions.
Reaction Equation: 0.5 N2 + 1.5 H2 ⇌ NH3
Inlet composition (must equal to 1): N2: H2: NH3:
[View source on CodePen]