One compartment with decay of substance, a first order process.
Model number: 0240
|Run Model: ||    Help running a JSim model.|
(JSim model applet may take 10-20 seconds to load.)
(See Comp1DecayPlus for more detailed treatment.)
A compartment model has a volume and a concentration of a substance. The product of the volume and the concentration is a quantity of material. The change in the quantity is described by mass balance equations.
The volume is usually designated as V, the concentration as C, and the amount of material as Q. The change in concentration, dQ/dt is governed by sources (which add material to Q) and sinks which subtract material from Q. A source will be a positive quantity. A sink will be a negative quantity. The change in Q can be written as
dQ/dt = d(V*C)/dt = C*dV/dt+V*dC/dt.Assuming V is constant,
dQ/dt = V*dC/dt.The ODE equation describing the first order decay process is given as
V*dC/dt = -G*Cwhich is usually rewritten as
dC/dt = -(G/V)*C,after dividing both sides by the volume. The term on the right hand side is a sink term. It is negative and removes material from the compartment.