None Notebook

This notebook contains material from CBE30338; content is available on Github.

< 3.5 One Compartment Pharmacokinetics | Contents | Tag Index | 3.7 Interacting Tanks >

Open in Colab

Download

3.6 Second Order Models

A standard form for a generic second-order model for a stable linear system is given by

$$\tau^2\frac{d^2y}{dt^2} + 2\zeta\tau\frac{dy}{dt} + y = K u$$

where $y$ and $u$ are deviation variables. The parameters have a generic interpretation that are commonly used to describe the qualitative characteristics of these systems.

Parameter Units Description
$K$ $\frac{\mbox{units of } y}{\mbox{units of }u}$ Steady State Gain
$\tau \gt 0$ time Time Constant
$\zeta \geq 0$ dimensionless Damping Factor

The standard form assumes that a zero input (i.e, $u(t) = 0$) results in a zero response ($y(t) = 0$). In practice, the nominal or quiescent value of $y$ or $u$ may different from zero. In that case we would write

$$\tau^2\frac{d^2y}{dt^2} + 2\zeta\tau\frac{dy}{dt} + y - y_{ref} = K\left(u(t) - u_{ref}\right)$$

where $u_{ref}$ and $y_{ref}$ represent constant reference values.

3.6.1 Step Response

The step response corresponds to a system that is initially at steady-state where $u = u_{ref}$ and $y = y_{ref}$. At time $t=0$ the input is incremented by a constant value U, i.e. $u = u_{ref} + U$ for $t \geq 0$. The subsequent response $y(t) - y_{ref}$ is the step response.

Second order linear systems have elegant analytical solutions expressed using exponential and trignometric functions. There are four distinct cases that depend on the value of the damping factor $\zeta$:

3.6.1.1 Overdamped ($\zeta > 1$)

An overdamped response tends to be sluggish, and with a potentially a large difference in time scales $\tau_1$ and $\tau_2$. The geometric mean of $\tau_1$ and $\tau_2$ is $\tau$. The value of $\zeta$ determines the differences.

$$y(t) = y_{ref} + KU\left(1 - \frac{\tau_1e^{-t/\tau_1} - \tau_2e^{-t/\tau_2}}{\tau_1 - \tau_2}\right)$$

where $\tau_1$ and $\tau_2$ are found by factor the polynomial

$$\tau^2s^2 + 2\zeta\tau s + 1 = (\tau_1s + 1)(\tau_2s + 1)$$

For $\zeta \geq 1$ the solutions are given by

\begin{align} \tau_1 & = \frac{\tau}{\zeta - \sqrt{\zeta^2-1}} \\ \tau_2 & = \frac{\tau}{\zeta + \sqrt{\zeta^2-1}} \end{align}

3.6.1.2 Critically Damped ($\zeta = 1$)

$$y(t) = y_{ref} + KU\left[1 - \left(1 + \frac{t}{\tau}\right)e^{-t/\tau}\right]$$

3.6.1.3 Underdamped ($0 \lt \zeta \lt 1$)

One version of the solution can be written

$$y(t) = y_{ref} + KU\left(1 - e^{-\zeta t/\tau}\left[\cos\left(\frac{\sqrt{1-\zeta^2}}{\tau}t\right) + \frac{\zeta}{\sqrt{1-\zeta^2}}\sin\left(\frac{\sqrt{1-\zeta^2}}{\tau}t\right)\right] \right)$$

This can be expressed a bit more compactly by introducing a frequency

$$\omega = \frac{\sqrt{1-\zeta^2}}{\tau}$$

which results in

$$y(t) = y_{ref} + KU\left[1 - e^{-\zeta t/\tau}\left(\cos\left(\omega t\right) + \frac{\zeta}{\sqrt{1-\zeta^2}}\,\sin\left(\omega t\right) \right)\right]$$

3.6.1.4 Undamped ($\zeta = 0$)

Finally, there is the special case of an undamped oscillation

$$y(t) = y_{ref} + KU\left[1 - \cos\left(\omega t\right) \right]$$

where $\omega = 1/\tau$.

3.6.2 Simulation

A second-order differential equation can be simulated as a system of two first order differential equations. The key is to introduce a new variable $v = \frac{dy}{dt}$.

$$\begin{align*} \frac{dy}{dt} & = v \\ \frac{dv}{dt} & = -\frac{1}{\tau^2}(y-y_{ref}) - \frac{2\zeta}{\tau}v + K\left(u(t)-u_{ref}\right) \end{align*}$$

3.6.3 Performance Indicators for Underdamped Systems

For an underdamped second order system, the desired performance metrics are given by the following by formulas in the following table.

Quantity Symbol Expression/Value
Rise Time $t_r$ Time to first SS crossing
Time to first peak $t_p$ $\frac{\pi\tau}{\sqrt{1-\zeta^2}}$
Overshoot OS $\exp\left(-\frac{\pi\zeta}{\sqrt{1-\zeta^2}}\right)$
Decay Ratio DR $\exp\left(-\frac{2\pi\zeta}{\sqrt{1-\zeta^2}}\right)$
Period $\frac{2\pi\tau}{\sqrt{1-\zeta^2}}$
Setting Time $t_s$ Time to +/- 5% of SS

3.6.4 Estimating Parameters for an Underdamped System

3.6.4.1 Starting with a Physical Model

A dynamical model for a u-tube manometer is given by

$$\frac{d^2h'}{dt^2} + \frac{6\mu}{R^2\rho}\frac{dh'}{dt} + \frac{3}{2}\frac{g}{L} h' = \frac{3}{4\rho L} p'(t)$$

where $h'$ is the liquid level displacement from an equilibrium position due to a pressure difference $p'(t)$.

Parameter Symbol
radius $R$
liquid length $L$
gravity $g$
density $\rho$
viscosity $\mu$

What is the gain $K$? Time constant $\tau$? Damping factor $\zeta$? How would choose the radius for the fastest response without overshoot?

3.6.4.2 Starting with a Step Response

Underdamped systems have clearly identifiable and measureable characteristics that can be used to identify parameters $K$, $\tau$, and $\zeta$. One procedure, for example, is to execute a step response experiment. Then,

  1. Measure overshoot, then estimate damping factor $\zeta$ using a chart of of this equation (or by directly solving the equation for $\zeta$): $$OS = \frac{a}{b} = \exp\left(\frac{-\pi\zeta}{\sqrt{1-\zeta^2}}\right)$$
  2. Measure time-to-first-peak $t_p$. Given $t_p$ and $\zeta$, solve for $$\tau = \frac{t_p}{\pi}\sqrt{1 - \zeta^2}$$ Alternatively, given period $P$, $$\tau = \frac{P}{2\pi}\sqrt{1 - \zeta^2}$$

< 3.5 One Compartment Pharmacokinetics | Contents | Tag Index | 3.7 Interacting Tanks >

Open in Colab

Download