Dynamics of Open-Loop Systems (Simulations)
Arboleda, G.P. | Busico, B.D. | Lonzaga, J.P.
CHE180P – Process Dynamics and Control (Paired)
3rd term of A.Y. 2021-2022
College of Engineering and Architecture
Malayan Colleges Mindanao
ABSTRACT
MATLAB is an engineering software that can be
used to simulate process dynamics and process
control using Simulink. Through Simulink, one can
conveniently find out and model a process control
system and graphically show how the system reacts
to certain factors like the time-constant π and the
damping factor π. In this experiment, the students
had found out about the differences between a firstorder response to a second-order response by the
time-constant
π
and
the
damping
factor
π.
Simulations done through Simulink also showed
what would happen if the time constant and damping
factor values were increased and how it affected the
different systems present. Overall, this experiment
also showed how a non-interacting, two-tank system
reaches a faster steady-state value as compared to
an interacting two-tank system.
INTRODUCTION
From the image above, the control action applied to
the system is the input. The response of the system
to a given input is the output. Some disturbances
that interact with the system can also alter the
output.
With the use of MATLAB, it’s simple to represent
and then simulate a mathematical model of a
physical system with Simulink. Simulink models are
represented graphically as block diagrams. The user
can choose from a variety of blocks in the offered
libraries to represent various phenomena and
models in a variety of ways. One of the key benefits
of using Simulink (and simulation in general) for
dynamic system analysis is that it allows us to swiftly
study the behavior of sophisticated systems that
The input or control action in an open loop control
system is independent of the system's output. The
input signal is independent of the system's reaction,
regardless of how it acts.
would
otherwise
be
impossible
to
analyze
analytically. Simulink can numerically approximate
the solutions of mathematical models that we can't
solve "by hand" or don't want to.
Simulink can mimic the entire control system,
including the control algorithm. Simulink is notably
useful for generating approximate solutions to
mathematical models that are prohibitively difficult to
solve. Consider the situation when you have a
Lab Exercise 2. Dynamics of Open-Loop Systems (Simulations)
CHE180P
By: Group 5
BS in Chemical Engineering
nonlinear plant. A popular method is to create a
the second tank does not influence the liquid level of
linearized model of the plant and then use analytical
the first tank. As for an interacting system, the flow
approaches to develop a controller using the
rate Q1 is derived from the height difference of the
linearized model. Simulink may then be used to
first tank and the second tank (H1-H2) divided by the
replicate your controller's performance when applied
resistance R1.
to the entire nonlinear model. Simulink can be used
to create the linearized model, while MATLAB can
A transfer function was derived from the first tank by
relating its liquid level H1 and the input function Q0.
be used to create the controller.
For this experiment, liquid-level systems with
variable flow input and output flows that depend
This results to a first order transfer function.
Similarly, the liquid level of the second tank H2 was
related to the input function Q0 which derives a
linearly on resistance will be simulated.
second order transfer function.
OBJECTIVES
You will be given the task of designing the flow of
the exercise itself. In doing so, make sure you
address the following objectives. Upon completing
this exercise, you should be able to:
A, π2
R, πππ
Tank 1
10
0.1
Tank 2
15
0.1
1. understand how first-order responses
differ from second-order responses
2. understand how the parameters π and π
influence the dynamic responses of
I.
For non-interacting system:
First Order Transfer Function:
π―π (π)
πΉπ
π. π
=
=
πΈπ (π) ππ π + π π + π
firsthand second-order systems
3. differentiate
the
behavior
of
an
interacting second-order system from
Second Order Transfer Function:
that of a non-interacting second-order
π―π (π)
πΉπ
=
π
πΈπ (π) (ππ ππ )π + (ππ + ππ )π + π
π. π
=
π
π. ππ + π. ππ + π
system
4. simulate and visualize the responses of
open-loop processes to different input
functions in Simulink
II.
For interacting system:
First Tank:
METHODOLOGY
The two-tank system composes of two tanks with
different areas A1 and A2. On the first tank, a liquid
π»1 (π ) − π»2 (π )
= π0 (π ) − π΄1 π π»1 (π )
π
1
Second Tank:
enters with a flow rate Q0 and acts as the source of
the input function for the transfer functions of the two
tanks. There is a resistance R1 for the first tank and
π»1 (π ) =
π
1
(π
π΄ π + 1)π»2 (π ) + π»2 (π )
π
2 2 2
Second Order Transfer Function:
a resistance R2 for the second tank. The flow rate
that enters the second tank is Q1, which is the
output of the first tank. For a non-interacting system,
2
π―π (π)
πΉπ
=
π
πΈπ (π) (ππ ππ )π + (ππ + ππ + πΉπ π¨π )π + π
π. π
=
π. πππ + π. ππ + π
Lastly, the impulse function value was changed
To simulate the graphs of the two transfer
system. In the interacting setup, the liquid level
functions, MATLAB Simulink was utilized. The
of the second tank affects the liquid level of the
setup of the simulation includes a source (input
first tank. This results in an extra term (π
2 π΄1 ) on
function), transfer function block(s), a mux, and
the s coefficient for the second order transfer
a sink (scope). The source can be any input
function. The responses of the interacting and
function such as a step function, impulse
non-interacting setup were compared by using
function, or a sinusoidal function. The purpose
a step and impulse function.
in an increasing manner.
The last comparison involves the interacting
and non-interacting setup of the two-tank
of using MATLAB Simulink is to observe the
changes on the output graphs by varying the
time constant τ and the damping factor ζ.
III.
Changing Time Constant Coefficient (π)
Input: Step Function
The first input function used was a step
function. With a step function of 1, the value of τ
was varied by adjusting its value for the first
and second order transfer function. A similar
process was done for the second order transfer
function by changing the ζ value by increasing
and decreasing the coefficient of s on the
denominator. Afterwards, the step function
value was varied to test how the transfer
functions would respond.
To simulate an impulse function, a derivative
block was used to filter the step function. The
starting time must be non-zero for the step
function, but it should be close to zero. For the
simulations involving an impulse function, a
value of 0.00001 was chosen as the starting
time. In the same manner as the step function
process, the value of τ was varied for the first
order transfer function and the second order
transfer function. Then, for the second order
transfer function, the ζ value was also varied.
3
Input: Impulse Function
V.
Changing Input Value
Input: Step Function
IV.
Changing Damping Value (ζ)
Input: Step Function
4
Input: Impulse Function
DATA AND RESULTS
I.
Changing Time Constant Coefficient (π)
Input: Step Function
Transfer Function
(First Order)
1
2
3
VI.
Coefficient of τ
1
2
3
Two-tank Interacting System vs. NonInteracting System
Input: Step Function
Input: Impulse Function
5
Transfer Function
(Second Order)
1
Coefficient of τ
2
3
2.5
3.5
1.5
Transfer Function
(Second Order)
1
Coefficient of τ
2
2.5
3
3.5
Input: Impulse Function
1.5
There is a trend that can be observed by changing
the time constant τ. For a first order transfer
function, increasing the time constant causes a
delay on its response to the input function. As
observed from Graph 3.1 and 3.3, the transfer
function with the least time constant value reached
the steady state value fastest. For the second order
transfer function, a lesser time constant reduces the
fluctuations of the response. The first order transfer
function reaches the steady state value faster than
the second order transfer function.
II.
Changing Damping Value (ζ)
Input: Step Function
Transfer Function
(Second Order)
1
2
3
Coefficient of s
Damping Value
2.5
1.5
3.5
1.02
0.61
1.43
Transfer Function
(First Order)
1
Coefficient of τ
2
3
2
3
1
6
a value of 2.5 on the coefficient of s results to a
damping value of 1.02. A damping value equal to 1
indicates a critically damped response from the
transfer function. An underdamped response occurs
when the damping value is less than 1, and an
overdamped response occurs when the damping
value is greater than 1. The 2nd transfer function is
an example of an underdamped response with a
damping value of 0.6, and this results in more
oscillations to reach the steady state value. The 3rd
transfer function is overdamped and when compared
to the 1st transfer function, it takes more time to
reach the steady state value.
III.
Changing Input Value
Input: Step Function
Transfer Function
(Second Order)
1
2
3
Input Value
1
2
3
Input: Impulse Function
Transfer Function (First
Order)
1
2
3
Input Value
1
2
3
The change in the damping value dictates the
oscillation of the response. Transfer function 1 had a
smoother transition to the steady state value
compared to the other transfer functions. This is
because for the calculated second transfer function,
7
Transfer Function
(Second Order)
1
Input Value
2
3
2
3
Input: Impulse Function
1
Transfer Function
(Second Order)
1
2
Coefficient of s
2.5
3.5
Increasing the input value for the first order transfer
function results in a higher gain (πΎπ ). When the
value of πΎπ increases, the amount of time constants
it takes to reach the new steady state value also
increases. This is also evident from Graph 3.10 with
a higher peak value as πΎπ increases caused by an
impulse input.
IV.
Two-tank Interacting System vs. NonInteracting System
8
As observed from Graphs 3.11 and 3.12, the
Input: Step Function
response of an interacting system is delayed
compared to the response of a non-interacting
system. It also reaches the new steady state value
slower than the non-interacting system. This is due
to the addition of the term π
2 π΄1 on the coefficient of
s in the second order transfer function. The extra
term contributes to a sluggish response on the
interacting system caused by the difference in liquid
level height from the two tanks.
CONCLUSION
The dynamics of open-loop systems can be
mathematically shown using first and second order
transfer functions. Open-loop systems can be
affected by factors such as the time-constant π, the
damping factor, π and the gain, πΎπ . In this
experiment, the students found out of the following:
Input: Impulse Function
•
First-order responses reach a faster steady
state value when compared to second-order
transfer function responses.
•
The time-constant π and the damping factor
π affect the outcomes and the trend of the
responses of first order and second order
transfer functions. For first order transfer
functions, the time constant π affects the
system if it is increased, as this will result to
the increase in time to achieve a steadystate value. For second order transfer
functions, the higher the value of the time
constant
π
increases
the
number
of
fluctuations of the responses. If the damping
Transfer Function (First
Order)
1
Input Value
2
2
3
3
factor π has a value close to 1, the system is
considered critically damped. This means
1
that a second order system transitions to a
steady state value smoothly. Increasing or
decreasing the value of the damping factor π
makes
the
system
overdamped
and
underdamped, respectively.
9
•
A two-tank, non-interacting system reaches
a new steady state value faster than an
interacting system. The transfer functions for
both systems differ; the two-tank interacting
π»1′ (π )
1
π
1
=
=
→ πππ π‘βπ ππππ π‘ π‘πππ
′
ππ (π ) π΄π + 1 π΄1 π
1 π + 1
π
′ (π )
π»2
π
2
→ πππ π‘βπ π πππππ π‘πππ
′ (π ) =
π1
π΄2 π
2 π + 1
system has an additional π
2 π΄1 term on its
denominator, resulting in a more sluggish
π
ππππ‘πππ π»2′ (π ) π‘π ππ′ (π ):
response to a new steady-state value. The
height of the liquid level is also a factor on
π»2′ (π ) π»2 (π ) π1′ (π ) π»1 (π ) π1
1
=
×
×
;
=
ππ′ (π ) π1′ (π ) π»1 (π ) ππ′ (π ) π»1 π
1
why the response of an interacting system is
=
more sluggish compared to a non-interacting
system.
•
MATLAB and Simulink were used for the
π
2
1
π
1
× ×
π΄2 π
2 π + 1 π
1 π΄1 π
1 π + 1
π»2′ (π )
π
2
π
2
=
=
′
ππ (π ) (π΄2 π
2 π + 1)(π΄1 π
1 π + 1) (π2 π + 1)(π1 π + 1)
π
2
(π2 π × π1 π ) + π2 π + π1 π + 1
collection of data and results. The students
=
had used the step-function as well as the
impulse-function and compared the results
π»2′ (π )
π
2
=
′
2
ππ (π ) π2 π1 π + (π2 + π1 )π + 1
through graphs.
πΆππππ’πππ‘πππ π πππ π:
π»2′ (π )
0.1
=
ππ′ (π ) (π + 1) (π + 2)
3
APPENDICES
I.
For Non-interacting system
=(
π
π
2
+
) (π + 1) (π + )
2
π +1 π +
3
3
2
0.1 = π (π + ) + π(π + 1)
3
2
2
@π = − : 0.1 = π (− + 1)
3
3
1
0.1 = π ∴ π = 0.3
3
2
@π = −1: 0.1 = π (−1 + )
3
1
0.1 = − a ∴ π = −0.3
3
π(ππ)
= ππ(π‘) − ππ1 (π‘)
ππ‘
πβ
β
π΄
= π(π‘) − π1 (π‘) = π
ππ‘
π
β {π΄1
π»π
′
ππ»
= ππ′ − }
ππ‘
π
1
π΄π π»(π ) = π(π ) − π»(π )
π
π»2′ (π )
0.1
0.3
0.3
=
=−
+
ππ′ (π ) (π + 1) (π + 2)
π +1 π +2
3
3
β −1 {0.3 (
1
π +
2
3
−
1
)}
π +1
2
= 0.3 (π −3π‘ − π −π‘ )
π»2′ (π )
0.1
0.1
2
=
=(
)÷
′
2
2
ππ (π ) (π + 1) (π + 2)
3
π 2 + π + π +
3
3
3
10
=
π»1′ (π ) − π»2′ (π )
1
= π»2′ (π ) (π΄2 π + )
π
1
π
2
0.1
3 2 5
π + π +1
2
2
π»1′ (π ) − π»2′ (π ) =
3
∴ π = √ = 1.22;
2
π πππ£πππ πππ π: 2ππ =
II.
5
∴ π = 1.02
2
Interacting system:
π»1′ (π ) =
π
1
(π
π΄ π + 1)π»2′ (π )
π
2 2 2
π
1
(π
π΄ π + 1)π»2′ (π ) + π»2′ (π ) → 2
π
2 2 2
π»1′ (π ) − π»2′ (π )
= ππ′ (π ) − π΄1 π π»1′ (π )
π
1
π
1
(π
π΄ π + 1)π»2′ (π ) + π»2′ (π ) − π»2′ (π )
π
2 2 2
π
1
= ππ (π )
− π΄1 π (
+ π»2′ (π ))
πΉππ ππππ π‘ π‘πππ:
ππ − π1 = π΄1
ππ −
πβ1
β1 − β2
; π1 =
ππ‘
π
1
(π
2 π΄2 π + 1)π»2′ (π )
π
1
β1 − β2
πβ1
= π΄1
π
1
ππ‘
= ππ (π ) − π΄1 π
π
1
(π
π΄ π + 1)π»2′ (π )
π
2 2 2
+ π΄1 π π»2′ (π )
π. π .
ππ π −
π
1
(π
π΄ π + 1)π»2′ (π )
π
2 2 2
β1 π − β2 π
πβ1 π
= π΄1
π
1
ππ‘
(π
2 π΄2 π + 1)π»2′ (π )
π
1
+ π΄1 π (π
2 π΄2 π + 1)π»2′ (π )
π
2
π
2
+ π΄1 π»2′ (π ) = ππ (π )
πππ£πππ‘πππ π£πππππππ ππππ:
β {ππ′ −
π»1′ − π»2′
ππ»1′
= π΄1
}
π
1
ππ‘
ππ (π ) −
π»1′ (π ) − π»2′ (π )
= π΄1 π π»1′ (π )
π
1
π»1′ (π ) − π»2′ (π )
π
1
= ππ′ − π΄1 π»1′ (π ) → 1
πΉππ π πππππ π‘πππ:
π1 − π2 = π΄2
πβ2
β1 − β2
β2
; π1 =
; π2 =
ππ‘
π
1
π
2
π. π .
β1 π − β2 π β2 π π΄2 πβ2 π
−
=
π
1
π
2
ππ‘
π
2 π΄2 π + 1
π
1
π»2′ (π ) [
+ π΄1 π (π
2 π΄2 π + 1) + π΄2 π ]
π
2
π
2
= ππ (π )
π»2′ [
π
2 π΄2 π + 1 + π΄1 π π
1 (π
2 π΄2 π + 1) + π
2 π΄1 π
] = ππ (π )
π
2
π»2′ (π )
π
2
=
π0′ (π ) π2 π + 1 + π1 π (π2 π + 1) + π
2 π΄1 π
π»2′ (π )
π
2
=
π0′ (π ) π1 π + 1 + π1 π2 π 2 + π1 π + π
2 π΄1 π
π»2′ (π )
π
2
=
π0′ (π ) π1 π2 π 2 + (π1 π2 + π
2 π΄1 )π + 1
πππ£πππ‘ππ π£πππππππ:
β{
π»1′ − π»2′ π»2′
ππ»2′
−
= π΄2
}
π
1
π
2
ππ‘
π»1′ (π ) − π»2′ (π ) π»2′ (π )
−
= π΄2 π π»2′ (π )
π
1
π
2
π»1′ (π ) − π»2′ (π )
π»2′ (π )
= π΄2 π π»2′ (π ) +
π
1
π
2
11
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )