BEE 3206 Chapter 2 - System Modelling
BEE 3206 Chapter 2 - System Modelling
Topics
1. What is Modelling
3. Mathematical Modelling
Analytical Solution
Simulation
Model
4 6 15
6 12
10
8 20
5
10 33
0
0 2 4 6 8 10
Valve Position (x)
u(t) y(t)
◼ One should know have complete knowledge of the system to derive a white box model.
Purely data-driven; no knowledge of internal Combines partial physical understanding with Fully physics-based; relies on known system
Definition
structure data equations
Input-output data only (e.g., regression, neural Theoretical equations with unknown Fundamental laws (e.g., Newton’s,
Model Basis
networks) parameters fitted using data Kirchhoff ’s, thermodynamics)
Transparency Opaque; hard to interpret Semi-transparent; some interpretability Fully interpretable and explainable
Often simpler to use, but can be complex if Medium complexity due to mix of theory and Can be very complex depending on the
Complexity
deep learning is involved estimation physical model
Depends heavily on quality and amount of Often accurate and generalizes better due to High accuracy if model structure and
Accuracy
training data structure parameters are correct
- Load forecasting using LSTM - HVAC control using thermal equations + - RLC circuit modeling using Kirchhoff ’s
Engineering Examples - Fault detection using SVM sensor data Laws
- System ID with ARX - Induction motor modeling - DC motor using Newton’s Laws
Plant Output
Input ℒ 𝑟 𝑡 =𝑅 𝑠
(system) c(t) ℒ 𝑐 𝑡 =𝐶 𝑠
r(t)
g(t) ℒ 𝑔 𝑡 =𝐺 𝑠
𝐿𝑎𝑝𝑙𝑎𝑐𝑒 𝑜𝑓 𝑂𝑢𝑡𝑝𝑢𝑡 𝐶 𝑠
R(s) G(S) C(s) 𝐺 𝑠 = =𝑅
𝐿𝑎𝑝𝑙𝑎𝑐𝑒 𝑜𝑓 𝐼𝑛𝑝𝑢𝑡 𝑠
𝑑2 𝑥(𝑡) 2
𝑑𝑥(0)
ℓ 2
= 𝑠 𝑋(𝑆) − 𝑥(0) −
𝑑𝑡 𝑑𝑡
𝑑𝑦(𝑡) 𝑑𝑦(𝑡)
Current through capacitor, 𝑖 𝑡 = 𝐶 = since C=1F
𝑑𝑡 𝑑𝑡
𝑑𝑦(𝑡)
𝑣𝑅 𝑡 = 𝑅. 𝑖 𝑡 = 1.
𝑑𝑡
𝑑𝑦(𝑡)
𝑢 𝑡 = + 𝑦 t = 𝑦 ′ + 𝑦(𝑡)
𝑑𝑡
Transfer Function
1
𝐺 𝑠 =
𝑠+1
K.V. Rop@SkillsArray Control Systems I 16
Example
Obtain the transfer function of a differential equation below. The equation gives the
relationship between the input x(t) and the output y(t).
𝑌 𝑠 3𝑠 − 1
𝐺 𝑠 = = 2
𝑋 𝑠 𝑠 + 3𝑠 + 2
◼ Where x is the input of the system and y is the output of the system.
◼ When order of the denominator polynomial is greater than the numerator polynomial
the transfer function is said to be ‘proper’.
K.V. Rop@SkillsArray Control Systems I 18
Summary
v R (t ) = i R (t )R v R (t )
Resistor i R (t ) = VR ( s ) = I R ( s ) R
R
1 dvc (t ) 1
Capacitor vc (t ) = ic (t )dt ic (t ) = C Vc ( s ) = Ic (s)
C dt Cs
diL (t ) 1
Inductor v L (t ) = L iL (t ) = v L (t )dt VL ( s ) = LsI L ( s )
dt L
Therefore,
1
− = −3
𝑅𝐶
𝑖𝑓 𝑅 = 1 𝑀Ω 𝑎𝑛𝑑 𝐶 = 333 𝑝𝐹
𝑈2 (𝑠) = 2𝐼(𝑠)
ii. U1(t) = 5t
𝑈2 𝑠 Solve this.
𝐼 𝑠 = Ans: 𝑈2 𝑡 = 10 − 10𝑒 −0.5𝑡
2
Transfer Function
𝑈2 𝑠 1 iii. U1(t) = 5t2
𝑈1 (𝑠) = +2 Solve this.
2 𝑠
Ans: 𝑈2 𝑡 = 20𝑡 − 40 + 40𝑒 −0.5𝑡
𝑈2 𝑠 s
=
𝑈1 𝑠 𝑠 + 0.5
𝑠𝑅𝐿 Z
𝑍= Vi(s) I(s) C Vo(s)
1 + 𝑠𝑅𝐿
𝑠𝑅𝐿
𝑍= 1 1
1 + 𝑠𝑅𝐿
L 𝑉𝑖 𝑠 = 𝐼 𝑠 𝑍 + 𝐼 𝑠 =𝐼 𝑠 𝑍+
𝑠𝐶 𝑠𝐶
Z
1
𝑉𝑜 (𝑠) = 𝐼(𝑠)
Vi(s) I(s) C Vo(s) 𝑠𝐶
1 1
𝑉𝑜 (𝑠) 𝐼(𝑠)
= 𝑠𝐶
= 𝑠𝐶
𝑉𝑖 (𝑠) 1𝐼 𝑠 𝑍 + 1 1
𝑍+
𝑠𝐶 𝑠𝐶
K.V. Rop@SkillsArray Control Systems I 30
Mechanical Systems
Mechanical systems are of two types:
✓ Translational ✓ Rotational
─ Linear Motion ─ Rotational Motion
❑ The motion of the body is along a straight line ❑ The motion of the body is about its own axis
or curved path
◼ If a force F is applied to a mass and it is displaced to x meters then the relation b/w
force and displacements is given by Newton’s law.
𝐹 = 𝑀𝑎(𝑡)
where, F – force, M – Mass, & a – acceleration x(t )
In terms of velocity
𝑑𝑣 𝑡 F (t )
𝐹𝑀 = 𝑀 M
𝑑𝑡
In terms of displacement
𝑑2 𝑥 𝑡
𝐹𝑀 𝑡 = 𝑀
𝑑𝑡 2
K.V. Rop@SkillsArray Control Systems I 33
2. Spring Force
◼ A spring stores the potential energy.
◼ The restoring force of the spring is proportional to
the displacement
◼ F ∝displacement
𝐹𝐾 𝑡 = 𝐾 න 𝑢 𝑡 dt
Door Vehicle
Stoppers Suspension
Bridge Flyover
Suspension Suspension
Mechanical Network
x1 k x2 At node x1
F = k ( x1 − x2 )
F ↑ M B At node x 2
0 = k ( x2 − x1 ) + Mx2 + Bx
2
𝑑
𝑇𝐼 𝑡 = 𝐽 𝜔 𝑡
𝑑𝑡
𝑑2
𝑇𝐼 𝑡 = 𝐽 2 𝜃 𝑡
𝑑𝑡
✓ 𝜔 𝑡 is the angular frequency and 𝜃 𝑡 is the angular displacement.
✓ Unit of torque = N.m
K.V. Rop@SkillsArray Control Systems I 40
2. Damping Torque 3. Spring Torque
◼ Damping Torque TD(t) is the product of ◼ Spring Torque Tθ(t) is the product of
damping coefficient B and angular velocity torsional stiffness and angular displacement
ω
𝑇𝐷 𝑡 = 𝐵𝜔 𝑡 𝑇𝜃 𝑡 = 𝐾𝜃
𝑑 𝑢𝑛𝑖𝑡𝑠 𝑜𝑓 𝐾 = 𝑁 − 𝑚/𝑟𝑎𝑑
𝑇𝐷 𝑡 = 𝐵 𝜃 𝑡
𝑑𝑡
1
C 2
1
2 T
1 k1 2 B2
3 B4
T J1 J2
B1 B3
1 k1 2 B2 3
T ↑ J1 B1 B3 J2 B4
1 2 3 4 5
Assume the system is Assume that the Draw the free body Apply newton’s las Rearrange the
in equilibrium system is given same diagram of forces of motion to each equation in suitable
arbitrary exerted on each mass diagram, using form to be solved
displacement if in the system convection that any
distributing forces force acting in the
are present direction of assumed
displacement is
positive
Solution
𝑑2 𝑑
𝐹 𝑡 = 𝑀 2 𝑥 𝑡 + 𝐵 𝑥 𝑡 + 𝐾𝑥 𝑡
𝑑𝑡 𝑑𝑡
𝐹 𝑠 = 𝑠 2 𝑀𝑋 𝑠 + 𝑠𝐵𝑋 𝑠 + 𝐾𝑋 𝑠 = 𝑋 𝑠 𝑠 2 𝑀 + 𝑠𝐵 + 𝐾
Input = Force, Output = resistance
𝑋 𝑠 1 1
𝑇𝐹 = = 2 =
𝐹 𝑠 𝑠 𝑀 + 𝑠𝐵 + 𝐾 20𝑠 2 + 30𝑠 + 20
Solution
For Mass 1 For Mass 2
𝑑2 𝑑2
Inertial Force 𝐹𝑀 𝑡 = −𝑀1 𝑑𝑡 2 𝑥1 𝑡 • Inertial Force 𝐹𝑀 𝑡 = −𝑀2 𝑑𝑡 2 𝑥2 𝑡
𝑑 𝑑
Damping force 𝐹𝐷 𝑡 = −𝐵1 𝑑𝑡 𝑥1 − 𝑥2 𝑡 • Damping force 𝐹𝐷 𝑡 = −𝐵2 𝑑𝑡 𝑥2 𝑡
Spring force 𝐹𝐾 𝑡 = −𝐾1 𝑥1 − 𝑥2 𝑡 • Spring force 𝐹𝐾 𝑡 = −𝐾2 𝑥2 𝑡
𝑑2 𝑑
𝑑2 𝑑 𝐹 𝑡 = 𝑀2 2 𝑥2 + 𝐵2 𝑥2 𝑡 + 𝐾2 𝑥2 𝑡
𝐹 𝑡 = 𝑀1 2 𝑥1 + 𝐵1 𝑥 − 𝑥2 𝑡 + 𝐾1 𝑥1 − 𝑥2 𝑡 𝑑𝑡 𝑑𝑡
𝑑𝑡 𝑑𝑡 1
𝑑2 𝑑 𝑑2 𝑑
𝑀1 𝑑𝑡 2 𝑥1 + 𝐵1 𝑑𝑡 𝑥1 − 𝑥2 𝑡 + 𝐾1 𝑥1 − 𝑥2 𝑡 = 𝑀2 𝑑𝑡 2 𝑥2 + 𝐵2 𝑑𝑡 𝑥2 𝑡 + 𝐾2 𝑥2 𝑡
Let
𝑑2 𝑑
𝐹 𝑡 = 𝑀 2 𝑥 𝑡 + 𝐵 𝑥 𝑡 + 𝐾𝑥 𝑡 𝑉 𝑠 = 𝑠𝜑 𝑠
𝑑𝑡 𝑑𝑡 1 1
In Laplace 𝐼 𝑠 = 𝑠𝐶𝑉 𝑠 + 𝑉 𝑠 + 𝑉 𝑠
𝐹 𝑠 = 𝑠 2 𝑀𝑋 𝑠 + 𝑠𝐵𝑋 𝑠 + 𝐾𝑋 𝑠 𝑅 𝑆𝐿
𝐹 𝑠 = 𝑋 𝑠 𝑠 2 𝑀 + 𝑠𝐵 + 𝐾
Solution
Force-voltage analogy Force-current analogy
B2 and B3=0 since wheels are frictionless
𝑇𝑚 = 𝐽ωሶ + 𝐵ω if
Power Transformation ef Lf Tm J ea
B θ
Torque-Current:
𝑇𝑚 = 𝐾𝑓 𝑖𝑓 𝜃(𝑠) 𝐾𝑓
where Kf: torque constant =
𝐸𝑓 (𝑠) 𝑠 𝐽𝑠 + 𝐵 (𝐿𝑓 𝑠 + 𝑅𝑓 )