Lesson 5


1 Learning Objectives

By the end of this lesson students will be able to:

2 Compartment Models

Compartment models are also known as lumped models because we assume that the substance (mass) is evenly distributed, or “well-mixed” throughout the compartment.

Compartment models are often used in pharmacokinetics because they provide good estimates of the behavior of drugs within the body.

There are three implicit assumptions when using a compartment model:

  1. The volume of each compartment is constant.
  2. Any mass entering the compartment is instantly well-mixed, or evenly distributed throughout the compartment.
  3. The rate of loss of mass from a compartment is proportional to the amount of mass within the compartment.

Here is a simple compartment model:

The way we write the DEs for these systems is to perform a mass balance on each compartment.

2.1 Example 1

Given: A compartment model in which the routes of clearance for radioactive iodine (I131) are uptake by the thyroid and excretion through urine.

k2=2k_2 = 2 sec1^{-1} and k1=4k_1 = 4 sec1^{-1}

Required: Find a transfer function that relates the injection of a dose to the mass of radioactive iodine (I131) tracer in the body: G(s)=MIMOIG(s) = \frac{M_{I}}{M_{OI}}

2.2 Student Example 1

Given: A two compartment model for the distribution of creatinine in the body. One compartment is blood plasma. The other compartment is the rest of the body.

k1=7k_{1} = 7 sec-1 Vp=2V_{p} = 2 L

k2=5k_{2} = 5 sec-1 VO=12V_{O} = 12 L

k3=3k_{3} = 3 sec-1

Required: The transfer function G(s)=COCinjG(s) = \frac{C_{O}}{C_{inj}} where COC_{O} is the concentration in compartment “other”. Use MATLAB to find the answer.

Solution

3 Fluid/Circuit Equivalents

Fluids are:

  1. liquid (hydraulic) - incompressible, or
  2. gas (pneumatic) - compressible

Fluid flow through blood vessels (or pipes, etc.) is analogous to current flow in electrical systems. Pressure is analogous to voltage. Because of the similarity, there is a fluid equivalent of Ohm’s law. We can use circuits as a way to model fluid flow behavior, even though we’re not dealing with electricity.

3.1 Resistance

Consider the pipe shown below and assume that fluid is flowing through it at a volumetric flow rate, QQ.

The volumetric flow rate creates a pressure drop, ΔP\Delta P, as it flows down the pipe, which has a resistance RLR_{L}. The resistance of the pipe depends on pipe geometry and fluid viscosity, μ\mu. The equation for calculating pipe resistance is

RL=128μLπd4[=]Pasm3R_{L} = \frac{128\mu L}{\pi d^{4}} [=] \frac{\mathrm{Pa \cdot s}}{\textrm{m}^3}

3.2 Capacitance

The change in volume of a container as fluid pressure changes is called fluid capacitance. It is a way to quantify the ability of the fluid system to store energy.

Fluid capacitance is calculated by

C=dVdP[=]m3PaC = \frac{dV}{dP} [=] \frac{\mathrm{m}^3}{\textrm{Pa}}

where dVdV is change in fluid volume and dPdP is change in fluid pressure.

Capacitance typically appears in one of three configurations:

The first two are easy to understand. What about the third?

The pressure in the bottom of an open tank changes as the height of the fluid changes and can be written as

P=ρgh+PatmP = \rho gh + P_{atm}

Converting to a differential format gives

dP=ρgdhdP = \rho gdh

Simplifying gives

C=dVdP=Adhρgdh=AρgC = \frac{dV}{dP} = \frac{Adh}{\rho gdh} = \frac{A}{\rho g}

The capacitance in fluid systems has the same relationship to pressure and flow that capacitance in electrical systems has to current and voltage:

3.3 Inductance (Inertance)

Fluid inertance is analogous to inductance in circuits. Moving fluid has inertia.

Pinch hose. Let go. Feel kick. Inertia.

The equation for inertance is

L=dPdQ̇[=]Pas2m3L = \frac{dP}{d\dot{Q}} [=] \frac{\mathrm{Pa \cdot s}^2}{\textrm{m}^3}

where dPdP is change in pressure and dQ̇d\dot{Q} is change in time rate of volumetric flow rate.

The inertance in fluid systems has the same relationship to pressure and flow that inductance in electrical systems has to current and voltage.

3.4 Sources

In fluid systems, sources can be constant pressure (analogous to a voltage source) or constant volumetric flow rate (analogous to a current source).

3.5 Example 2

Given the hydraulic system shown below, find G(s)=H(s)Qin(s)G(s) = \frac{H(s)}{Q_{in}(s)}

Assume: C=R=1C = R = 1; g=9.81g = 9.81 m/s2; ρ=1000\rho = 1000 kg/m3

Hydraulic system for example 2.

3.6 Student Example 2

Given he hydraulic system shown below find G(s)=H2(s)Q(s)G(s) = \frac{H_2(s)}{Q(s)}

Assume: C=R=1C = R = 1; g=9.81g = 9.81 m/s2; ρ=1000\rho = 1000 kg/m3

Hydraulic system for student example 2.

Solution

4 The Big Picture

Recall the diagram for a control system: