Sei sulla pagina 1di 425

UNIVERSITY OF NATAL

DEPARTMENT OF ELECTRICAL ENGINEERING


SYSTEMS AND SIMULATION - DNEL3SS1
Examinations June 1996
Time: 3 hours Examiners: Dr E Boje
Total marks: 100 Dr P Gleeson

Instructions to candidates:
1) Attempt FOUR out of five questions. All questions carry equal marks.
2) Candidates are allowed a single A4 sheet of hand written notes. Both sides may be used.
3) Normalised charts and Laplace and z transform tables are attached. Semilogarithmic graph paper
is available.

Question 1 (25 marks)


uA, TA, ΓA uB, TB, ΓB
Consider the following chemical reaction in which substances A
and B form a new substance AB by means of the reversible
reaction,
outflow
A + B ⇔ AB
The reaction rate of formation of AB is, V=const
 ( m )2 
α T log  AB  (in kg/s)
 mA mB 
where
T is the temperature in ºKelvin,
α is a constant
mA, mB, mAB are the masses (in kg) of A, B and AB
respectively

Each kg of AB formed releases q Joules of energy (i.e. exothermic reaction) (if the reaction is
reversed, the energy is absorbed).

The reactants, A and B enter a well stirred, insulated vessel of constant volume, V=constant (i.e.
volumetric outflow = volumetric inflow). The substances are diluted in water and the thermal
behaviour is that of water, with specific heat, cw and density ρw. For inputs A and B, for example,
ΓA is the inflow concentration in kg of A per m3 inflow
uA is the inflow rate of A in [m3/s]
TA is the input temperature in [ºK]

a) What are the conserved variables? (Volume is not of interest in this problem.) (4)

b) Find the state differential equation. Clearly identify state variables, inputs and parameters. (15)

c) Find the algebraic output equation. The output variables of interest are (6)
i) the output mass flow rate of product, AB
ii) the yield, M AB M A M B
iii) the temperature of the output.

1
Question 2 (25 marks)

a) In Simulink, how would you do the following?


 1 − 1 3
A B 
i) Simulate the linear system, S =   = 0 −2 4 . (3)
 
 C D  
 4 5 1

ii) Change the initial condition of an integrator to 3.5. (2)

b) Consider the model of a non-linear pendulum shown.


1
ω& = ( − mg l sin(θ ) − βω + Tu )
J
&θ = ω
where, //////////////////////////////////
θ
J = ml 2 is the inertia, Tu
l
β is the linear friction m
θ is the angle from the vertical
ω is the angular velocity

Draw the Simulink implementation diagram if m=2kg, l =1m, β=0.1, g=10 and Tu=1Nm unit step
applied at t=0.2. The state variables and the time should be sent to the workspace. (15)

c) Show how you would output the Potential and Kinetic energy in the system above (5)

Question 3 (25 marks) ///////////////////////////////


a) Find the state space representation of the following
 x1  B1
  B2
v1 k1
linear mechanical system. Use x =  
 x2
 
v 2
x1 , v 1 m1
The output is y=x1, the position of mass m1.

k2
f
m2 x2, v2

bi) Convert the following system into transfer function form.

 −1 −3  1
x& =  x+ u
 2 −4  2 (7)
y = (2 1) x + 2 u
/Question 3bii)

2
Q3bii) Write down the observer form state space description of
s2 + s + 1
P( s ) =
s 2 + 2s + 3 (3)

Question 4 (25 marks)

ai) Draw the Bode plot of the transfer function,


3 (s / 5 + 1)
P( s ) = (10)
(s / 2) + 2 × 0.4 (s / 2) + 1
2

aii) Without doing any long calculations, what would the approximate response of the above system
be to an input, u(t) = 2 sin(2t)? (3)

bi) Find the unit step response (assuming zero initial conditions) of the system,

3 (s / 2 + 1)
P( s ) = (5)
(s + 1)(s / 3 + 1)
bii) Sketch your solution (3)

ci) What damping factor is required from a second order system to have an overshoot of 10%? (3)
cii) What would the corresponding maximum dB overshoot be on the Bode plot? (1)

Question 5 (25 marks)

4s + 7
ai) The system, Ps (s) = 2 is subject to a staircase input with T=0.5. Calculate the z
s + 3s + 2
domain transfer function, Pz(z). (Hint: Use a partial fraction expansion.) (7)

aii) Use the final value theorem to find the final value of the output if the input is a step. Does your
answer make sense with respect to the final value of the step response of the continuous system? (3)

2
b) Given Ps ( s) = , find the w domain description for T=0.2 and comment on the similarity and
s+ 3
difference between Ps(s) and Pw(w). (Use 3 decimal places in your calculations.) (8)

2 z2 − 0.5z + 1
c) Given Pz ( z) = 2 and u0=1, u1=2, un=0 n ≠ 0, 1, initial y=0.
z + 0.2 z + 0.5

i) Calculate yn for n=0, 1, 2, and 3 by writing the difference equation and substitution. (5)
ii) Does the oscillating behaviour make sense in terms of the pole locations in the z plane?
Explain. (2)

3
UNIVERSITY OF NATAL
DEPARTMENT OF ELECTRICAL ENGINEERING
SYSTEMS AND SIMULATION - DNEL3SS1
Examinations June 1997
Time: 3 hours Examiners: Dr E Boje
Total marks: 120 Dr G Bright

Instructions to candidates:
1) Attempt all six questions. All questions carry equal marks.
2) Candidates are allowed a single A4 sheet of hand written notes. Both sides may be used.
3) Normalised charts and Laplace and z transform tables are attached. Semilogarithmic graph paper
is available.

Question 1 (20 marks)


liquid sugar
Consider the ice-cream manufacture process shown alongside. rl, ρl, Cl rs, Cs
The ice cream is made up of the following ingredients:

i) Liquid (cream, milk, water etc.) added at a rate rl [kg/hr] and


with a density ρl [kg/l].
ii) Sugar, added at a rate rs [kg/hr]. The sugar dissolves
completely.
iii) Air is added (fully entrained - does not dissolve or escape) at
a rate of ra [litres/hr] and only adds to the volume of the ice-
cream product, not to the weight. h
ice cream
The tank has a cross sectional area, A, and is well mixed by the outflow
agitator.
Ice cream outflow is uout [l/hr] air
ra
a) Find a model for the process with height in the tank and density of manufactured ice-cream as
outputs. Be careful of units. Clearly state any further assumptions you find necessary. (15)

b) By considering profit as the difference between cost and income, add a state differential equation
to your system to give profit as an additional output. The liquid ingredients cost Cl [Rand/litre], the
sugar costs Cs [Rand/kg] and the air is free (i.e. negligible compression costs etc.). The selling price
of ice-cream is S [Rand/litre]. (5)

1
Question 2 (20 marks)

a) Explain the relationship between step size and global accuracy for a second order method. Make
a sketch to illustrate your discussion. (5)

 ∞ 
b) The linear equation, x& = A x , x ( t 0 ) = x0 has the solution, x ( t ) = e At x0 =  ∑ ( At ) k ! x0
k
 k =0 
Show that the modified Euler method,
x i +1 = x i + ∆t ϕ
ϕ = α1ϕ1 + α 2ϕ 2
ϕ1 = f ( x i , t i )
ϕ 2 = f ( x i + ∆t i +1 β21 ϕ 1 , t i + ∆t i +1 γ 2 )
with
α1 = α 2 = 1 / 2
β 21 = γ 2 = 1
is second order and not third order for this linear equation. (10)

c) Draw the Simulink implementation diagram for the following model of a system:

x& 1 = x2 + x1x2 + h (u )
x& 2 = sin(x1 ) + x2 u
y1 = x12 + x22
y2 = x1 + u

h(u) is available as a set of measured data,

u -4.0 -1.0 0.0 1.0 3.0 5.0


h(u) 1.213 2.124 3.234 2.456 1.235 1.123

The input will come from a function generator and the output will be sent to the workspace for
plotting. (5)

2
Question 3 (20 marks) ///////////////////////////////

a) Find the state space representation of the following B1 B3


 x1  k1
  x3
 v1 
linear mechanical system. Use x =  x2 
  x1 , v 1 m1
 v2  k2
 
 x 3
The output is y=x1, the position of mass m1. B2

f
m2 x2, v2

(15)

b) Give rough sketches of the Bode magnitude and phase plots and the unit step responses of second
order low-pass, high-pass and band-pass systems (for example as investigated in the laboratory) to
highlight the differences. (5)

Question 4 (20 marks)

ai) Draw the Bode plot (on semi-logarithmic graph paper) of the transfer function,
3 (s / 2 + 1) e−0.05s
P (s) = (12)
( s / 5)2 + 2 × 0.5 (s / 5) + 1

aii) From the Bode plot, what would the approximate harmonic response of the above system be to
an input, u(t) = 2 sin(2t)? Confirm your answer by simple calculation. (3)

b) A second order system is required to have the following worst case specifications:

i) Maximum overshoot ≤ 10% of final value


ii) Rise time ≤ 1.5s
iii) Settling time to 2% ≤ 5.6s

Find the required transfer function and sketch the Bode magnitude plot showing ωm and Mm. (5)

3
Question 5 (20 marks)

0 1 1
A B  
a) Find the response of the system, S =   = −2 −2 2  ,
 
 C D  
 3 2 1
with initial condition x(0) = (1,0) , and input, u(t) = σ(t), a unit step. Sketch your solution.
T
(12)

b) Consider the ping pong ball levitator shown alongside.


ball vair
Assume that a nozzle makes a cone of air with velocity, h
u( t )
v air ( h) =
( h + α) 2 nozzle
u(t) is the opening of an air supply valve, h is the height above the
nozzle and α is a constant. The drag force on the ball is , fup = c d A ( vair − v ball ) . “A” is the ball
2

cross sectional area and cd is the drag coefficient. The model of the ball dynamics is then,
  u( t ) 
2 
dv ball 1   
=  cd A − v − mg 
 h+α 2 ball 
dt m
  ( )  

dh
= v ball
dt
m v2ball
The output of interest is the total energy of the ball, E = + m g h ball
2

Find the linearisation of the system around the equilibrium point with vball = 0, hball = 0.1.
Take m = 0.03kg, g = 9.8Nm/s2, A = 1E-3m2, cd = 0.4, α = 0.05m (8)

Question 6 (20 marks)

3
a) The system, Ps (s) = 2 is subject to a staircase input with T=0.2. Calculate the Z
s + s + 2.5
domain transfer function, Pz(z). (8)

b) A sequence, yn, has a Z transform,


z2 + z
Y( z) = 3
z + 2 z2 + 1.4z + 0.3

Find the first 5 terms in the sequence (y0 ... y4) by long division. (5)

c) By considering the initial and final value theorems in the Z domain, find equivalent initial and final
value theorems in the W domain and confirm that they are similar to the S domain theorems.
(7)

4
Show that aliasing will occur if the signal y( t ) = e − t sin( 2 t ) is sampled with T=0.5 by finding the z
transform of the sampled sequence and then finding the inverse z transform. (7)

1
c) If a system has the transfer function P(s) = , and T=0.2, find Pz(w).
s / 3+ 1
d) Show that the unit step signal ,u(t) = σ(t), has

aii) Use the final value theorem to find the final value of the output if the input is a step. Does your
answer make sense with respect to the final value of the step response of the continuous system? (3)

5
UNIVERSITY OF NATAL
DEPARTMENT OF ELECTRICAL ENGINEERING
SYSTEMS AND SIMULATION - DNEL3SS1
Examinations: June 1998

Time: 3 hours Examiners: Dr E Boje


Total marks: 110 Dr G Bright

Instructions to candidates:
1) Attempt ALL five questions. Questions do not carry equal marks.
2) Candidates are allowed a single A4 sheet of hand written notes. Both sides may be used.
3) Normalised charts and Laplace and z transform tables are attached. Semi-logarithmic graph
paper is available.

Question 1 (20 marks)

A hydroelectric pumped storage scheme moves water between an upper and a lower water
reservoir (subscripts u and l respectively). During periods of low electricity demand, power is
cheap and water is pumped up to the upper reservoir. (Energy is stored as potential energy).
During peak electricity demand, water flows (backwards) through the turbines and the
potential energy is recovered as electrical energy (i.e. electricity is sold back onto the grid at a
higher price). (Electricity is usually sold in kWh but we will use MJ as a measure of power.)
Develop a model for such a scheme under the following assumptions:

• The electricity price (tariff) is T(t) [Rand/MJ] and is a function of time because of
varying demand.
• The power set-point of the generator station is set at P(t) [MW = MJ/s] by the operator.
P(t) > 0 implies that the station is generating (i.e. selling electricity).
P(t) < 0 implies that electricity is being used to pump water.
• The evaporation rate from the reservoirs is given as Eu(t) and El(t) [m3/s].
• The inflow rate into the reservoirs from rainfall is given as Ru(t) and Rl(t) [m3/s].
• The acceleration due to gravity is g [m/s2].
• The density of water is ρ [kg/m3]
• To keep the model simple, the efficiency η = (what you get)/(what you pay for) of
pumping or generating is η = 1.
• The head, H, can be regarded as constant.
• There is a constant (overhead) cost, C [R/s] Upper reservoir
Vu
of running the station if it is generating,
Eu(t)
pumping or standing idle.
Ru(t)
The model should be third order (including one
state variable for the number of Rands in the
station’s account) and the required outputs are:

1) The (potential) energy available from the H


water in the upper reservoir. Vl
2) The amount of money (in Rand) in the El(t)
station’s account. Rl(t)
Pump
Lower reservoir P(t)
UNIVERSITY OF NATAL
DEPARTMENT OF ELECTRICAL ENGINEERING
SYSTEMS AND SIMULATION - DNEL3SS1 June 1998
PAGE 2
Question 2 (25 marks)

a) Consider the model of a dc machine driving a mechanical load,


dω 1
dt J
(
= k φi a − βω − Tmech (ω) )


dt
dia 1
dt
(
= V − k φω − Ri a
L
)
where the state variables are,
ω = machine speed
θ = shaft position
ia = armature current
and L (inductance), J (moment of inertia), kφ (torque constant), R (resistance), β (friction
constant) and µ (load constant) are parameters. Tmech(ω) is the mechanical load which is
known from measurements and is given as a table.
ω Tmech(ω)
0 0
50 5
100 15
150 40
200 100

i) Set up the Simulink implementation diagram for the system with V a step from 200V
to 300V at time t=2s. The output speed should be sent to the workspace along with
the simulation time. The armature current should be displayed on a graph. (10)
ii) Explain how to set up initial values for (ω, θ, ia) (2)
iii) Explain how to run the simulation for 10 seconds with at least 100 points between
the start and end time. (3)

b) Show that the Linear Implicit Euler method is a single step method by expressing the
method in the form,
xi +1 = xi + ∆t? i (5)

c) Show that the Modified Euler Method is second order and not third order for the linear
( )
equation, x& = A x . Hint: Write out the actual value of xi +1 = e A ( t i +1 − t i ) xi = e A ∆t i +1 xi as
a series expansion. (5)

Question 3 (20 marks)


ai) Draw the Bode plot of the transfer function,
4 (s / 1 + 1)(s /(−1) + 1)
P(s) = (10)
(s / 5) 2 + 2 × 0.4(s / 5) + 1

aii) Without doing any long calculations, what would the approximate response of the above
system be to an input, u(t) = 2 sin(3 t)? (2)
UNIVERSITY OF NATAL
DEPARTMENT OF ELECTRICAL ENGINEERING
SYSTEMS AND SIMULATION - DNEL3SS1 June 1998
PAGE 3

Q3b) In the laboratory, the following response was measured as the step response of a second
order low-pass system. Identify the system transfer function - i.e. write down P(s). NB: The
gain is not unity. (8)

Step Response

1.5
Amplitude

0.5

0
0 0.5 1 1.5 2 2.5 3
Time (sec.)

Question 4 (25 marks)


a) Find the state space representation of the following linear electrical system. (NB x1 is the
current through L1 and y1 is the voltage across L1.) (12)
y2
x3

R2 x1 R1 L3
+
u1 L1 y1 C2 x2

bi) Use the Laplace transform to find the output of the system,

 0 − 2  3
x& =  x +   u
1 − 2  2
y = (0 1)x
with x0 = (1 –1)T and u(t) = σ(t). (10)

bii) Sketch your solution (3)


UNIVERSITY OF NATAL
DEPARTMENT OF ELECTRICAL ENGINEERING
SYSTEMS AND SIMULATION - DNEL3SS1 June 1998
PAGE 4
Question 5 (20 marks)

4
a) Given Ps (s) = , find the w domain description for T=0.2 and comment on the
s+3
similarity and difference between Ps(s) and Pw(w). (Use 3 decimal places in your
calculations.) (8)

bi) Calculate the z-transform of the signal, y(t) = e(-t) sin(5t) sampled at T=1.0. (4)
bii) By finding the inverse z-transform, show that aliasing has occurred and explain why. (3)

2z
c) Find the first 4 terms in the inverse z-transform of Y(z ) = by means of
z 2 + 0.5z + 0.3
long division. Use the final value of the signal to confirm that you result makes sense. (5)
UNIVERSITY OF NATAL
School of Electrical and Electronic Engineering
SYSTEMS AND SIMULATION - DNEL3SS1
Examinations June 1999
Time: 3 hours Examiners: Dr E Boje
Total marks: 115 Mr B Burton

Instructions to candidates:
1) You may attempt all six questions. A maximum of 100 marks will be awarded. Questions do not
carry equal marks.
2) Candidates are allowed a single A4 sheet of hand written notes. Both sides may be used.
3) Normalised second order charts and Laplace- and z-transform tables are attached. Semi-
logarithmic graph paper is available.

Question 1 (20 marks)

Consider the evaporating system illustrated. The system works at rin, Tin
standard atmospheric conditions. Water enters at a flow rate of rin
[m3/s] and temperature Tin [°C]. An electric element is used to heat
h
and if the temperature is at 100°C, evaporate the water. (Assume
that no evaporation occurs below 100°C.) The element power is
Pelec
Pelec [watts]. The heat capacity of the water is Cw [J/kg/°C] and the
latent heat of evaporation (i.e. water → gas) is L [J/kg].

Develop a dynamic model for the system, choosing the height of the water in the vessel as the output
variable. The vessel has a uniform cross-sectional area, A. Assume that the water density, ρ, does
not change with temperature.

Note that depending on the water temperature, you will require two different differential equations
for the same state variable. You may use an IF {condition} THEN {SDE_Option1} ELSE
{SDE_Option2} to achieve this.

Question 2 (20 marks)

a) Explain the relationship between step size and global accuracy for a third order method. Explain
why the local error determines the global error. Also explain what happens to your analysis if the
step size is too big or too small, using a sketch to illustrate your discussion. (5)

b) Explain why the Lipschitz condition was required in our derivation of the bound on the
asymptotic accuracy of a single step method. (5)
Question 2c/…
UNIVERSITY OF NATAL
School of Electrical and Electronic Engineering
SYSTEMS AND SIMULATION - DNEL3SS1- June 1999
Page 2 of 4
Question 2 (continued)

2c) Consider the system,


 x2 + t  2
x& =   , x 0 =  
 − x1 + x1x 2   − 1
Illustrate the modified Euler by simulating 2 steps (i.e. calculate x1 and x2 by hand), with ∆T = 0.1.
Use 3 decimal digits and present all (intermediate) calculations in a tabulated form. (10)

Question 3 (15 marks)

Consider the following model of a cell growth in a bio-system. The state differential equation is

dC S/V
= µ max C cell growth rate
dt S / V + Ks
dS S/ V
= − γµ max C + u inρin substrate conservation
dt S / V + Ks
dV
= u in − u out volume conservation
dt
with,
S/V γ is the yield
growth rate, r = µ max .
S / V + Ks C is the number of cells
µmax is the maximum growth rate. uin is the substrate volumetric feed rate
S is the substrate mass ρin is the substrate concentration
V is the volume = [0.1 (kg substrate)/(m3 feed)]
KS is the limiting substrate concentration. uout is the outflow rate

uin and uout are shown below.


uin uout
13 35

10 200 t [hr] 30 100 t [hr]

Outputs are the cell concentration and the substrate concentration. These must be displayed on
graphs and sent to the Matlab workspace for further analysis.

a) Identify the state variables, the inputs, outputs and parameters. (3)
b) Draw the Simulink implementation diagram, explaining all relevant details of how you would set
up the simulation. Simulation time is 500 time units. (12)

Question 4/…
UNIVERSITY OF NATAL
School of Electrical and Electronic Engineering
SYSTEMS AND SIMULATION - DNEL3SS1- June 1999
Page 3 of 4
Question 4 (25 marks)

a) Find the state space representation of the following linear electrical system. The outputs are the
voltages across the inductor and resistor. The state variables are the voltages across the
capacitors and the current through the inductance.
y1 y2

L x3 R1
+
u1 C1 x1 C2 x2

(12)

4bi) Given the following unit step response of a second order system (for example as investigated in
the laboratory), find the parameters, k, ωn and ζ of the transfer function,
k
P(s) = . (8)
(s / ωn ) + 2ζ(s / ωn ) + 1
2

bii) Make a rough sketch of the corresponding Bode plot showing salient features. Semi-log paper is
not required. You should find an approximate value of the phase at ωn/2 and 2ωn using the
normalised chart). (5)
Step Response

3.5

2.5
Amplitude

1.5

0.5

0
0 1.4 2.8 4.2 5.6 7
Time (sec.)

Question 5/…
UNIVERSITY OF NATAL
School of Electrical and Electronic Engineering
SYSTEMS AND SIMULATION - DNEL3SS1- June 1999
Page 4 of 4
Question 5 (25 marks)

ai) Draw the Bode plot (on semi-logarithmic graph paper) of the transfer function,
3 e −0.2s (s / 3 + 1)
P( s ) = (12)
(s / 1 + 1)(s / 10 + 1)

aii) From the Bode plot, what would the approximate harmonic response of the above system be to
an input, u(t) = 2 sin(2t)? Confirm your answer by a simple calculation. (3)

0 1 1
A B  
b) Find the natural response of the system, S =   = − 2 − 4 2 , with input, u(t) = 0 and
 C D 
3 2 1 
initial condition x(0) = (-1, 1)T. Sketch your solution. (10)

Question 6 (10 marks)

4
a) The system, Ps (s ) = is subject to a staircase input with T=0.2 seconds. Calculate the
s 2 + 2s + 3
Z domain transfer function, Pz(z). (5)

1
b) The system, Ps (s ) = is subject to a staircase input with T=0.1 seconds. Calculate the w-
s+2
domain transfer function, Pz(w) and comment on the relationship between s- and w-domain transfer
functions. (5)
UNIVERSITY OF NATAL
School of Electrical and Electronic Engineering
SYSTEMS AND SIMULATION - DNEL3SS1
Examinations June 2000
Time: 3 hours Examiners: Dr E Boje
Total marks: 117 Mr B Burton

Instructions to candidates:
1) You may attempt all six questions. A maximum of 100 marks will be awarded. Questions
do not carry equal marks.
2) Candidates are allowed a single A4 sheet of hand written notes. Both sides may be used.
3) Normalised second order charts and Laplace- and z-transform tables are attached. Semi-
logarithmic graph paper is available.

Question 1 (20 marks)

Two tanks are arranged as shown in the diagram below. Salt and water are added into the first
tank at rates Γs [kg/s] and Γw [m3/s] respectively. The tanks are well mixed and the salt
dissolves completely. The flow between the two tanks depends on the pressure difference,
f A = k A ρ1 h 1 − ρ 2 h 2 . (Recall that density, ρ = mass/volume, ρwater=1000kg/m3.) The
flow out of the second tank is given by f B = k B ρ 2 h 2 . Both flows are in m3/s of the
solution in the respective tanks and you can assume that they are always positive. The tank
areas are A1 and A2 respectively. Find the model of the system. The (two) outputs required are
the density of the solution in each of the tanks.

Γwater [m3/s]
Γsalt [kg/s]

ρ1 mixer
h1 h2 ρ2

P
fA fB
tank 1 tank 2
UNIVERSITY OF NATAL
School of Electrical and Electronic Engineering
SYSTEMS AND SIMULATION - DNEL3SS1- June 2000
Page 2 of 4
Question 2 (20 marks)
a) For fixed ∆ti+1=∆t, the linear equation, x& = A x , x( t 0 ) = x0 has the solution,

( )
x( t i +1 ) = e A∆t x( t i ) = ∑ A k ∆t k k! x( t i )
k =0
A 2rd order Runge Kutta method (not modified Euler) is,
xi+1 = xi + ∆t ϕ (xi, ti, ∆t)
3 1
ϕ = ϕ1 + ϕ 2
4 4
with,
ϕ1 = f (x i , t i )
 3 3 
ϕ 2 = f  x i + ∆t ϕ1 , t i + ∆t 
 2 2 

For the above linear equation, show that this method is 2nd order and not 3rd order. (6)

b) Explain how two types of step-size control algorithms work. (You may wish to use a
combination of explicit- and modified-Euler as an example.) (8)

c) Find the observer form state space description of the following system:
2 (s / 3 + 1)
P(s) =
( )
(s / 2) + 2 × 0.5(s / 2) + 1 (s / 1 + 1)
2
(6)

Question 3 (20 marks)


a) A system has the following model:
x& 1 = x 2
x& 2 = − x 2 (2 + cos( x1 ) ) − 3 sin( x1 − u )
y = tan( x1 − u )
Find the linearised state space model about the steady state with x = (0, 0)T. (6)

b) Draw a Simulink implementation diagram of the system in Question 3a. The input comes
from a function generator and the output and simulation time must be sent to the
workspace. (5)

c) Show how would you do the following in Simulink


i) Set the initial condition of an integrator to 123. (1)
ii) Run a simulation for 20s with a minimum of 100 output data points. (2)
iii) Evaluate the flux density, B given the magnetic field intensity, H. The B-H
magnetisation data is available numerically. (2)
 A B 
iv) Simulate a linear system given the state space matrices, S =   (2)
 C D
v) Generate the bounded ramp signal shown. (2)
u(t)
2

2 t
UNIVERSITY OF NATAL
School of Electrical and Electronic Engineering
SYSTEMS AND SIMULATION - DNEL3SS1- June 2000
Page 3 of 4
Question 4 (20 marks)

a) Find the state space model of the following electrical circuit. Note that the input u2 is a
current source and the output, y2is the voltage across this source. Be careful to work
systematically. (20)
y1
x3

R1 R2 L3
+ x2
u1 u2 y2 C1 x1
L2

Question 5 (23 marks)


a) The Bode plot of a second order, low pass system (such as was measured in the practical
SS2) is shown below. Find the plant model and hence sketch the step response showing
salient features (tp, Mp, tr, ts, etc). (8)
Bode Diagram s

From: U(1)
5

0
-5
Phase (deg); Magnitude (dB )

-10
-15

-20
-25

-30

-30

-60
To: Y(1)

-90

-120

-150

-180
10 1 10 2 10 3

Frequenc y (rad/sec)

b) Draw the Bode plot (on semi-logarithmic graph paper) of the transfer function,
2 (s / 1 + 1) e −0.1s
P(s) = (15)
(s / 5)2 + 2 × 0.3(s / 5) + 1
UNIVERSITY OF NATAL
School of Electrical and Electronic Engineering
SYSTEMS AND SIMULATION - DNEL3SS1- June 2000
Page 4 of 4
Question 6 (14 marks)
a) Find the z-transform of the following system transfer function assuming the input is a unit
staircase (i.e. zero order held). The sampling rate is T=0.2.

s+2
P(s) = (6)
(s + 1)(s + 5)

b) Given the z-transform of a sequence, U(z) = Z{ui},


z
U( z ) =
2
z − 0.8z + 0.6

i) Find the first 4 terms of ui by long division. (4)


ii) Find the underlying signal u(t) assuming that T=1 and no aliasing has occurred.
(4)

Potrebbero piacerti anche