Professional Documents
Culture Documents
2014 3P4 Assignment 3 Solutions
2014 3P4 Assignment 3 Solutions
Assignment 3
Kevin Dunn, kevin.dunn@mcmaster.ca Due date: 03 February 2014
Assignment objectives: understand how to work with nonlinear systems; how to model time delays; further
experience with transfer functions and block diagrams. Getting some practice for the midterm.
Question 1 [10]
Consider the system from the previous assignment. It is a CSTR where the reaction A −→ B is occurring. You do not
have to derive the component material balance, i.e., the differential equation in the figure.
Using the above nonlinear model, create a linearized model and find the Laplace transform representation of it. You
′ ′
will need to create deviation variables 𝐶𝐴 for outlet concentration, and 𝐶𝐴0 for inlet concentration. The transfer
′ ′
function will relate the outlet concentration 𝐶𝐴 to the incoming (input) concentration, 𝐶𝐴0 .
Solution
The single nonlinear term requires linearization. After subbing in the linearization, the ODE will be:
𝑑𝐶𝐴 𝑘1 𝐶𝐴,𝑠 𝑉 𝑘1
𝑉 = 𝐹 𝐶𝐴,0 − 𝐹 𝐶𝐴 − − (𝐶𝐴 − 𝐶𝐴,𝑠 )
𝑑𝑡 1 + 𝑘2 𝐶𝐴,𝑠 (1 + 𝑘2 𝐶𝐴,𝑠 )2
Writing the above equation at steady state, and subtracting, we see the 3rd term on the right side drop away, and we
have deviation variables:
′
𝑑𝐶𝐴 ′ ′ 𝑉 𝑘1
𝑉 = 𝐹 𝐶𝐴,0 − 𝐹 𝐶𝐴 − 𝐶′
𝑑𝑡 (1 + 𝑘2 𝐶𝐴,𝑠 )2 𝐴
′
𝑑𝐶𝐴 𝐹 ′ 𝐹 ′ ′
= 𝐶𝐴,0 − 𝐶𝐴 − 𝛼𝐶𝐴
𝑑𝑡 𝑉 𝑉
𝑘1
𝛼=
(1 + 𝑘2 𝐶𝐴,𝑠 )2
allowing us to write:
′
𝐶𝐴 (𝑠) 𝐹/𝑉
′ =
𝐶𝐴,0 (𝑠) 𝑠 + (𝐹/𝑉 + 𝛼)
Question: do you get the expected result when the reaction rate is zero, i.e. 𝛼 = 0?
Question 2 [8]
Question 3 [12]
2
1. Derive a dynamic model that relates the outlet concentration of species A, denoted by 𝐶A , to the inlet flow rate,
𝐹 , and inlet concentration, 𝐶A,in .
2. Use this model to derive the Laplace transform representation, linearizing where required.
Solution
This question was solved in detail in class on 03 February.
The ODE derived is:
𝑑𝐶𝐴 2
𝑉 = 𝐹 𝐶𝐴,0 − 𝐹 𝐶𝐴 − 𝑘𝑉 𝐶𝐴
𝑑𝑡
It requires linearized 3 nonlinear terms, as the question tells us that the inlet flow and inlet concentration vary with
time (the two inputs). The outlet concentration, 𝐶𝐴 , is also time varying.
The solution is:
′ 𝐹𝑠 𝐶𝐴,0,𝑠 − 𝐶𝐴,𝑠
𝐶𝐴 (𝑠) = 𝐶 ′ (𝑠) + 𝐹 ′ (𝑠)
𝑉 𝑠 + 𝐹𝑠 + 2𝑘𝑉 𝐶𝐴,𝑠 𝐴0 𝑉 𝑠 + 𝐹𝑠 + 2𝑘𝑉 𝐶𝐴,𝑠
Note: even if you derive the solution as two separate transfer functions (one keeping 𝐹 constant while varying 𝐶𝐴,0 ,
and the next one keeping 𝐶𝐴,0 constant while varying 𝐹 ), you still have to linearize the 𝐹 𝐶𝐴 term, which requires a
Taylor series expansion with two terms.
Question 4 [10]
𝑒−2𝑠
𝐺(𝑠) =
(𝑠2 + 2𝑠 + 5) (𝑠 + 2)
3𝑒−2𝑠
𝑦(𝑠) =
𝑠 (𝑠2 + 2𝑠 + 5) (𝑠 + 2)
1. The response’s stability is judged from the final value theorem, given that we are putting a stable input into the
system.
3
𝑦(𝑡) = lim [𝑠𝑦(𝑠)] = = 0.3
𝑠→0 10
Since the final value is finite, the response is judged to be stable.
We’ve not yet studied in class about the roots of the denominator (these tell us about stability), however if you
have read ahead (p 109), you could answer that since the system has one root of zero, and that the other roots
have negative real part (𝑠 = −2; and 𝑠 = −1 ± 2𝑖), that the system is stable.
3
2. The prior question showed the steady state value was 0.3
3. Again, you can observe that to find 𝑦(𝑡) would require a partial fraction expansion:
𝛼1 𝛼2 𝛼3
𝑦(𝑠) = + 2 +
𝑠 (𝑠 + 2𝑠 + 5) (𝑠 + 2)
that the second term would contribute oscillatory characteristics to the response; since from line 17, we would
have:
𝛼2 2
= 𝛼2′ 2
(𝑠2 + 2𝑠 + 5) 2
(𝑠 + 1) + 4
Note that the inversion would be of the form 𝑒−𝑡 sin(2𝑡), indicating the exponential gets damped down over
time (the 𝑒−𝑡 portion will force the sinusoid to have smaller and smaller amplitude).
We can also use this part of the question to judge stability, noting that all the terms in the inversion would steady
out to constant values as 𝑡 −→ ∞.
4. Putting all this information together, and noting that the response has a pure delay of 2 time units, the response
would be expected to have the following characteristics:
Any plot showing (i) a 2 unit delay, (ii), steading out at 0.3 and (iii) oscillations of some sort, will be deemed
correct.
END