Repeated dosing: timeline and compartment flow (2D)

Illustrative drug, educational only, not medical advice: follow every dose through gut, body and clearance on a timeline.

Switch to 3D

Presets

Playback

Dosing and drug

Model check

The science

Illustrative drug, not medical advice. This is a teaching model of a made-up drug with round-number parameters. It is not a dosing guide, and the green window is an invented range in mg/L, not a real therapeutic range. Real dosing decisions belong to a clinician or pharmacist.

Model: one compartment, first-order everything

The body is one well-mixed volume V. Oral drug waits in a gut depot and moves into the body at rate ka; the body loses drug at rate k = CL/V. dAg/dt = -ka Ag, dAb/dt = ka Ag - k Ab, dAe/dt = k Ab, concentration C = Ab/V, half-life ln2 / k. Each dose is an instantaneous event (IV: into the body; oral: F x dose into the gut). This page uses exactly the solver of the 3D page.

Closed forms used as checks

  • One IV dose C = (D/V) e^(-k t); one oral dose (Bateman) C = F D ka / (V (ka - k)) (e^(-kt) - e^(-ka t)). Summing shifted single-dose curves is exact for a linear system, so it checks the RK4 integrator.
  • Accumulation R = 1/(1 - e^(-k tau)); IV steady peak (D/V) R, trough peak x e^(-k tau). Average level F D / (CL tau). About 90 % of steady state after 3.32 half-lives.
  • New in 2D: since dAe/dt = CL x C, the eliminated amount equals CL times the area under the curve, so the shaded area on the timeline can be checked by the trapezoid rule.

What the 2D views show

Top: tanks for gut depot, body and eliminated drug, arrows scaled by the instantaneous flux. Below: a swimlane of dose events (a red cross marks a skipped dose) above the concentration curve with the shaded area under the curve up to the playhead. Graphs: phase plane dC/dt against C (a closed loop at steady state), stacked amounts (their sum is the drug actually given), and steady-state levels against the dosing interval.

Simplifications

Real drugs may need several compartments, saturable clearance, protein binding, food effects and variable adherence. Parameters are illustrative orders of magnitude; check a reference before relying on any number.

...
Phase plane: dC/dt vs C
Where the drug is: stacked amounts
Steady-state level vs dosing interval
Made with 🟠 Blender