Lecture 02 - Mathematical Modeling of a System
Lecture 02 - Mathematical Modeling of a System
Outline
• Introduction
• Types of Models
• Mathematical Modeling of
• Electrical Systems
• Mechanical Systems
• Transfer Functions
2
Types of Systems
• Static System: If a system does not change with time, it is called a
static system.
• Dynamic System: If a system changes with time, it is called a
dynamic system.
3
Model
• A model is a simplified representation or
abstraction of reality.
• Reality is generally too complex to copy
exactly.
• Much of the complexity is actually irrelevant
in problem solving.
4
What is Mathematical Model?
A set of mathematical equations (e.g., differential eqs.) that describes the input-
output behavior of a system.
Mathematical models of physical systems are key elements in the design and
analysis of control systems.
The dynamic behavior is generally described by ordinary differential equations.
The differential equations describing the dynamic performance of a physical system
are obtained by utilizing the physical laws of the process
What is a model used for?
• Simulation
• Prediction/Forecasting
• Prognostics/Diagnostics
• Design/Performance Evaluation
• Control System Design
Black Box Model
• When only input and output are known.
• Internal dynamics are either too complex or unknown.
Input Output
6
Grey Box Model
• When input and output and some information about the internal
dynamics of the system is known.
u(t) y(t)
y[u(t), t]
7
White Box Model
• When input and output and internal dynamics of the system is
known.
8
The differential equations describing the dynamic
performance of a physical system are obtained by
utilizing the physical laws of the process. This
approach is applied to mechanical, electrical, fluid
and thermodynamic systems.
The transfer function of a linear system is defined as the ratio of
the Laplace transform of the output variable to the Laplace
transform of the input variable, with all initial conditions assumed
to be zero.
The transfer function of a system represents the relationship
describing the dynamics of the system under consideration.
Basic Elements of Electrical Systems
V-I Relation
V-I Relation
Component Symbol (Frequency
(Time Domain)
Domain)
Resistor v R (t ) = iR (t )R VR ( s ) = I R ( s ) R
Capacitor 1 1
vc (t ) = ∫ ic (t )dt Vc ( s ) = Ic (s)
C Cs
di L (t )
Inductor v L (t ) = L VL ( s ) = LsI L ( s )
dt 14
Example#1
• The two-port network shown in the following figure has vi(t) as
the input voltage and vo(t) as the output voltage. Find the transfer
function Vo(s)/Vi(s) of the network.
1
vi ( t ) = i ( t ) R + ∫ i( t )dt
C
1
vo ( t ) = ∫ i( t )dt
C
15
Example
1 1
vi ( t ) = i ( t ) R + ∫ i( t )dt vo ( t ) = ∫ i( t )dt
C C
• Taking Laplace transform of both equations, considering initial
conditions to zero.
1 1
Vi ( s ) = I ( s ) R + I (s) Vo ( s ) = I (s)
Cs Cs
1
Vi ( s ) = I ( s )( R + ) CsVo ( s ) = I ( s )
Cs
16
1
Vi ( s ) = I ( s )( R + ) CsVo ( s ) = I ( s )
Cs
• Substitute I(s) in equation on left
1
Vi ( s ) = CsVo ( s )( R + )
Cs
Vo ( s ) 1
=
Vi ( s ) 1
Cs( R + )
Cs
Vo ( s ) 1
=
Vi ( s ) 1 + RCs
17
Example
• Find the transfer function G(S) of the following two port
network.
18
• Simplify network by replacing multiple components with their
equivalent transform impedance.
Z
Vi(s) I(s) C Vo(s)
19
Back to Example
L
Z
1 1 1
= +
Z R Ls
RLs
Z=
1 + RLs
20
Example
RLs
Z=
1 + LRLs
Z
1 1
Vi ( s ) = I ( s )Z + I (s) Vo ( s ) = I (s)
Cs Cs
21
Operational Amplifiers
Vout Z2 Vout Z2
=− = 1+
Vin Z1 Vin Z1
22
Example
• Find out the transfer function of the following circuit.
Vout Z2
=−
Vin Z1
23
Basic Types of Mechanical Systems
• Translational
• Linear Motion
• Rotational
• Rotational Motion
24
Basic Elements of Translational Mechanical Systems
Translational Spring
i)
Translational Mass
ii)
Translational Damper
iii)
25
Translational Spring
• A translational spring is a mechanical element that
can be deformed by an external force such that the
deformation is directly proportional to the force
applied to it.
Translational Spring
i)
Circuit Symbols
Translational Spring
26
Translational Spring
• If F is the applied force
x1
x2
• Or ( x1 − x2 ) is the deformation. F
F = Mx
28
Translational Damper
• When the viscosity or drag is not
negligible in a system, we often
model them with the damping
force.
F = Cx F = C ( x1 − x 2 )
Bridge Suspension
Flyover Suspension
31
Example
• Consider the following system (friction is negligible)
k
x
F
M
F = fk + fM
• Then the differential equation of the system is:
F = Mx + kx
• Taking the Laplace Transform of both sides and ignoring
initial conditions we get
F ( s ) = Ms 2 X ( s ) + kX ( s )
33
F ( s ) = Ms 2 X ( s ) + kX ( s )
• The transfer function of the system is
X (s) 1
=
F(s) Ms 2 + k
• if
M = 1000kg
k = 2000Nm −1
X (s) 0.001
= 2
F(s) s +2
34
Example
• Consider the following system
k
x
F
M
C
• Free Body Diagram
fk fC
M fM
F
F = f k + f M + fC
35
Differential equation of the system is:
F = Mx + Cx + kx
Taking the Laplace Transform of both sides and ignoring
Initial conditions we get
F ( s ) = Ms 2 X ( s ) + CsX ( s ) + kX ( s )
X (s) 1
=
F(s) Ms 2 + Cs + k
36
Example
• Consider the following system
Figure-1
f (t ) fM
X (s) 1
f (t ) = f k + f M + f B =
F(s) Ms 2 + Bs + k
38
Example
• Find the transfer function X2(s)/F(s) of the following system.
M2 M1
k2
F (t ) f M 2 f M1
F (t ) = f k1 + f k 2 + f M 2 + f B
0 = f k1 + f M 1 + f B
39
Basic Elements of Rotational Mechanical Systems
Rotational Spring
θ1
θ2
T = k (θ1 − θ 2 )
40
Basic Elements of Rotational Mechanical Systems
Rotational Damper
C
θ1
θ2 T
T = C (θ1 − θ2 )
41
Basic Elements of Rotational Mechanical Systems
Moment of Inertia
θ
J T
T = Jθ
42
Summary