2.mathematical Models in Control Systems
2.mathematical Models in Control Systems
𝑑𝑖
Mesh equation for this circuit is: 𝑣𝑖 = 𝑅𝑖 + 𝐿 𝑑𝑡 + 𝑣0
𝑑𝑣0
Substitute, the current passing through capacitor 𝑖 = 𝑐 in the above equation.
𝑑𝑡
𝑑𝑣0 𝑑2 𝑣0
𝑣𝑖 = 𝑅𝐶 + 𝐿𝐶 + 𝑣0
𝑑𝑡 𝑑𝑡 2
𝑑 2 𝑣0 𝑅 𝑑𝑣0 1 1
+ ( ) + ( ) 𝑣0 = ( )𝑣
𝑑𝑡 2 𝐿 𝑑𝑡 𝐿𝐶 𝐿𝐶 𝑖
The above equation is a second order differential equation.
1
Faculty of Computer System & Technologies
University of Computer Studies (Taunggyi) Modern Control Systems
Here, we represented an LTI system with a block having transfer function inside it. And this
block has an input X(s) and output Y(s).
Example
Previously, we got the differential equation of an electrical system as
𝑑 2 𝑣0 𝑅 𝑑𝑣0 1 1
2
+ ( ) + ( ) 𝑣0 = ( ) 𝑣𝑖
𝑑𝑡 𝐿 𝑑𝑡 𝐿𝐶 𝐿𝐶
Apply Laplace transform on both sides.
𝑠𝑅 1 1
𝑠 2 𝑉0 (𝑠) + ( 𝐿 ) 𝑉0 (𝑠) + (𝐿𝐶) 𝑉0 (𝑠) = (𝐿𝐶) 𝑉𝑖 (𝑠)
𝑅 1 1
{ 𝑠 2 + ( 𝐿 ) 𝑠 + 𝐿𝐶 } 𝑉0 (𝑠) = (𝐿𝐶) 𝑉𝑖 (𝑠)
1
𝑉0 (𝑠) 𝐿𝐶
=
𝑉𝑖 (𝑠) 𝑅 1
𝑠 2 + ( 𝐿 ) 𝑠 + 𝐿𝐶
Where,
vi(s) is the Laplace transform of the input voltage vi
vo(s) is the Laplace transform of the output voltage vo
The above equation is a transfer function of the second order electrical system. The transfer
function model of this system is shown below.
2
Faculty of Computer System & Technologies
University of Computer Studies (Taunggyi) Modern Control Systems
Here, we show a second order electrical system with a block having the transfer function inside
it. And this block has an input Vi(s) and an output Vo(s).
2.2. Differential Equation Modeling of Mechanical Systems
There are two types of mechanical systems based on the type of motion.
• Translational mechanical systems
• Rotational mechanical systems
If a force f is applied on a mass M and it displays distance x1in the direction of f and
𝑑2 𝑥 𝑑 2 𝑥2
distance x2 in the opposite direction, then 𝑓 = 𝑀 [ 𝑑𝑡 21 − ] as shown in the
𝑑𝑡 2
following figure.
3
Faculty of Computer System & Technologies
University of Computer Studies (Taunggyi) Modern Control Systems
4
Faculty of Computer System & Technologies
University of Computer Studies (Taunggyi) Modern Control Systems
• If i is the current through a resistor and v is the voltage drop in it, then v = Ri.
𝑑𝑖
• If i is the current through an inductor and v is the voltage developed in it, then 𝑣 = 𝐿 𝑑𝑡.
• If i is the current through a capacitor and v is the voltage developed in it, then v=
1
𝐶
∫ 𝑖𝑑𝑡.
𝑣
• If i is the current through a resistor and v is the voltage drop in it, then i = 𝑅.
• If i is the current through an inductor and v is the voltage developed in it, then i =
1
𝐿
∫ 𝑣𝑑𝑡.
𝑑𝑣
• If i is the current through a capacitor and v is the voltage developed in it, then i= 𝐶 𝑑𝑡 .
Two theorems are now presented that can be used to find the values of the time-domain
function at two extremes, t = 0 and t = ?, without having to do the inverse transform. In control,
we use the final-value theorem quite often. The initial-value theorem is less useful.
5
Faculty of Computer System & Technologies
University of Computer Studies (Taunggyi) Modern Control Systems
Differential equations:
1 𝑡
𝑉1 (𝑡) = 𝑅1 𝑖(𝑡) + 𝑅2 𝑖(𝑡) + ∫ 𝑖(𝑡) 𝑑𝑡
𝐶 0
1 𝑡
𝑉2 (𝑡) = 𝑅2 𝑖(𝑡) + ∫ 𝑖(𝑡) 𝑑𝑡
𝐶 0
Laplace transform:
1
𝑉1 (𝑠) = 𝑅1 𝐼(𝑠) + 𝑅2 𝐼(𝑠) + 𝐼(𝑠)
𝑠.𝐶
1
𝑉2 (𝑠) = 𝑅2 𝐼(𝑠) + 𝐼(𝑠)
𝑠.𝐶
Transfer function:
𝑉 (𝑠) 𝑅2 . 𝐶 .𝑠+1
𝐺(𝑠) = 𝑉2 (𝑠) =
1 (𝑅1 +𝑅2 )𝐶 .𝑠+1
----------------------------------------------------------------------------------------------------------------
Example: The Laplace equation for the charging current, i(t) of a capacitor arranged in series
𝑠𝐶
with a resistance is given by I(s) = . 𝐸(𝑠) . The circuit is connected to a supply voltage
1+𝑠𝑅𝐶
of E. If E=100 V, R=2 MΩ, C = 1 µF. Calculate the initial value of the charging current.
Solution:
Since, E =100 v(t)
Taking Laplace Transform, E (s) = 100/s
----------------------------------------------------------------------------------------------------------------
Example: A series circuit consisting of resistance R and inductance of L is connected to a d.c
supply voltage of E. Derive an expression for the steady-state value of the current flowing in
the circuit using final value theorem.
6
Faculty of Computer System & Technologies
University of Computer Studies (Taunggyi) Modern Control Systems
Solution:
The differential equation relating the current i(t) flowing in the circuit and the input voltage E
𝑑𝑖(𝑡)
is given by 𝐸 = 𝑅𝑖(𝑡) + 𝐿 𝑑𝑡
Taking Laplace transform of the equation yields,
E(s) = R I(s) + L [(sI(s) – i(0+) ) ]
Assume, i(0+) = 0
E(s) = R I(s) + Ls I(s)
----------------------------------------------------------------------------------------------------------------
Example: Write the differential equations for the following system with respect to position
and solve them using Laplace transform methods. Assume f(t) = F and that the mass slides on
a frictionless surface, x(0) = 0.
Solution:
𝑑 2 𝑥(𝑡) 𝑑𝑥(𝑡)
𝑓 (𝑡) = 𝑀 + 𝐵 + 𝐾. 𝑥(𝑡)
𝑑𝑡 2 𝑑𝑡
𝐹
= 𝑋(𝑠)
𝑠( 𝑀𝑠 2 + 𝐵𝑠 + 𝐾)
----------------------------------------------------------------------------------------------------------------
7
Faculty of Computer System & Technologies
University of Computer Studies (Taunggyi) Modern Control Systems
Example: Suppose we have a simple mass, spring, and damper problem. Find
1. The modeling equation of this system (F input, x output).
2. The transfer function. Let M = 1 kg b = 10 N s/m k = 20 N/m F = 1 N.
Solution:
1. The modeling equation of this system: 𝑀𝑥̈ + 𝑏𝑥̇ +̇ 𝑘𝑥 = 𝐹
2. The transfer function: taking the Laplace transform of the modeling equation, we get
̇
𝑀𝑠 2 𝑋(𝑠) + 𝑏𝑠 𝑋(𝑠)+𝑘 𝑋(𝑠) = 𝐹(𝑠)
𝑋(𝑠) 1
𝐺(𝑠) = =
𝐹(𝑠) 𝑀𝑠 2 + 𝑏𝑠 + 𝑘
𝑋(𝑠) 1
𝐺(𝑠) = = 2
𝐹(𝑠) 𝑠 + 10𝑠 + 20
----------------------------------------------------------------------------------------------------------------
Example: The plant consists of rotating mass with inertia J and a viscous friction b, a torque
T is applied to control the position of the mass.
1. Find the system model.
2. Find the transfer function.
Solution:
1. The modeling equation of this system: 𝐽𝜃̈ = 𝑇 − 𝑏𝜃̇
𝐽𝜃̈ + 𝑏𝜃̇ = 𝑇
𝜃̈ + 0.05𝜃̇ = 0.1𝑇
𝜃(𝑠) 0.1
= 2
𝑇(𝑠) 𝑠 + 0.05𝑠
----------------------------------------------------------------------------------------------------------------
8
Faculty of Computer System & Technologies