System Modeling
System Modeling
• Development of mathematical models from schematics of physical systems. by applying the fundamental physical
laws of science and engineering.
Solution:
Solution:
Final solution:
(3)
c: output, r: input
Transfer function:
We can find the output
𝐶 𝑠 = 𝐺 𝑠 𝑅(𝑠)
Solution:
Taking Laplace transform and assuming zero initial conditions, we have
Solution:
Problem: Find the ramp response for a system whose transfer function is
Hence,
Table 2.3
Voltage-current, voltage-charge, and impedance relationships for capacitors, resistors, and inductors
Laplace-transform
input output
input output
We know,
CEN455: Dr. Nassim Ammour 13
Transfer Function: Single Node
Transfer functions also can be obtained using Kirchhoff's current law and summing currents flowing from nodes. currents
leaving the node are positive and currents entering the node are negative.
𝐼𝑅𝐿
𝐼𝑖𝑛 = 𝐼𝑜𝑢𝑡 𝐼𝑐 (𝑠) = 𝐼𝑅𝐿 (𝑠) Same current Node
𝐼𝐶
𝑉𝑐 𝑉𝑅𝐿
− =0
𝑍𝑐 𝑍𝑅𝐿
𝑉𝑅𝐿 = −(𝑉𝑐 − V)
input output
𝑍1
𝑉𝑖 𝑍2 𝑉𝑜
input output
𝑉𝑖 = 𝑍1 + 𝑍2 𝑖 𝑡 (1)
𝑉𝑜 = 𝑍2 𝑖 𝑡 (2)
(2) 𝑉𝑜 𝑍2
(1) =
𝑉𝑖 𝑍1 + 𝑍2
𝑉𝐿 𝑠 =
𝐺2 + 𝐶𝑠
(2)
(2) in (1) 𝐺2
𝑉𝐶 (𝑠) 𝐺1 𝐺2 𝐿𝑠
=
𝑉(𝑠) 𝐺1 + 𝐺2 𝐿𝐶𝑠 2 + 𝐶 + 𝐺2 𝐺1 + 𝐺2 𝐿 − 𝐺2 2 𝐿 𝑆 + 𝐺2
Divide by LC
Transfer function:
For Mesh 1:
For Mesh 2:
For Mesh 3:
a. Operational amplifier;
𝑉𝑖 𝑠 = 𝑍1 s 𝐼1 (𝑠)
𝑉𝑜 𝑠 = 𝑍2 s 𝐼2 (𝑠)
𝐼1 𝑠 = −𝐼2 (𝑠)
CEN455: Dr. Nassim Ammour 18
Problem Solving
Inverting Operational Amplifier
𝑉 𝑠
Problem: Find the transfer function, 𝑉0 , for the circuit below.
𝑖 𝑠
Solution:
For parallel components, Z1 𝑠 is the
reciprocal of the sum of the admittances.
𝑉0 𝑠 = 𝑍1 s + 𝑍2 s 𝐼(𝑠)
𝑉1 𝑠 = 𝑍1 s 𝐼(𝑠)
𝑍1 s
We have: 𝑉0 𝑠 = 𝐴 𝑉𝑖 𝑠 − 𝑉 𝑠
𝑍1 s + 𝑍2 s 𝑜
𝑍1 s
𝑉0 𝑠 1 + 𝐴 = 𝐴 𝑉𝑖 𝑠
𝑍1 s + 𝑍2 s
SOLUTION:
We find each of the impedance functions,
𝑅1 𝐶1 𝑠 + 1
=
𝐶1 𝑠
and
𝑉0 (𝑠) 𝑅1 𝐶1 𝑠 + 1 𝑅2 𝐶1 𝑠 𝑅2 𝐶1 𝑠
= + =1+
𝑉1 (𝑠) 𝐶1 𝑠 𝑅2 𝐶2 𝑠 + 1 𝑅1 𝐶1 𝑠 + 1 (𝑅2 𝐶2 𝑠 + 1)(𝑅1 𝐶1 𝑠 + 1)
𝑉0 (𝑠) 𝑅2 𝐶1 𝑠
=1+
𝑉1 (𝑠) 𝑅1 𝑅2 𝐶1 𝐶2 𝑠 2 + 𝑅2 𝐶2 𝑠 + 𝑅1 𝐶1 𝑠 + 1 Non-inverting operational amplifier circuit
Substituting yields
Table 2.4
Force-velocity, force-displacement,
and impedance translational
relationships
for springs, viscous dampers, and
mass
𝐾: Spring constant
M: Coefficient of mass
Spring force
Applied force
Viscous
damper force LT
mass force
Forces on M1
(1)
𝐴 𝑋1 𝑠 − 𝐵𝑋2 𝑠 = 𝐹 (1) total force on M1
(superposition or sum)\
CEN455: Dr. Nassim Ammour 24
Transfer Functions: Two Degrees of Freedom Continued
Determinant
Transfer function:
Linear systems have two properties: (1) additivity, and (2) homogeneity.
1. Additivity (superposition):
Linear approximation :
related by the Slope 𝑚𝐴 (line)
of the curve at the point A
Thus, 𝑓 𝑥 − 𝑓 𝑥0 ≈ 𝑚𝐴 (𝑥 − 𝑥0 )
𝛿𝑓 𝑥 ≈ 𝑚𝐴 𝛿𝑥 Derivative of 𝑓(𝑥) at 𝑥 = 𝑥0
Linearization about a point A
𝑓 𝑥 ≈ 𝑓 𝑥0 + 𝑚𝐴 𝑥 − 𝑥0 = 𝑓 𝑥0 + 𝑚𝐴 𝛿𝑥
𝑓 𝑥 ≈ 𝑓 𝑥0 + 𝑚𝐴 𝛿𝑥
Solution:
We first find that the derivative of 𝑓 𝑥 at 𝑥 = 𝜋Τ2
𝜋
Slope at 𝑥 = 2
Also
Can be used: a) To represent non-linear systems that have backlash, saturation, dead zone.
Some Terminology
none of the variables can be written as
• Linear combination: (of 𝑛 variables 𝑥𝑖 ) a linear combination of the others.
• Linear independence: S is zero if every K is zero and no x is zero: variables x are linearly independent.
• System variable: Any variable that responds to an input or initial conditions in a system.
• State variables: The smallest set of linearly independent system variables that completely determines (knowing the value at
𝑡0 ) the value of system variables for 𝑡 ≥ 𝑡0
• State vector: A vector whose elements are state variables.
• State space: The 𝑛-dimensional space whose axes are the state variables.
• State equations: A set of 𝑛 simultaneous, first-order differential equations with 𝑛 variables (state variables).
• Output equations: The equation that expresses the output variables of a system as linear combinations of the state variables
and the inputs.
State-space model:
Solution:
The following steps will yield a viable representation of the network in state space.
Step 1: Label all the branch currents in the network (These include 𝑖𝐿 , 𝑖𝑅 , and 𝑖𝐶 ).
Step 2: Select the state variables (quantities that are differentiated 𝑣𝐶 and 𝑖𝐿 , energy-storage elements, the inductor C and the
capacitor L) and write derivative equations.
We can have 𝑣𝑐ሶ = 𝑖𝐿ሶ .
Step 3: Express non-state variables (right-hand side: 𝑖𝐶 and 𝑣𝐿 ) as a linear combinations of the state variables (differentiated
variables: 𝑣𝐶 and 𝑖𝐿 ) and the input, 𝑣 𝑡 .
We have 𝑣𝑅 = 𝑣𝐶 .
Matrix Form
𝑑𝑣𝐶 1 1
=− ∙ 𝑣𝐶 + ∙ 𝑖 + 0 ∙ 𝑣(𝑡)
𝑑𝑡 𝑅𝐶 𝐶 𝐿 State
𝑑𝑖𝐿 1 1 equation
=− ∙ 𝑣 + 0 ∙ 𝑖𝐿 + ∙ 𝑣(𝑡)
𝑑𝑡 𝐿 𝐶 𝐿
Matrix Form
1 output
Step 5: Find the output equation: 𝑖𝑅 = ∙ 𝑣𝐶 + 0 ∙ 𝑖𝐿 equation
𝐿
𝑥ሶ = 𝐴 𝑥 + 𝐵 𝑢
ቊ
𝑦 =𝐶𝑥+𝐷𝑢
Step 3: State equations (we find 𝑣𝐿 and 𝑖𝐶 in terms of the state variables)
Node 1
mesh LCR2
Node 2
(𝑣𝑅1 = 𝑣𝐿 )
1 (2)
1 − 4𝑅2 𝑣𝐿 − 𝑅2 𝑖𝐶 = 𝑣𝐶 (1) − 𝑣𝐿 − 𝑖𝐶 = 𝑖𝐿 − 𝑖(𝑡)
𝑅1
and
For M1:
For M2:
𝑖𝐿 𝑖𝑐2
Problem: Find the state-space representation of the electrical network 𝑣𝑐1 𝑣𝑅
shown in the figure. The output is 𝑣0 (𝑡). 𝑣𝐿
𝑣𝑐2
Solution:
state variables: 𝑣𝑐1 , 𝑖𝐿 , 𝑣𝑐2 𝑣𝑅 1
𝑖𝑐1 = 𝑖𝐿 + 𝑖𝑅 = 𝑖𝐿 + = 𝑖𝐿 + 𝑣 − 𝑣𝑐2 Mesh 2
The derivative relations (one for each 𝑅 𝑅 𝐿
energy-storage element) 𝑣𝐿 = 𝑣𝑖 − 𝑣𝑐1 Mesh 1
1 1
𝑖𝑐2 = 𝑖𝑅 = 𝑣𝐿 − 𝑣𝑐2 = (𝑣𝑖 − 𝑣𝑐1 − 𝑣𝑐2 ) Mesh 2, Mesh 1
𝑅 𝑅
Matrix form 1 1 1
𝑖𝑐1 = − 𝑣𝑐1 + 𝑖𝐿 − 𝑣𝑐2 + 𝑣𝑖
𝑅 𝑅 𝑅
State vector state-space representation 𝑣𝐿 = − 𝑣𝑐1 + 0 𝑖𝐿 + 0 𝑣𝑐2 + 𝑣𝑖
𝑣𝑐1 − 1ൗ𝑅𝐶 1ൗ
𝐶1 − 1ൗ
𝑅𝐶1
1ൗ
𝑅𝐶1 1 1 1
1
𝑖𝑐2 = − 𝑣𝑐1 + 0 𝑖𝐿 − 𝑣𝑐2 + 𝑣𝑖
𝑥 = 𝑖𝐿 𝑥ሶ = − 1ൗ𝐿 0 0 𝑥 + 1ൗ𝐿 𝑣𝑖 (𝑡) 𝑅 𝑅 𝑅
𝑣𝑐2
− 1ൗ𝑅𝐶 0 − 1ൗ𝑅𝐶 1ൗ
𝑅𝐶
2 2 2
CEN455: Dr. Nassim Ammour 39
Converting a Transfer Function to State Space
Phase variables: A set of state variables where each state variable is defined to be the derivative of the previous state variable.
Choose the output, y(t), and its derivatives as the state variables, 𝑥𝑖 .
PROBLEM: Find the state-space representation in phase-variable form for the transfer function
Signals
Pickoff point
Summing junction
block diagram
Parallel Form
equivalent
transfer function
𝐶 𝑠 = 𝐺 𝑠 𝐸(𝑠)
Feedback Form
But since 𝐸 𝑠 = 𝑅 𝑠 ∓ 𝐶 𝑠 𝐻(𝑠)
equivalent 𝐶 𝑠 = 𝐺 𝑠 𝑅 𝑠 ∓ 𝐶 𝑠 𝐻(𝑠)
transfer function
𝐶 𝑠 = 𝐺 𝑠 𝑅 𝑠 ∓ 𝐺 𝑠 𝐶 𝑠 𝐻(𝑠)
1 ± 𝐺 𝑠 𝐻(𝑠) 𝐶 𝑠 = 𝐺 𝑠 𝑅 𝑠
equivalent 𝐶 𝑠 𝐺 𝑠
transfer function
=
𝑅 𝑠 1 ± 𝐺 𝑠 𝐻(𝑠) 4
CEN455: Dr. Nassim Ammour 3
Reduction of Multiple Subsystems3
Moving Blocks to Create Familiar Forms
• Familiar forms (cascade, parallel, and feedback) are not always apparent in a block diagram
Block diagram algebra for summing junction Block diagram algebra for pickoff point
𝑅 𝑠 +𝑋 𝑠 ) 𝐺 𝑠 [𝑅 𝑠 + 𝑋 𝑠 ]) 𝑅 𝑠 𝐺(𝑠)) 𝐺 𝑠 [𝑅 𝑠 + 𝑋 𝑠 ])
𝑋 𝑠 𝐺(𝑠)
𝑋(𝑠)/𝐺(𝑠)
Solution:
G2 𝑠 𝑎𝑛𝑑 G3 𝑠 are
connected in cascade.