Professional Documents
Culture Documents
ECNG-3212 Lecture 02
ECNG-3212 Lecture 02
(ECNG-3212)
Tutorial - 2
Basics and Control System Modeling …
Goitom Tadesse
Ethiopian Defence University, College of Engineering
May 2024
1
Mathematical Modeling
❖ Modeling is the process of representing the behavior of a real
system by a collection of mathematical equations and logic.
❖ Models can be broadly categorized as either static or dynamic.
❖ In static model there is no energy transfer
❖ Systems that are static produce no motion, heat transfer, fluid
flow, or anything that changes.
❖ On the other hand a dynamic model has energy transfer that
results in power flow.
❖ In order to understand the behavior of systems, mathematical
models are required.
❖ Mathematical models are equations which describe the
relationship between the input and output of a system.
2
Mathematical Modeling …
• The basis for any mathematical model is provided by the
fundamental physical laws that govern the behavior of the
system.
• It is the process of representing a physical system
mathematically using natural laws:
3
Mathematical Modeling …
4
Mathematical Modeling …
Need for Mathematical Models
➢ Must have a quantitative mathematical model in order
to understand and control complex systems.
➢ Must have fundamental method for modeling many
physical systems:
o Mechanical
o Electrical
o Thermal
o Fluid Flow
o Electromechanical
o Biological, …, etc
5
Mathematical Modeling …
What will the model be used for?
❖Solutions of the differential and algebraic equations
allows system response and performance to analyze
and design.
❖The Laplace transformation will be applied to the
model to allow convenient manipulation and dynamic
analysis.
❖Input-output relationships for systems and
components will be obtained.
❖Controller models will be designed that can be
implemented in hardware.
6
Mathematical Modeling …
Steps
❑Understand the physical system and its components
❑ Make appropriate simplifying assumptions
❑ Use basic principles to formulate the mathematical
model
❑ Write differential and algebraic equations describing
the model
❑ Check the model for validity
7
Mathematical Modeling …
Techniques
Mathematical modeling of systems can be done in different
ways using direct physical laws, Finite Element Method or
System Identification technique etc...
❖ Using physical laws like Newton’s law, energy method, KVL,
KCL…etc;
❖ Finite Element Method uses the governing differential
equation to derive the elemental matrices;
❖ Assemble the elemental matrices to have the global matrices;
❖ Whereas System Identification technique uses actual system
stimulus and response data to predict the model;
❖ The stimulus signal frequency must include the frequencies of
interest for better modeling.
8
Differential Equations
Pierre-Simon
Laplace (1749–
1827)
12
Transfer Function …
֍ Laplace transform changes Differential Equations
into a set of algebraic equations which are easier to
solve & analyze.
L[ f (t )] = F ( s ) = − f (t )e dt
− st
0
1 + j
2 j − j
f (t ) = F ( s )e st ds
13
Transfer Function …
14
Common Laplace Transform Pairs
15
Transfer Function …
For
Hence,
16
Building Blocks
Systems can be made up from a range of building blocks.
Each building block is considered to have a single property
or function.
Example: an electric circuit system which is made up from
blocks which represent the behavior of resistance,
capacitance, and inductance respectively.
By combining these building blocks a variety of electrical
circuit systems can be built up and the overall input-
output relationship can be obtained.
A system built in this way is called a lumped parameter
system.
17
Mechanical System Building
Blocks
➢ Basic building block: spring, dashpots, and masses.
• Springs represent the stiffness of a system
• Dashpots represent the forces opposing motion, for
example frictional or damping effects.
• Masses represent the inertia or resistance to acceleration.
Mechanical systems does not have to be really made up of
springs, dashpots, and masses but have the properties of
stiffness, damping, and inertia.
All these building blocks may be considered to have a force
as an input and displacement as an output.
18
Examples of Mechanical Systems
Translational
◼ Linear Motion
Rotational
◼ Rotational Motion
19
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.
If F is the applied force
x1
x2
F
Then 𝑥1 is the deformation if 𝑥2 = 0
Or (𝑥1 − 𝑥2 ) is the deformation.
The equation of motion is given as
F = k ( x1 − x2 )
Where 𝑘 is stiffness of spring expressed in N/m
20
Translational Mass
Translational Mass
o Translational Mass is an
inertia element.
o A mechanical system without
mass does not exist.
o If a force F is applied to a
x(t )
mass and it is displaced to x
meters then the relation F (t )
M
between force and
displacements is given by
Newton’s law. F = M x
21
Translational Damper
• When the viscosity or drag is not negligible in a
system, we often model them with the damping force.
• All the materials exhibit the property of damping to
some extent.
• If damping in the system is not enough then extra
elements (e.g. Dashpot) are added to increase
damping.
F = Cx F = C ( x1 − x 2 )
F
M fM
F = fk + fM
25
Automobile Suspension
26
Continued...
mxo + b( xo − xi ) + k ( xo − xi ) = 0 (1)
T = k (1 − 2 )
Rotational Damper
C
1
2 T
T = C(1 − 2 )
Moment of Inertia
J T T = J 30
Rotational Mass-Spring-Damper System
T − b − k = J
d 2 d
J + b + k = T
k dt 2 dt
b
Take Laplace transform both sides
J
T Js 2 ( s ) + bs ( s ) + k ( s ) = T ( s )
( s) 1
= (Transfer Function)
T ( s) Js + bs + k
2
31
Electrical System Building Blocks
Real-world Capacitors
Real-world Inductors
32
Resistance Element
33
Capacitance Element
34
Inductance Element
35
Continued…
36
Continued…
The basic building blocks of electrical systems are resistance,
inductance and capacitance.
1 dv
Resistor: v = iR; Inductor: i = vdt ; Capacitor: i = C
L dt
37
Mechanical-electrical Analogies
Systems that can be represented by the same mathematical
model, but that are physically different, are called analogous
systems.
Thus analogous systems are described by the same differential
equations or transfer functions.
The concept of analogous is useful in practice, for the following
reasons:
✓ The solution of the equation describing one physical system
can be directly applied to systems in any other field.
✓ Since one type of system may be easier to handle
experimentally than another, instead of building and studying
a mechanical system, we can build and study its electrical
analogy, in general, much easier to deal with experimentally.
38
Continued…
Two-loop Electrical
Network Force and Voltage
Analogy
39
Continued...
40
Mixed Systems
Most systems in Mechatronics are of the mixed type, e.g.,
electromechanical, hydro mechanical, etc
Each subsystem within a mixed system can be modeled as single
discipline system first
Power transformation among various subsystems are used to
integrate them into the entire system
Overall mathematical model may be assembled into a system of
equations, or a transfer function
Example 4. derive the mathematical model of DC motor.
Ra La
Input: voltage u B
Output: Angular velocity ia
u dc
J
41
Electro-Mechanical
Electrical Subsystem (loop method):
di a
u = Ra i a + La + eb , eb = back - emf
dt
Mechanical Subsystem Tmotor = Jω + Bω
Power Transformation: Torque-Current: Tmotor = Kt i a
Voltage-Speed: eb = K bω
where Kt: torque constant, Kb: velocity constant
For an ideal motor Kt = K b = K
Combing previous equations results in the following mathematical
model:
di a
La + Ra i a + K = u
dt
Jω + Bω - K ia = 0 42
Gear System
Gear Train
43
Mechanical Loading On A Motor
44
Home work
1. Why we are using differential equations in modeling?
2. Find the transfer function of the electrical network. Take 𝑉(𝑡)
as input and 𝑖2 (𝑡) as output.
45
46