Steady-State Drug Accumulation Simulator (2D)
Interactive 2D two-compartment pharmacokinetics simulator: a real Runge-Kutta ODE integration of gut-depot absorption and plasma elimination, shown as flowing compartments and a scrolling concentration-time trace, with adjustable dose, interval, half-life and volume of distribution.
This 2D companion to the 3D steady-state accumulation simulator models the same real one-compartment oral pharmacokinetics, but computes it a genuinely different way: instead of evaluating the closed-form Bateman equation, it numerically integrates the two-compartment mass-balance ODEs — gut depot absorption and plasma elimination — step by step with 4th-order Runge-Kutta, the way an actual pharmacokinetic simulation engine works under the hood. Each administered dose is injected as an instantaneous bolus into the gut depot, then drains into the plasma compartment at a rate proportional to how much drug remains there, while the plasma compartment simultaneously empties by first-order elimination. Watch the two compartments fill and drain as flowing tanks, and the scrolling concentration trace climb toward its steady-state plateau. Adjust dose, dosing interval, elimination half-life and volume of distribution to see how a regimen's shape changes, and toggle a loading dose to reach the plateau almost immediately instead of after several half-lives.
Interactive 2D two-compartment pharmacokinetics simulator: a real Runge-Kutta ODE integration of gut-depot absorption and plasma elimination, shown as flowing compartments and a scrolling concentration-time trace, with adjustable dose, interval, half-life and volume of distribution.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install