Return to Web Labs at ReactorLab.net


Batch Chemical Reactor Simulation (by GPT-4.1 in GitHub Copilot, see prompt below, 6/11/2025)

A → B     Rate = k[A]     k = 0.115 s⁻¹
A: 10.00
B: 0.00
A (green)
B (blue)
Time (s) Concentration
Prompt: build a web page using vanilla javascrit that is dynamic simulation of a batch chemical reactor in which reactant A gets converted to reactant B at a rate that is proportional to the concentration of A in the reactor, display a visual that changes color with the concentration of A (color green) and concentration of B (color blue) and plots the concentration of A (starting at 10) and B (starting at zero) vs. time elapsed from user pressing a start button over time of 20 seconds at a rate where the conversion of A to B at 20 seconds is 90%
Comment:This is not as visually appealing as the other AI agents produced from the same prompt. Also, the simulation time span shown as 20 seconds is not 20 seconds of real time, as did the other agents, however I did not specify "real time" in the prompt.