DStext 2015
DStext 2015
DStext 2015
J. M. LOUREIRO
(Prof. Associado, FEUP)
LSRE - Laboratory of Separation and Reaction Engineering
Department of Chemical Engineering, FEUP
University of Porto, Portugal
February 2015
Introduction to Systems Dynamics / J. M. Loureiro - 2015 2
1. INTRODUCTION
The systematic study of the dynamic behavior of systems is the object of Systems
Dynamics. Since the dynamic behavior is to be studied, in Systems Dynamics the
accumulation terms (derivatives in order to time) are never dropped from the model equations
(balances) and then differential equations (ordinary or partial) are obtained. The main
application of Systems Dynamics is Process Control; the effects of perturbations (on input
variables) in the systems responses are studied, in order to devise control actions which are
able to react to undesired perturbations on the system.
According to their complexity (which is related with their dynamic behavior) systems
are first classified into categories. The main division is into two classes of systems:
• Lumped parameter systems - the intensive properties are supposed to be independent
of position within an extensive property (commonly the volume) of the system, i.e., intensive
properties within the system change only with time. In this case, ordinary differential
equations (ODE's) are obtained. According to the order of the model ODE's, the system itself
is called of first order, second order, etc.
• Distributed parameter systems - the intensive properties change with position, as well
as with time, within the system. In this case, partial differential equations (PDE's) are obtained
for the system model.
In the following, some examples will be given of both systems classes with the main
objective of clarifying what is their expected dynamic behavior.
Before going any further, let us define a general framework for balances. For any
conservative property (mass, energy, momentum, etc.) in any system it can be said that:
(amount in) = (amount out) + (accumulation) (1.1)
The foregoing equation is valid for total mass; we know (since Lavoisier) that, although
total mass is conserved, the same is not always true for the mass of a given component, since
if a chemical reaction is going on inside the system, the component can be consumed (if it is a
reactant) or produced (if it is a product). Then, a more useful way of writing the general
conservation balance, including component mass balances when chemical reactions are
present, is the following:
(amount in) + (production) = (amount out) + (accumulation) (1.2)
This general equation will be applied throughout in the following, wherever a system
model is needed, since models are nothing else but the summing up of several equations,
mathematically translating the physical phenomena involved (with given approximation):
• conservation equations;
• equilibrium relations;
• kinetic (physical, chemical) rate expressions;
• initial and boundary conditions.
Introduction to Systems Dynamics / J. M. Loureiro - 2015 3
(1)If the model equation is not linear, in order to apply the Laplace transform, a linearization is needed. In
Systems Dynamics the behavior of nonlinear systems can also be studied without linearization, but then the
Laplace transform cannot be applied. This methodology will be shown when studying second order systems,
where a nonlinear system will be analyzed with and without linearization.
Introduction to Systems Dynamics / J. M. Loureiro - 2015 4
In order to invert the system response to the time domain, the obtained rational fraction
was already expanded into partial fractions (see, for example, N. Piskounov, MIR, 1966). The
time domain response can then easily be obtained (Tables of Laplace transforms are available
in standard references):
b
y( t ) =[1 − exp(− a t )] H( t ) (2.6)
a
The H(t) is used in the response in order to reinforce that the response is given by that
expression only for t ≥ 0 , i.e., before t = 0 the expression is not valid. In the following draw,
the response of the system is represented:
The final response of the system (at t = ∞ ) will be y( ∞ ) = b/a; the system gain (often
designated by K) is exactly the ratio between the final values of the outlet and inlet variables,
y( ∞ )
i.e., gain = . The time constant (commonly designated by the symbol τ) is the time after
x( ∞ )
which the response of the system is (1- e-1) ≈ 63.2% of the final response.
Let us now look at some examples of first order systems:
Let us start with a CSTR with no reaction, i.e., a mixer; the CSTR has volume V and a
solute at concentration cE is being continuously fed at flowrate Q. The concentration inside
the CSTR as well as at the outlet (at the same flowrate Q) is c:
d c( t )
Q cE ( t ) = Q c( t ) + V (2.7)
dt
The system is of first order, since the material balance is a first order ODE. In steady
state, the balance becomes:
Q cEs = Q cs (2.8)
This means that, in steady state, the outlet and inlet concentrations are equal (remember
that there is no reaction). Subtracting the steady state equation (2.8) from the unsteady state
one (2.7) and introducing the deviation variables ĉE ( t ) = cE ( t ) − cEs and ĉ( t ) = c( t ) − c s , the
unsteady state mass balance (in terms of deviation variables) becomes:
dĉ( t )
ĉE ( t ) = ĉ( t ) + τ (2.9)
dt
where τ = V/Q is the space time of the reactor (equal to the mean residence time of the
molecules inside the reactor). Remembering that, according to the definition of the deviation
variables, ĉ E ( 0 ) = ĉ( 0 ) = 0 , the Laplace transform of equation (2.9) gives:
cE ( s ) = ( 1 +τ s ) c ( s ) (2.10)
The transfer function for the system is then:
c( s) 1
G( s ) = = (2.11)
cE ( s ) τ s +1
Again, since the denominator of the transfer function is a first degree polynomial the
system is of first order and, since G(s) is already in the canonical form, it is easy to see that
the system has an unitary gain and that its time constant is nothing else but the space time.
gain of the system is now 1/(kτ+1) and the new time constant is τ/(kτ+1), where kτ = Da is the
Damköhler number (also called number of reaction units NR, it is the ratio between the CSTR
space time τ and the time constant for the first order reaction τR = 1/k).
Written in the canonical form (independent term equal one), the denominator of the
transfer function has the form: τ2 s2 + 2 ζ τ s + 1, where τ is the time constant of the system
and ζ is the damping factor; as in the first order system, the numerator of the transfer function
is the steady state gain. For this (general) second order system, the gain is then K = c/b, the
time constant is τ = 1/ b and the damping factor is ζ = a /( 2 b ) = aτ / 2 . The damping
factor plays a very important role in second order systems dynamics; as a matter of fact,
according to its value, the response of the system can be oscillating even for non-oscillating
perturbations at the inlet. Negative values for ζ will not be considered (they give rise to
unstable systems - with unbounded response).
In order to have an idea of the (possible) responses of the system, let us consider an
unitary step input to this system, x(t) = H(t), i.e., x ( s )=1 / s ; the response in the Laplace
domain becomes:
K
y( s) = (2.26)
s (τ s + 2ζ τ s + 1)
2 2
In order to calculate the response in the time domain, the response in the Laplace
domain should be inverted; this inversion imposes the expansion of the rational fraction in
simple fractions; the roots r1 and r2 of the second order polynomial have to be calculated; they
are:
1
−ζ ± ζ − 1
2
r1 , r2 = (2.27)
τ
These roots are real if ζ ≥ 1. In this case, the denominator is simply a product of three
first order polynomials with real coefficients. When ζ < 1, the roots are complex; in this case,
the denominator cannot be written in the form of a product of three first order polynomials
with real coefficients. The expansion in simple fractions greatly depends on the form of the
denominator, as well as the inversion will depend on the type of the simple fractions obtained.
Let us consider the three possible cases:
a) ζ > 1 (two distinct real roots) - overdamped system
In this case, the response in the Laplace domain and the respective expansion in simple
fractions, taking into account that 1/τ2 = r1r2, can be written:
K /τ2 K K r2 /( r1 − r2 ) K r1 /( r1 − r2 )
y( s) = = + − (2.28)
s( s − r1 )( s − r2 ) s ( s − r1 ) ( s − r2 )
The inversion is straightforward now (see a table of Laplace transforms). The response
in the time domain is:
y( t ) = K 1 +
1
[r2 exp( −r1t ) − r1exp( −r2t )] H( t ) =
r1 − r2
t ζ t
= K 1 − exp( −ζ t / τ ) cosh ζ − 1 +
2
sinh ζ − 1 H( t )
2
(2.29)
τ ζ 2
− 1 τ
Introduction to Systems Dynamics / J. M. Loureiro - 2015 9
This response y(t)/K is represented against t/τ in the following figure, for several values
of the damping factor ζ.
1,2
1,0
1
y(t)/K
1.5
0,8
2
0,6 3
4
ζ
0,4
0,2
0,0
0 5 10 15
t/ τ 20
K /τ2
y( s) = =
2
1 −ζ
2 2
ζ
s s + +
τ τ
ζ 1 −ζ 2
Ks +
K τ Kζ τ
= − − (2.33)
s 2
2
1 −ζ 2 2
2
ζ 1 −ζ ζ 1 −ζ
2 2
s + τ + τ s + τ + τ
With the help of a table of Laplace transforms, the inversion is now straightforward; the
response in the time domain is:
t ζ t
y( t ) = K 1 − e −ζt / τ cos 1 −ζ 2 + sin 1 −ζ 2 H( t ) (2.34)
τ 1 −ζ 2 τ
Due to the trigonometric functions, and depending on the value of the damping factor ζ,
this response is oscillatory; the amplitude of the oscillations is attenuated with time by the
factor e- ζt/τ. In the next figure, responses y(t)/K vs. t/τ are shown for several values of ζ.
0.1
1,6 0.2
y(t)/K
0.4
1,2 0.6
0.8
0,8
ζ
0,4
0,0
0 5 10 15 t/ τ 20
without interaction, will be treated; then, the case of a tank with a discharge tube in laminar or
in turbulent regime will be tackled with the search for underdamped operating conditions,
since a TP is envisaged based on this system; it will be shown also that if the tube is packed
(with sand, for example) the system will become overdamped, whatever the regime.
The cross sectional areas of the tanks are Ω1 and Ω2 respectively. As before, we will
assume that the resistances are linear, i.e., ∆P1 = ρ g h1 = R1 Q1 and ∆P2 = ρ g h2 = R2 Q2. A
material balance to each tank gives, in unsteady state:
dV1( t ) ρ g dh ( t )
QE ( t ) = Q1( t ) + = h1( t ) + Ω1 1 (2.35)
dt R1 dt
ρg dV ( t ) ρ g dh ( t )
Q1( t ) = h1( t ) = Q2 ( t ) + 2 = h2 ( t ) + Ω 2 2 (2.36)
R1 dt R2 dt
In steady state the material balances just become:
ρg ρg
QEs = Q1s = h1s = Q2 s = h2 s (2.37)
R1 R2
Subtracting the steady state equations from the unsteady state ones and introducing the
deviation variables Q̂E ( t )=QE ( t ) −QEs , ĥ1 ( t )=h1 ( t )−h1 s and ĥ2 ( t )=h2 ( t )−h2 s the differential
equations in terms of deviation variables are:
ρg dĥ1( t )
Q̂E ( t ) = ĥ1( t ) + Ω1 (2.38)
R1 dt
ρg ρg d ĥ2 ( t )
ĥ1 ( t ) = ĥ2 ( t ) + Ω 2 (2.39)
R1 R2 dt
Transforming both equations, the following transfer functions g1(s) for the first tank and
g2(s) for the second are obtained:
Introduction to Systems Dynamics / J. M. Loureiro - 2015 12
h ( s) 1 R1 /( ρ g )
g1( s ) = 1 = = (2.40)
QE ( s ) Ω1 s + ρ g / R1 Ω1R1 s /( ρ g ) + 1
h ( s) ρ g / R1 R2 / R1
g2 ( s ) = 2 = = (2.41)
h1( s ) Ω 2 s + ρ g / R2 Ω 2 R2 s /( ρ g ) + 1
And the transfer function G(s) for the system, relating the height of the fluid in the
second tank ĥ2 ( t ) to any perturbation in the inlet volume flowrate to the first tank Q̂E ( t ) is
simply obtained through the product of the previous individual transfer functions, i.e.:
R2 /( ρ g )
G( s ) = g1( s )⋅g2 ( s ) = (2.42)
Ω1R1Ω 2 R2 2 Ω 1R1 +Ω 2 R2
s + s+1
( ρg )2 ρg
G(s) is already in the canonical form; by comparison with the standard second order
system, the time constant for this association of two non-interacting first order systems is then
Ω1R1Ω 2 R2 Ω R + Ω 2 R2
τ= and the damping factor is ζ = 1 1 .
ρg 2 Ω1R1Ω 2 R2
The interaction is expressed by the equation for the first valve; as a matter of fact, the
pressure drop across this first valve is now the difference between the pressures at the bottom
of both tanks, i.e., the equation for the first valve is now ∆P1 - ∆P2 = ρ g (h1 - h2) = R1 Q1; the
linearity of the second valve is still expressed by the previous equation: ∆P2 = ρ g h2 = R2 Q2.
The material balances for both tanks are, in unsteady state:
dV1( t ) ρ g
QE ( t ) = Q1( t ) + = [h1( t ) − h2 ( t )] + Ω1 dh1( t ) (2.43)
dt R1 dt
ρg
Q1( t ) = [h1( t ) − h2 ( t )] = Q2 ( t ) + dV2 ( t ) = ρ g h2 ( t ) + Ω1 dh2 ( t ) (2.44)
R1 dt R2 dt
After writing the steady state mass balances, subtracting them from the unsteady state
equations, introducing deviation variables, transforming and rearranging, the following
Introduction to Systems Dynamics / J. M. Loureiro - 2015 13
transfer function for the interactive association, relating the height of the fluid in the second
tank ĥ2 ( t ) to any perturbation in the inlet volume flowrate to the first tank Q̂E ( t ) is obtained:
R2 /( ρ g )
G( s ) = g1( s )⋅g2 ( s ) = (2.45)
Ω1R1Ω 2 R2 2 Ω 1( R1 + R2 ) +Ω 2 R2
s + s+1
( ρg )2 ρg
Comparing with the transfer function for the non-interactive association, we can see that
only the coefficient of s in the transfer function is altered, i.e., the time constant is maintained
Ω ( R +R ) + Ω 2 R2
and the damping factor is now ζ = 1 1 2 .
2 Ω1R1Ω 2 R2
The tank (of internal diameter DT and cross sectional area Ω = π DT2 / 4 ) receives liquid
(of density ρ) at the volume flowrate QE(t); the volume of liquid inside the tank is V(t) = Ω
h(t), where h(t) is the height of the liquid in the tank; the tube has length L, internal diameter
D, cross sectional area A = π D2/4, and through it liquid is discharged at the volume flowrate
Q(t). We have already made the material balance for such a tank (section 2.1.2):
(1)The three basic electrical elements used in the framework of the analogies are the resistance R, the capacitance
dV dI
C and the inductance L with the following definition equations: V = R I, I = C and V = L .
dt dt
Introduction to Systems Dynamics / J. M. Loureiro - 2015 14
dV ( t ) dh( t )
QE ( t ) = Q( t ) + = AV(t ) + Ω (2.46)
dt dt
As for the tube, a force balance will be made, stating that the variation of the velocity of the
fluid in the tube (its acceleration) is a consequence of the balance between two counteracting
forces: the hydraulic forces at the bottom of the tank (pushing the liquid in the tube to its
outlet) and the friction forces, exerted by the moving fluid in the opposite direction (in the
tube walls). Using Newton's second law (F = m a, where F is force, m is mass and a = dv/dt is
acceleration), the force balance around the tube becomes:
dv( t ) 1
AL ρ = A g ρ h( t ) − ρ v 2 ( t ) Aλ f (2.47)
dt 2
where v(t) is the liquid velocity in the tube. In this equation Aλ = π D L is the lateral (internal)
area of the tube, f is the friction factor (see Appendix 5) and g is the acceleration due to
gravity. Rearranging both equations (2.46) and (2.47) we obtain the following model
equations for the system:
d h( t ) 4 D2
= QE ( t ) − v( t ) (2.48)
dt π DT2 DT2
dv( t ) g 2
= h( t ) − f v 2 ( t ) (2.49)
dt L D
Depending on the expression for the friction factor, different situations can arise; in the
following, three cases will be considered: empty tubes with flow in laminar regime and in
turbulent regime (within the validity of the Blasius correlation - see Appendix 5) and the case
of packed tubes (covering all the regimes - Ergun equation).
Subtracting the steady from the unsteady state equations, introducing the deviation
variables Q̂E ( t ) = QE ( t ) − QEs , ĥ( t ) = h( t ) − hs and v̂( t ) = v( t ) − v s transforming and manipula-
ting, the following transfer function linking the height of the liquid in the tank ĥ( t ) with the
volume flowrate at the inlet Q̂E ( t ) is obtained:
b1
( s + a2 )
h( s) a1 b2
G( s ) = = (2.53)
QE ( s ) s2 a s
+ 2 +1
a1 b2 a1 b2
where, for convenience, the following names were given to the parameters:
g 32 µ 4 D2
a1 = a2 = b1 = b2 = 2 (2.54)
L ρ D2 π DT2 DT
It is seen that the time constant for this system is τ = 1/ a1b2 and that the
corresponding dumping factor is ζ = a2/(2 a1b2 ) = a2τ/2. Note that in the numerator of the
transfer function a s is present; this means that a derivative action is present (multiplying by s
in the Laplace domain corresponds to deriving in order to time in the time domain - see
properties of the Laplace transform, transform of a derivative, Appendix 1). This derivative is
a contribution from the inductive part of the tube (if the tube were only a resistance, the
derivative action should not appear).
In terms of the real parameters of the system, the time constant and damping factors are
respectively:
DT L µ DT L
τ= ζ = 16 (2.55)
D g ρ D3 g
This means that both τ and ζ increase with DT and L and decrease with D; a convenient
situation for an experimental demonstration of an underdamped system should be a large
value of τ (in order that the registration of the eventual variations is possible) and a very small
ζ (in order that the system oscillates the most); from the relations in (2.55), it is seen that this
is contradictory and a compromise has to be made - based on the fact that D influences much
more ζ (as a cube) than τ (linear dependence). In the EHICS, the average temperature of the
available water is 12 °C; the viscosity of water at 12 °C is approximately 1.24 cp; taking µ =
1.24 x 10-3 kg/(m s), ρ = 1000 kg/m3, g = 9.8 m2/s, and fixing the tank diameter DT = 6 cm
(in order that ζ does not increase, a small diameter has to be chosen), the following table
shows the values of τ and ζ for two tube diameters (D = 2 cm and D = 3.5 cm); also shown
are the steady state heights of the liquid in the tank, velocities in the tube and volume
flowrates for a (arbitrarily chosen) Re = 1000 < 2100; these values are calculated with the
steady state equations (2.51) and (2.52).
Introduction to Systems Dynamics / J. M. Loureiro - 2015 16
D = 2 cm D = 3.5 cm
hs, vs, Qs, hs, vs, Qs,
L, m ζ τ, s ζ τ, s
cm cm/s l/min cm cm/s l/min
10 0.150 3.03 0.63 6.20 1.17 0.028 1.73 0.12 3.54 2.05
20 0.213 4.29 1.26 6.20 1.17 0.040 2.45 0.23 3.54 2.05
30 0.260 5.25 1.88 6.20 1.17 0.049 3.00 0.35 3.54 2.05
40 0.301 6.06 2.51 6.20 1.17 0.056 3.46 0.47 3.54 2.05
50 0.336 6.78 3.14 6.20 1.17 0.063 3.87 0.59 3.54 2.05
REFERENCES
Churchill, R.V., Operational Mathematics, McGraw-Hill, New York, 1972.
Coghanowr, D.R., Process Systems Analysis and Control, 2nd ed., McGraw-Hill, New York,
1991.
Luyben, W.L., Process Modeling, Simulation and Control for Chemical Engineers, 2nd ed.,
McGraw-Hill, New York, 1990.
Piskounov, N., Calcul Différentiel et Intégral, 2e ed., Éditions MIR, Moscou, 1966.
Seborg, D.E., Edgar, T.F. and D.A. Mellichamp, Process Dynamics and Control, John Wiley,
New York, 1989.
Stephanopoulos, G., Chemical Process Control – An Introduction to Theory and Practice,
Prentice-Hall, Englewood Cliffs, New Jersey, 1984.
Introduction to Systems Dynamics / J. M. Loureiro - 2015 17
APPENDIX 1
A.1.1. THE LAPLACE TRANSFORM
The Laplace Transform is an integral transform which operates on a function through
the following integral:
∞
£{f(t)} = F(s) = e −st f ( t ) dt (A1.1)
0
in which the complex number s is the Laplace parameter (if s is a pure imaginary number, the
Fourier transform is obtained); for physical integrity of eq. (A1.1), s has the inverse
dimensions of t. Since the transform is defined only to the right of t = 0, the independent
variable t is commonly associated to time (but, in fact, it can be any variable).
Since the operation of integration is linear (as a matter of fact it is an area), the Laplace
transform is a linear operator in the sense that it is a function for which the principle of
superposition is valid:
£{a f(t) + b g(t)} = a F(s) + b G(s) (A1.2)
The main advantage of the Laplace transform is that ordinary differential equations
(ODEs) in the independent variable t are transformed in algebraic equations in the parameter
s; furthermore, partial differential equations (PDEs) in n independent variables are
transformed in PDEs in (n-1) independent variables (or, if n=2, in ODEs). This greatly
reduces the complexity of the solution of the corresponding equations: the solution is first
searched in the Laplace domain and it is then "inverted" to the time domain again.
Since this is only an introduction (there are excellent books on the subject - see for
example the book of Churchill, 1972), let us calculate analytically only the Laplace transforms
of some very simple functions (tables of Laplace transforms are available, e.g., in the above
referred book): the Dirac delta function δ(t) and the Heaviside step function H(t), specially
important in the domain of Systems Dynamics (for the definitions of these functions see
Appendix 3).
To calculate the Laplace transform of the Dirac delta function, we have to resort to a
general theorem related to this "strange" function:
∞
This result can be easily obtained integrating by parts this improper integral (of the 1st
and 2nd kinds!):
∞ A
lim
f ( t ) δ ( t − t o ) dt = A → ∞ f ( t ) δ ( t − t o ) dt =
0 0
A
= Alim
→∞
[ f ( t ) H ( t − t )
o 0]A
− f ' ( t ) H( t − t o ) dt =
0
Introduction to Systems Dynamics / J. M. Loureiro - 2015 18
A
= Alim
→∞
f ( A ) − 0 − f ' ( t ) dt = f(to) (A1.4)
to
Given this result, it is easy to show that:
£{δ(t - to)} = e-sto (A1.5)
and, if to = 0:
£{δ(t)} = 1 (A1.6)
For the Heaviside step function, we have:
∞ ∞
e − sto
£{H(t - to)} = e − st H( t − t o ) dt = e −st dt = (A1.7)
0 to
s
and, if to = 0:
1
£{H(t)} = (A1.8)
s
Incidentally, equations (A1.5) and (A1.7) also show the result of the application of the
2nd shift theorem (see in the following some properties of the Laplace transform).
3. Transform of an integral:
t
£ f ( ξ ) dξ =
F( s)
(A1.11)(1)
0 s
(1)Since a definite integral is a function of its limits but not of the integration (mute) variable, this integration
variable was here represented by ξ (and not by t) in order that it cannot be confused with the independent
variable t of the function to be transformed (the definite integral). This procedure will be discarded in the rest of
these small notes (i.e., t will be used as the mute integration variable in the following).
Introduction to Systems Dynamics / J. M. Loureiro - 2015 19
In the above equations, F(s) stands for the Laplace transform of f(t), i.e., F(s) = £{f(t)}.
7. The Van der Laan Theorem:
Although the Van der Laan theorem can hardly be classified as a property of Laplace
transforms, it will be included here, given its utility and its relation with the Laplace
transforms. The theorem states that the moments of the impulse response of a system (or of its
residence time distribution, which is the same) can be obtained directly from the transfer
function of the system (for the definitions of the impulse and of the transfer function see
Appendices 3 and 2, respectively), through the relations:
d n G( s)
µ n = (−1) n (A1.16)
d sn s =0
where G(s) is the transfer function, dnG(s)/dsn stands for the nth derivative of G(s) in order to s
and µ n is the nth moment of the impulse response of the system:
∞
t
n
E ( t ) dt ∞
µn = 0
∞
= t n E ( t ) dt (A1.17)
E( t ) dt
0
where E(t) is the residence time distribution (RTD) for the system (equal to the impulse
response), whose integral between zero and infinity is equal to one.
Introduction to Systems Dynamics / J. M. Loureiro - 2015 20
APPENDIX 2
THE TRANSFER FUNCTION
One of the main advantages of the Laplace transform related to the study of Systems
Dynamics is the so-called transfer function of the system under study; this function relates the
output with the input to the system for whatever input, as far as the system is linear.
In order to simplify the calculations, "deviation" (or "perturbation"(1)) variables are first
introduced; these are defined by the difference between the actual values of the variables and
their values in the precedent steady state (before time zero). In this way, the deviation
variables are always equal to zero at time zero (if you look to the transform of a derivative,
you can better appreciate the motivation). In doing so, we then study only the result of the
perturbations introduced to the system at a given instant which, in terms of the analysis of the
system behaviour, is t = 0; in the end we are always able to revert to the original variables (by
simple summation of the previous steady state value).
Let us consider a system with an inlet variable x(t) and an outlet variable y(t):
APPENDIX 3
SOME COMMON INPUTS
In order to study the dynamic behavior of systems, some inputs are commonly used and
the system responses to those inputs analyzed. The most common inputs used in Systems
Dynamics, in view of their application to Process Control, are the impulse, the step, the ramp
and the sinusoidal inputs. In the following, a brief description of each of these perturbations to
the system steady state entry is made, together with the respective mathematical definition and
Laplace transform.
δ ( t − t o ) dt = 1 0 ≤ to < ∞ (A3.3)
0
Note that, according to its definition, δ(t - to) has the inverse dimensions of the variable
t; namely, if t is time, it has dimensions of (time)-1.
Since the deviation variable Q̂ E ( t ) = Vo δ(t - to) (see Appendix 2) is infinity at t = to, its
graphical representation is generally made by an arrow located at the respective time; in the
same draw, the area under the impulse (in this case the value of the indetermination 0 x ∞ = Vo
is known) is shown by the inclusion of its value with another (curved) arrow:
Introduction to Systems Dynamics / J. M. Loureiro - 2015 22
The Laplace transform of the Dirac delta function located at time zero is the unity, i.e.,
^ (t) = V δ(t - t ), applying the second shift theorem
£{δ(t)} = 1; then, for a general input Q E o o
(see properties of the Laplace transform, Appendix 1) we have:
£{ Q̂ E ( t ) } = Q E (s) = £{Vo δ(t - to)} = Vo £{δ(t - to)} = Vo e-sto (A3.4)
The impulse input is experimentally simulated by a square pulse (as fast as possible) on
the desired entry variable.
Finally, it can be said that in the framework of residence time distributions, the response
of a system to a Dirac delta input δ(t) in the concentration of a tracer at the system inlet is
exactly the residence time distribution E(t) of the system. Furthermore, given that £{δ(t)} = 1,
the system response to such an input (in the Laplace domain) is equal to the transfer function
of the system G(s); then, the residence time distribution E(t) is also equal to the inverse
transform of the transfer function G(s), i.e., E(t) = £-1{G(s)}.
Note that the Heaviside step function H(t - to) can be viewed as the integral of the Dirac
delta function δ(t - to):
t
d H( t − t o )
H(t − t o ) = δ(t − t o ) dt and δ (t − t o ) = 0 ≤ to ≤ t (A3.9)
0 dt
This relation between both functions has important consequences in the analysis of the
dynamic behavior of linear systems; as a matter of fact, given that relation and the
superposition principle, the same information can be extracted from each of the perturbations
and the response of the system to one of them can be obtained from the response of the system
to the other: the response of the system to a step input (height qo) is simply the integral of its
response to an impulse response (amount injected qo); and the response to an impulse (amount
Vo) is simply the derivative of the response to the corresponding step (height Vo).
Given that the Laplace transform of t H(t)(1) is 1/s2, i.e., £{t H(t)} = 1/s2, the Laplace
transform of the general input Q̂E ( t ) = a (t - to) H(t - to), using again the second shift
theorem, is:
(1) Note that H(t) is used throughout when dealing with system entries; this is so in order that the Laplace
transform (defined between times 0 and infinity) can be applied; as a matter of fact, transforms of functions for
times before time zero do not exist. If the response to such an entry is desired (the negative step or purge is an
example) the function should be defined in terms of alternative functions, starting at time zero; for example the
unit purge is written as: P(t) = 1 - H(t) and the system response is obtained, applying the superposition principle,
as R(t) = 1 - F(t), where F(t), known as the Danckwerts F curve in the framework of residence time distributions
(when the perturbation is applied to the concentration of a tracer at the system inlet), is the response to the unit
Introduction to Systems Dynamics / J. M. Loureiro - 2015 24
e − sto
£{ Q̂E ( t ) } = QE ( s ) = £{a (t - to) H(t - to)} = a £{(t - to) H(t - to)} = a
(A3.11)
s2
The ramp input (t - to) H(t - to) is the integral of the Heaviside step function H(t - to);
then, the comments made above for the impulse and step inputs still apply, mutatis mutandis,
to the step and ramp inputs, of course.
w
The Laplace transform of [sin(wt) H(t)] is £{sin (wt) H(t)} = ; then the Laplace
s + w2
2
transform of the general input Q̂E ( t ) = a sin[w(t - to)] H(t - to) is:
£{ Q̂E ( t ) } = QE ( s ) = £{a sin[w(t - to)] H(t - to)} =
w e − sto
= a £{sin[w(t - to)] H(t - to)} = a (A3.13)
s2 + w 2
5. Random inputs:
step (Heaviside) function. Of course, the Dirac delta function δ(t) does not need to be multiplied by H(t), given
that it is zero to the left of t = 0.
Introduction to Systems Dynamics / J. M. Loureiro - 2015 25
the following it is shown how are the pieces assembled in order to have a unique
mathematical expression for an arbitrary random input.
Consider the following random input x̂ E ( t ) ; consider also that you know the
mathematical expressions for each of the functions f1, f2, f3, f4 and f5:
APPENDIX 4
SYSTEMS LINEARIZATION
In the framework of Systems Dynamics with control purposes, nonlinear systems are
commonly linearized around a given steady state (generally the design steady state, where the
system is supposed to work) and the linearized system studied instead of the original one; this
is so because of the simplicity associated with linear systems and the possibility of the
application of the Laplace transform to their study; in general this enables a much faster
control action if the system is perturbed and, given that the linearization is around the design
steady state, the linearized solution is normally a reasonable approximation.
Linearization is made through the Taylor series expansion until the first (linear) term; as
you know the Taylor series expansion of a given function has exactly the same value of the
function if the infinite number of the series terms is conserved; as this is not possible, the
quality of the approximation decreases with the number of terms conserved. Conserving only
the linear term, we have for the value of a function f(x) at (x+a):
f(x+a) ≈ f(a) + x f '(a) (A4.1)
where f'(a) stands for the derivative of f(x) at x = a.
The meaning of the approximation can be graphically visualized (x = b in the drawing):
Equation (A4.1) substitutes the true value f(a+b) of f(x) at x = a+b by the approximated
value y. The drawing also shows that generally (always for monotonic functions), the larger b,
the worse the approximation. This is one of the reasons why the linearization is made around
the design steady state.
When dealing with transfer functions we said that deviation variables relative to the
previous steady state are normally used; the Laplace transforms of derivatives in order to time
of a given function f(t) become simpler in this case if we suppose that perturbations occur at
time zero, since ^f (0) = 0. Remember that the Taylor series around zero is also called the
MacLaurin series. Then, when the linearization is made around the previous steady state
(which should be the design one for any perturbation, at least if the system is working
properly), and time zero is selected for the perturbations, the deviation variable is simply
given by the MacLaurin expansion:
^f (t) = f(t) - f(0) = t f '(0) (A4.2)
Introduction to Systems Dynamics / J. M. Loureiro - 2015 27
APPENDIX 5
FLOW IN TUBES
Flow in tubes is but a small part of Momentum Transport; in this appendix only a brief
review of the subject, in view of its application to some designed experiments is covered (see,
e.g., the excellent book of Bird, Stewart and Lightfoot, John Wiley, 1960).
Three different situations are considered: flow in open tubes (laminar and turbulent) and
flow in packed tubes. The general framework of the equivalences between systems will be
used in the following approach. In the field of electricity, Ohm's law, stating that the electric
potential difference (V) between the terminals of an electrical conductor is proportional to the
current intensity (I) through the conductor, is well known:
V=RI (A5.1)
The proportionality constant R is called the resistance of the electrical conductor. This
law is in fact general (similar laws are, e.g., Fick's law of diffusion in mass transfer, Fourier's
law of conduction in heat transfer, Newton's law of viscosity in momentum transfer, etc.), and
it can be applied (with reasonable accuracy) to many fields in physical sciences, provided the
convenient equivalence is chosen; when the system is nonlinear, a linearization is needed (for
parameter identification) before the equivalence can be established. In fluid flow, the pressure
drop is generally chosen as the potential difference and the volumetric flowrate as the current
intensity (as a matter of fact the equivalence can be reversed - duality - with no loss of
generality).
(1)The definition of friction factors is not unique; published definitions vary by constant factors. When using
tables or graphics from a reference, the definition used in the reference should be used. In these notes, the
Fanning friction factor is used.
Introduction to Systems Dynamics / J. M. Loureiro - 2015 28
In this equation, Fk is the force exerted in the tube walls due to the fluid movement
1
(kinetic energy), A is the wetted surface area and K = ρ v2.
2
If, instead of the model equivalence approach, one wishes to use the friction factor
approach, it is easy to show that for laminar (Poiseuille) flow:
Fk ( ∆P )( π D 2 / 4 ) 16
f= = = (A5.4)
A K ( π D L )(1 / 2 ρ v ) Re
2