Professional Documents
Culture Documents
2.1
40.7
40.6
Outlet Temperature C
dP
RT
RT
=
qi
P Ph
dt
V
V
At steady state
dP
RT
RT
=
qi
P Ph = 0
dt
V
V
RT
RT
Ps Phs =
qis
V
V
q2
Ps = Phs + is2
40.5
40.4
40.3
40.2
40.1
ode45
Euler
40
0.2
0.6
0.8
1
Time min
1.2
1.4
1.6
1.8
Thus we can conclude that it is a selfregulating system, as for a change in input it will attain a new
steadystate.
The sketch of the steadystate inputoutput curve
should look like gure 2-1.
25
Ps
0.4
20
100
dT
=
(22 T ) + 4
dt
500
15
10
xk = f (xk )
5
0.5
1.5
2.5
q
3.5
4.5
where f () is the right hand side of the dierential equation, and x is the state, in this case T .
Using t = 0.5, and for a total of 2 minutes, we
have
is
x0 = 40
x1
2.2
x2
x3
dV
= Fi F
dt
dT
Fi
= (Ti T ) + Q
dt
V
x4
1
(22 40) + 4 = 40.2
= 40 + 0.5
5
1
(22 40.2) + 4 = 40.38
= 40.2 + 0.5
5
1
(22 40.38) + 4 = 40.542
= 40.38 + 0.5
5
1
(22 40.542) + 4 = 40.6878
= 40.542 + 0.5
5
2.3
CAi
Since the model equations have only two states, Vl
CP 1s = Fs s
and P , we have to assume the following are constant:
kV + 1
density of the liquid (), temperature (T ), the ideal
gas constant (R) and the molecular weight of the gas We need to meet a yearly production, so our nal
constraint is
(M W ).
Starting with the balance of the liquid mass in the
Fs CP 1s S = 100x106 lb/yr
system, we have
Where S = 62lb/lbmol 504000min/yr is our converdVl
dMl
=
= Ff F
sion factor, assuming 350 days of operation in a year.
dt
dt
Then,
dVl
CAi
= Ff F
Fs Fs s S = 100x106 lb/yr
dt
kV + 1
For the balance of the mass of gas
solving for the owrate, we get Fs = 7.9256ft3 /min.
Now we need to consider the second reactor in sednM W
= qi M Wi qM W
ries,
which will also change the owrate needed to
dt
meet production levels. The equations for the second
dn
= qi q
reactor are
dt
F
dCA2
= (CA1 CA2 ) kCA2
dt
V
F
dCP 1
= (CP 1 CP 2 ) + kCA2
dt
V
From the ideal gas law P Vg = nRT , where the volume of gas is Vg = V Vl Then,
d(P Vg )
nRT
=
dt
dt
dn
d(V Vl )
dP
+ (V Vl )
= RT
P
dt
dt
dt
and using the previously derived expressions for
and Vdtl
P
dn
d(V Vl )
dP
+ (V Vl )
= RT
dt
dt
dt
dVl
dP
+ (V Vl )
= RT (qi q)
P
dt
dt
P
RT
dP
=
(Ff F ) +
(qi q)
dt
V Vl
V Vl
2.4
dn
dt
kV
Fs
kV
Fs
Fs CP 2s S = 100x106 lb/yr
+ 2 CAis
S = 100x106 lb/yr
2
+1
2.5
The resulting graph should be the same as gure 2-5,
except that the time range from -1 to 0 will not appear.
d(V Ca )
= Fin CAin kV CA
dt
dV
= Fin
dt
2-2
= Fin CAin kV CA
= Fin CAin kV CA
= CA
d(V )
+ Fin CAin kV CA
dt
Fin
(CAin CA ) kCA
V
2
=
(C
C
)
kC
a11 =
wi
w1
w1
x1 ss
Cw1 V1
ss
Fs
=
2kCw1s
V1
F
f1
2
a12 =
=
(Cwi Cw1 ) kCw1
x2 ss
Cw2 V1
ss
=0
a21
a22
2.7
a. The modeling equations are
b11
F
dCw1
2
=
(Cwi Cw1 ) kCw1
dt
V1
F
dCw2
2
=
(Cw1 Cw2 ) kCw2
dt
V2
b12
b21
ss
Fs
Fs
Cw1s
Cwis = 0
V1
V1
b22
ss
1
=
(Cw1s Cw2s )
V2
F
f2
2
=
=
(Cw1 Cw2 ) kCw2
u2 ss
Cwi V2
ss
=0
F
f2
2
=
=
(Cw1 Cw2 ) kCw2
x1 ss
Cw1 V2
ss
Fs
=
V2
F
f2
2
=
=
(Cw1 Cw2 ) kCw2
x2 ss
Cw2 V2
ss
Fs
=
2kCw2s
V2
F
f1
2
=
=
(C
C
)
kC
wi
w1
w1
u1 ss
F V1
ss
1
=
(Cwis Cw1s )
V1
F
f1
2
=
=
(Cwi Cw1 ) kCw1
u2 ss
Cwi V1
ss
Fs
=
V1
F
f2
2
=
=
(C
C
)
kC
w1
w2
w2
u1
F V2
Fs
Fs
Cw2s
Cw1s = 0
V2
V2
f1 =
analytically, we have
det
then
U A = 183.9 Btu/( Fmin)
det (I A) = 0
0
=0
+ 0.320156
+ 1.25
0.05
( + 1.25)( + 0.320156) = 0
thus the eigenvalues are 1 = 1.25 and 2 =
0.320156
g. Figure 2-3 shows the plot for the linear and nonlinear responses; as it can be seen, the extraction
requirements are still met.
Response to a 10 l/min step change from steady state
0.355
Cw1 mol/l
0.35
0.345
0.34
0.335
0.33
nonlinear
linear
0
10
time (hrs)
12
14
16
18
d. Using delJ = 0, run ode45 to solve the equations dened in heater.m, then plot the two
states vs. time. The result should be constant
values that match the steady states for all time.
0.096
Cw2 mol/l
0.094
0.092
nonlinear
linear
0.09
10
time (hrs)
12
14
16
18
e. To get the desired plots for the two step responses, the mle shown in pages 74-75 can
be used, starting with the denition of the state
space linear model. Since the model is linear,
the output of the step response command can be
scaled accordingly for steps of dierent sizes by
just multiplying by delFj. Figures 4(a) and 4(b)
show the responses for a small (0.2% change in
Fj ) and a large (10% change in Fj ) steps, respectively.
f. Since we know U A for the small vessel, and we
are assuming that U remains constant, we can
nd the value of U A for a larger volume as
2.8
a. Solve the following two simultaneous equations
using the parameters and steadystate values
provided:
U Asmall
Alarge
= U Alarge
Asmall
20
23
Fs
UA
(Tis Ts ) +
(Tjs Ts ) = 0
V
V cp
Fjs
UA
(Tjins Tjs )
(Tj s Ts ) = 0
Vj
Vj j cpj
2-4
then
125.06
Tjs = 178.86 F
125.04
temp F
125.08
125.02
nonlinear
linear
125
10
15
time (min)
20
25
10
15
time (min)
20
25
30
150.1
jacket temp F
150.08
150.06
150.04
150.02
150
nonlinear
linear
30
(a)
Fs
UA
(Tis Ts ) +
(Tj s Ts ) = 0
V
V cp
V
23
U Asmall 10
0.1 (Tis Ts ) +
(Tj s Ts ) = 0
V cp
temp F
127
126.5
126
125.5
125
nonlinear
linear
0
10
15
time (min)
20
25
30
153.5
jacket temp F
153
152.5
152
151.5
151
nonlinear
linear
150.5
150
10
15
time (min)
20
25
30
(b)
Figure 2-4: Plot for 2.8e (a) small step of 0.2% (b)
large step of 10%
V
10
0
1
0.1
0
0 0
0 0
0
1.4191
0.75
0
1
C=
0
0 0
D=
0 0
0
B=
0.8456
23
2-5
125.025
125.02
125.015
125.01
nonlinear
linear
125.005
125
10
15
time (min)
20
25
30
178.93
jacket temp F
178.92
178.91
178.9
178.89
178.88
nonlinear
linear
178.87
178.86
10
15
time (min)
20
25
30
temp F
126
125.5
nonlinear
linear
125
10
15
time (min)
20
25
10
15
time (min)
20
25
30
181
jacket temp F
180.5
180
179.5
179
178.5
nonlinear
linear
30
2-6