Return to Web Labs at ReactorLab.net


Batch Chemical Reactor Simulation (by v0.dev, see prompt below, 6/11/2025)

Reactor Contents
Concentration A: 10.00
Concentration B: 0.00
Time: 0.00 s

Simulation Parameters:

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: v0 did a pretty good job with a short prompt. The color change is progressive from bottom up since I didn't specify the reactor is well-mixed but the effect is pleasing artistically, haha.