Академический Документы
Профессиональный Документы
Культура Документы
Chapter -2
Mathematical Modeling of Physical System
Prepared by : Zina G.
(M.Sc. in Mechanical System Design)
1
2. Mathematical Modeling of Physical System
What is a Physical system?
A Physical system is a collection of physical objects connected in
some designed pattern to serve some prescribed objective.
What is a model?
A model is a simplified representation or abstraction of reality.
3
What is Mathematical Model?
A set of mathematical equations (e.g., differential eqs.) that
describes the input-output behavior of a system.
System
Analytical Solution
Simulation
5
• Mathematical model can be:
Scalar differential equation
State variable vector-matrix differential equation
• When the mathematical model is solved for various input
conditions, then the result represents the dynamic response
of the physical system.
• For analysis and synthesis of the mathematical models available
mathematical tools have to be utilized.
Example: Laplace, Fourier Transforms & Linearization
• Unfortunately no physical system in nature is perfectly linear.
• Certain assumptions must always be considered to get a linear
model which is a compromise between the simplicity of the
mathematical model and the accuracy of results obtained.
6
• A linear system obeys the principle of homogeneity, this
means that when an input to a given system is scaled by
a value, the output of the system is scaled by the same
amount.
In the figure (a) above, an input x to the linear system L gives the
output y. If x is scaled by a value α and passed through this same
system, as in figure (b) , the output will also be scaled by α.
7
• A linear system also obeys the principle of super-position. This
means that if two inputs are added together and passed
through a linear system, the output will be the sum of the
individual inputs' outputs.
• That is, if Figure 2 is true, then Figure 3 is also true for a linear
system.
• Linear Mathematical model: obeys the principles of
super-position and homogeneity
1 x1( t ) 2 x2 ( t ) 1 y1( t ) 2 y2 ( t )
Inputs Outputs
2.1. Modeling of Mechanical Systems
The building blocks are:
Spring: represents the stiffness of a system (energy
storage media)
F kx or T k
Damper (dashpot) : represents the force which
opposes motion (frictional or damping effects)
F Cx or T C
Mass: represents the inertia or resistance to
acceleration
m F mx or T I
• This building blocks represent three essential phenomena
which occur generally in mechanical systems.
10
Common Uses of Dashpots
Door Stoppers
Vehicle Suspension
Bridge Suspension
Flyover Suspension
Basic Elements of Rotational Mechanical Systems
Rotational Spring
1
2
T k (1 2 )
Rotational Damper
C
1
2 T
T C(1 2 )
• Dampers (with equivalent damping constant) will be
modeled to represent either of the following:
Coulomb Friction Force (Dry Friction): force of sliding
friction between dry surfaces and it is substantially
constant.
Viscous Friction Force: force of friction between moving
surfaces separated by viscous fluid or between solid
surface and a fluid medium.
13
• Energy is needed:
to stretch the spring, hence an elastic potential energy
will be stored in the spring
1 2
Ve kx
2
to accelerate the mass and hence a kinetic energy will
be accumulated in the moving mass
1 2
T mx
2
to move the piston against the reaction force and
hence energy will be dissipated
x2
U 12 Cxdx
x1
14
• Simple Model:
Input Output Input Output
Spring Dashpot
F or T
x or F or T
x or
• Such models are applied for:
Models of machine tools mounted on the ground and is a
basis for studying the effects of ground disturbances on the
displacement of the machine bed (Base Excitation).
16
Primary Gear N1
Input Torque
from Motor T1
θ1
TM
Input Shaft I1, θ2
C1 Load Torque
TL
Secondary Gear N2
Load Shaft I2,
C2
• Eliminating θ2:
N1
2
N1
2
N1
I1 I 2 1 C1 C2 1 TL TM
N2 N2 N2
N1
I1eq1 C1eq1 TL TM
N2
This is the Torque equation to the input shaft
I1eq,C1eq N1
TL
N2
TM
19
• Similarly eliminating θ1 from equation 3:
2 2
N2 N2
I 2eq I2 I1 and C2eq C2 C1
N1 N1
• Hence, the Torque equation to the load shaft will
then be expressed as:
N2
I 2eq 2 C2eq2 TL TM
N1
I2eq,C2eq
N2
TM TL
N1
20
2.2. Equation of Electrical Networks
The basic building blocks are:
Resistors
Capacitors
Inductor
• The time domain expression relating voltage and current for the
resistor is given by Ohm’s law i-e
i(t)
V(t)
v (t ) i (t ) R 21
Basic Elements of Electrical Systems
2. Capacitor:
V(t)
di(t )
v(t ) L where L is induc tan ce
dt
V-I and I-V relations
Component Symbol V-I Relation I-V Relation
v R (t )
Resistor v R (t ) i R (t )R iR (t )
R
1 dvc (t )
Capacitor vc (t ) ic (t )dt ic (t ) C
C dt
diL (t ) 1
Inductor v L (t ) L iL (t ) v L (t )dt
dt L
24
Kirchoff’s Law:
Generally Kirchhoff’s laws are used in building up models for
electrical systems. These laws can summarized as:
a) Law 1: Node analysis
The total current flowing towards a junction is equal to the total
current flowing from that junction, i.e. the algebraic sum of the
currents at the junction is zero.
i 0
b) Law 2: Mesh analysis
In a closed circuit or loop, the algebraic sum of the potential
differences across each part of the circuit is equal to the
applied e.m.f.
V 0
Mesh and node analysis are used to analyze circuits
Nodal Voltage Method:
a. Determine the number of nodes
b. Select one node as a reference. Assign voltage
designation to each node where voltage is unknown
c. Assign current at each node
d. Apply KCL to each node
e. Express the current equations in terms of voltages and
solve the equations.
i1R1 v vA
R1 i2 R3
i2 R2 v A
R4
R2
v
i3 ( R3 R4 ) vA
v vA vA vA
R1 R2 R4 R3
R1 R3
R4
R2
v
For the mesh with current i2
i1 i2 0 i2 R3 i2 R4 (i2 i1 ) R2
y(t ) Y ( S )
Y (S ) Y(S)
G( S ) U(S) G(S)
U (S )
28
Why Laplace Transform?
dt dt
• In general
d n x(t )
s n X ( S ) s n 1 x( 0) x n 1 ( 0)
dt n
the system
32
2.4. Block diagram and Signal Flow Graph
• Transfer function is an expression in S domain, relating
the output and input of the LTI system in terms of the
system parameters and is independent of the input.
33
• A complex system comprising of several elements is
represented by the interconnection of the blocks for
individual elements.
R(s) C( s )
G(s)
C(s)
G( s )
Input Output R( s )
• Signals entering the block represents the input
• Signals leaving the block represents the output
• The block stands for the transfer function.
• Information flow in one direction, from input to output.
• A summery point is where signals are algebraically
added together. +
-
+
-
34
• Take-off Point is represented by junction.
35
Canonical Form of A Feedback Control System
Characteristic Equation
• The control ratio is the closed loop transfer function of the system.
C( s ) G( s )
R( s ) 1 G( s )H ( s )
1 G( s )H ( s ) 0
Example
B( s )
1. Open loop transfer function G( s )H ( s )
E( s )
C ( s)
2. Feed Forward Transfer function G( s)
E ( s)
C( s ) G( s ) G(s )
3. control ratio
R( s ) 1 G( s )H ( s )
B( s ) G( s )H ( s )
4. feedback ratio
R( s ) 1 G( s )H ( s )
E( s ) 1
5. error ratio
R( s ) 1 G( s )H ( s ) H (s )
C( s ) G( s )
6. closed loop transfer function
R( s ) 1 G( s )H ( s )
7. characteristic equation 1 G( s )H ( s ) 0
8. Open loop poles and zeros if K=10. 9. closed loop poles and zeros if K=10.
Block Diagram Reduction Techniques
a) Blocks in Series G (s)
θi(s) θo(s)
G1(s) G2(s) G3(s)
Input θ1(s) θ2(s) Output
θi(s) + θo(s)
c) Block in Parallel G1(s)
+
G2(s)
o ( s ) i ( s )G1 ( s ) i ( s )G2 ( s )
o ( s ) i ( s )[ G1 ( s ) G2 ( s )] i ( s )G( s )
(s)
G( S ) o G1 ( s ) G2 ( s )
i ( s )
• For n-number of blocks, the overall transfer function is
given by the sum of the transfer function of each block. 40
d) Multiple input, Multiple output system
• For the case of a linear system, each input can be treated
independently and the complete output of the system will
be obtained by superposition.
U(s)
R(s) + e C(s)
G1(s) G2(s)
-
H(s)
H(s)
Rr(S) Cm(S)
r
Ci ( s ) Gij ( s )R j ( s ), i 1,2,...,m
j 1
43
Example: Reduce the Block Diagram to Canonical Form.
Example: Continue.
Example
• For the system represented by the following block diagram
determine:
1. Open loop transfer function
2. Feed Forward Transfer function
3. control ratio
4. feedback ratio
5. error ratio
6. closed loop transfer function
7. characteristic equation
8. closed loop poles and zeros if K=10.
Example
– First we will reduce the given block diagram to canonical form
K
s 1
Example
K
s 1
K
s 1
G
1 GH K
1 s
s 1
Example
B( s )
1. Open loop transfer function G( s )H ( s )
E( s )
C( s )
2. Feed Forward Transfer function G( s )
E( s )
C( s ) G( s ) G(s )
3. control ratio
R( s ) 1 G( s )H ( s )
B( s ) G( s )H ( s )
4. feedback ratio
R( s ) 1 G( s )H ( s )
E( s ) 1 H (s )
5. error ratio
R( s ) 1 G( s )H ( s )
C( s ) G( s )
6. closed loop transfer function
R( s ) 1 G( s )H ( s )
7. characteristic equation 1 G( s )H ( s ) 0
a y
x
a11 x1 a12 x2 r1 x1
a21 x1 a22 x2 r2 x2
Signal-Flow Graph Models
• There are four variables in the equations (i.e., x1,x2,x3,and x4) therefore four nodes are
required to construct the signal flow graph.
• Arrange these four nodes from left to right and connect them with the associated
branches.
• A forward path is a path from the input node to the output node. i.e.,
X1 to X2 to X3 to X4 , and X1 to X2 to X4 , are forward paths.
• A feedback path or feedback loop is a path which originates and terminates on
the same node. i.e.; X2 to X3 and back to X2 is a feedback path.
Terminologies
• A self-loop is a feedback loop consisting of a single branch. i.e.; A33 is a self
loop.
• The gain of a branch is the transmission function of that branch.
• The path gain is the product of branch gains encountered in traversing a path.
i.e. the gain of forwards path X1 to X2 to X3 to X4 is A21A32A43
• The loop gain is the product of the branch gains of the loop. i.e., the loop gain
of the feedback loop from X2 to X3 and back to X2 is A32A23.
• Two loops, paths, or loop and a path are said to be non-touching if they have
no nodes in common.
Consider the signal flow graph below and identify the
following
a) Input node.
b) Output node.
c) Forward paths.
d) Feedback paths.
e) Self loop.
f) Determine the loop gains of the feedback loops.
g) Determine the path gains of the forward paths.
Input and output Nodes
a) Input node
b) Output node
(c) Forward Paths
(d) Feedback Paths or Loops
(d) Feedback Paths or Loops
(d) Feedback Paths or Loops
(d) Feedback Paths or Loops
(e) Self Loop(s)
(f) Loop Gains of the Feedback Loops
(g) Path Gains of the Forward Paths
Mason’s Rule (Mason, 1953)
• The block diagram reduction technique requires successive
application of fundamental relationships in order to arrive at the
system transfer function.
• On the other hand, Mason’s rule for reducing a signal-flow graph
to a single transfer function requires the application of one
formula.
• The formula was derived by S. J. Mason when he related the
signal-flow graph to the simultaneous equations that can be
written from the graph.
Mason’s Rule:
• The transfer function, C(s)/R(s), of a system represented by a
signal-flow graph is;
n
C ( s) P i i
i 1
R( s)
Where
n = number of forward paths.
Pi = the i th forward-path gain.
∆ = Determinant of the system
∆i = Determinant of the ith forward path
∆i = value of Δ for the part of the block diagram that does not touch the i-
th forward path (Δi = 1 if there are no non-touching loops to the i-th path.)
Systematic approach
71
Example#1: Apply Mason’s Rule to calculate the transfer function
of the system represented by following Signal Flow Graph
P1
P2
1 G2 H 2 H 3G3 G6 H 6 G7 H 7
G2 H 2G6 H 6 G2 H 2G7 H 7 H 3G3G6 H 6 H 3G3G7 H 7
73
Example#1: continue
Eliminate forward path-1
1 1 L3 L4
1 1 G6 H 6 G7 H 7
2 1 L1 L2
2 1 G2 H 2 G3 H 3
74
Example#1: continue
2
Y ( s) P i i
i 1
R( s)
Y ( s) P11 P2 2
R( s )
Y (s) G1G2G3G4 1 G6 H 6 G7 H 7 G5G6G7 G8 1 G2 H 2 G3 H 3
R( s ) 1 G2 H 2 H 3G3 G6 H 6 G7 H 7 G2 H 2G6 H 6 G2 H 2G7 H 7 H 3G3G6 H 6 H 3G3G7 H 7
75
Example#2: Apply Mason’s Rule to calculate the transfer function of
the system represented by following Signal Flow Graph
Therefore, C P11 P2 2
R
There are three feedback loops
1 L1 L2 L3
H3
-H1
R(s) 1 E(s) G1 X1 G2 X2 G3 X3 G4 C(s)
-H2
-H3
From Block Diagram to Signal-Flow Graph Models
Example#5
-H1
R(s) 1 E(s) G1 X1 G2 X2 G3 G4 X3 1 C(s)
-H2
-H3
C ( s) G1G2G3G4
G
R( s ) 1 G1G2G3G4 H 3 G2G3 H 2 G3G4 H 1
Example-4: Determine the transfer function C/R for the block diagram below
by signal flow graph techniques.
• The signal flow graph of the above block diagram is shown below.
• Because the loops touch the nodes of P1, • Hence the control ratio T = C/R is
hence
1
V1 ( s ) I1 ( s ) I 1 ( s ) R
Cs
CsV1( s ) CsV2 ( s ) I1( s )
V2 ( s ) I1( s )R
Cs
Cs R
V1 (s ) I1 (s ) V2 (s )
Design Example#2
86
• The DC tachometer gives a voltage et proportional to the
output speed ω. The open circuit voltage will then be :
et k1 et
volt.s
et kt , kt ...........................( 1 )
rad
where kt is called the tachometer constant
• er-et=e is the difference signal used before amplification to
control ia of the motor such that the motor acquires the
desired speed ωo.
• The voltage at the armature terminals of the motor is given by:
ea k Ae
where k A is the transfer function of the amplifier
ea k A ( er et ).....................(2)
87
• For the armature circuit (applying KVL):
Ra I a kb ea .................(3)
where kb is the back EMF of the motor
when there is constant field current
i.e kb ka
• For constant field current, the torque developed will be:
TD(s)
1 1
Er(s) 1 KA Ea(s) Ra Ia(s) K
T
-1
Js C 1 ( s )
( s )
-Kb
-Kt
• Laminar Flow
– Flow dominated by viscosity
forces is called laminar flow and
is characterized by a smooth,
parallel line motion of the fluid
• Turbulent Flow
– When inertia forces dominate,
the flow is called turbulent flow
and is characterized by an
irregular motion of the fluid.
Resistance of Liquid-Level Systems
( H1 H 2 ) m
R 3
Q m /s
Resistance in Laminar Flow
Q kl H
• Where Q = steady-state liquid flow rate in m/s3
• Kl = constant in m/s2
• and H = steady-state height in m.
• The resistance Rl is
dH
Rl
dQ
Capacitance of Liquid-Level Systems
• The capacitance of a tank is defined to be the change in quantity of
stored liquid necessary to cause a unity change in the height.
dV
qi q o
dt
d ( A h)
qi qo
dt
dh
A
dh
qi qo C qi qo
dt dt
Application: Liquid level system
h1 h2 dh1
q1 C1 q q1
R1 dt
h2
q2 dh2
R2 C2 q1 q2
dt
Block Diagram of liquid level system
h1 h2
L q1 C1
dh1
q q1
R1 dt L
H1 ( s ) H 2 ( s )
Q1 ( s ) C1sH1( s ) Q( s ) Q1( s )
R1
h2
q2 dh2
R2 C2 q1 q2
L dt L
H 2 (s) C2 sH 2 ( s ) Q1( s ) Q2 ( s )
Q2 ( s )
R2
Block Diagram of liquid level system
H1 ( s ) H 2 ( s ) C1sH1( s ) Q( s ) Q1( s )
Q1 ( s )
R1
H 2 (s) C2 sH 2 ( s ) Q1( s ) Q2 ( s )
Q2 ( s )
R2
Block Diagram of liquid level system
Example
• Consider the liquid level system shown in following Figure. In this
system, two tanks interact. Write down the system differential
equations.