Medical Device Simulators

Medical Device Simulators · Interactive Lab

Hemodialysis

Explore exponential solute removal in a fixed-volume, well-mixed single compartment and compare the analytic solution with a numerical approximation.

Model parameters

All volume units are converted to mL before calculation.

20 a.u.200 a.u.
0 mL/min350 mL/min
20 L70 L
30 min360 min
0.5 min20 min

Why these controls?

These are the dialysis session inputs: starting concentration, clearance K, distribution volume V, duration, and the numerical step size. Change them to see how removal depends on Kt/V, and how a large Euler step makes the numerical curve drift from the exact solution.

Calculated result

End of simulation

Analytic concentration at 240 min

30.12

arbitrary concentration units

Kt/V
1.200
dimensionless
Remaining
30.1%
of C₀
Euler result
29.66
Δt = 5 min
Relative error
1.514%
|ΔC| = 0.456

Scenario comparison

Concentration vs. time

0 mL/min350 mL/min

Scenario A: K 200 mL/min · V 40 L · Kt/V 1.200

Scenario B: K 280 mL/min · V 40 L · Kt/V 1.680

0601201802400255075100Time (min)Concentration (a.u.)
A analyticA EulerB analyticB Euler

Model & units

dC/dt = −(K/V)C
C(t) = C₀e−Kt/V

K is in mL/min, t in min, and V × 1,000 converts litres to mL. Therefore Kt/V is dimensionless.

Student checks

  • Set K = 0 and confirm that concentration remains C₀.
  • At t = 0, both methods start at C = C₀.
  • Create Kt/V = 1 and verify that about 36.8% remains.
  • Increase and decrease Δt to inspect Euler error.