Return to Web Labs at ReactorLab.net
(by Claude Sonnet 4, see prompt & comment below, 6/18/2025)
Comment: This was an experiment to see if AI could replicate the
reactor on ReactorLab's Home Page, with the exception of the temperature setting.
The AI did a reasonably good job with a few exceptions.
I forgot to specify a first-order reaction but apparently
that is what it gave me, in addition to plotting the fill and empty phases.
There is an unexpected abrupt color change at the start of reaction
before the expected gradual color change with time. For some unknown reason, it states a
temperature of 25 C and a pressure of 1 atm.
-------
Prompt: make a web page with a simulation of a chemical batch
reactor. Have 3 buttons: fill, react, empty. When the fill button is clicked blue
reactant liquid starts to fill a reactor image from the bottom up to 90% full
and then stops over a time span of 10 seconds. When the react button is clicked,
reaction starts and the blue reactant starts to turn toward red as the reaction
proceeds to 99% completion over a simulated and real time space of 15 seconds.
Plot the amount of reactant with a blue line and the amount of red product in
the reactor with a red line versus time. When the empty button is clicked,
the contents of the reactor leave the reactor over a time span of 10 seconds and
the liquid level in the tank lowers until the tank is empty.