diff --git a/cases/0016/index0.heta b/cases/0016/index0.heta new file mode 100644 index 0000000..d5c2689 --- /dev/null +++ b/cases/0016/index0.heta @@ -0,0 +1,37 @@ +/* + Create two compertement pharmacokinetic (PK) model with bolus injection. +*/ +// index.heta +t {units: hour}; + +// compartments +''' Central compartment volume ''' +Vd @Compartment {units: litre} .= 5.5; +''' Peripheral compartment volume ''' +V2 @Compartment {units: litre} .= 1; + +// species +''' Drug concentration in the central compartment ''' +C1 @Species {compartment: Vd, units: gram/litre} .= 0; +''' Drug amount in the peripheral compartment ''' +A2 @Species {compartment: V2, units: gram, isAmount: true} .= 0; + +// reactions +''' Drug elimination from the central compartment (first-order law) ''' +r1 @Reaction {actors: => C1, units: gram/hour} := CL * C1; +''' Drug transfer from the central to the peripheral compartment and back (first-order law) ''' +r2 @Reaction {actors: C1 <=> A2, units: gram/hour} := k12 * C1 * Vd - k21 * A2; + +// parameters +''' Drug clearance ''' +CL @Const {units: litre/hour} = 1e-1; +''' Intravenous drug dose ''' +Dose @Const {units: gram} = 1e-3; +''' Transfer rate from the central to the peripheral compartment ''' +k12 @Const {units: 1/hour} = 1e-1; +''' Transfer rate from the peripheral to the central compartment ''' +k21 @Const {units: 1/hour} = 1e-1; + +// Injection event +sw1 @TimeSwitcher { start: 0 }; +C1 [sw1]= Dose / Vd;