[ Team LiB ] Previous Section Next Section

Student Exercises

1:

Consider the gas drum in Example 2.1. Often the outlet flow relationship is actually nonlinear, with the form

graphics/02equ106.gif


so the modeling equation is

graphics/02equ107.gif


Discuss whether this is now a self-regulating process. Also, sketch the steady-state input (qis) -output (Ps) curve, based on the flow coefficient, b = 1 mol · s-1 · atm-1/2 and a constant header pressure, Ph = 1 atm.

2:

Consider the heated mixing tank example, which had the modeling equations

graphics/02equ108.gif


For steady-state inlet and outlet flow rates of 100 liters/minute, a liquid volume of 500 liters and inlet and outlet temperatures of 20° and 40°C, respectively:

  1. Find the steady-state heating rate, Q.

  2. Consider a step inlet temperature change from 20° to 22°C. Use Euler integration with a integration step size of 0.5 minutes to find the vessel temperature response for the first 2 minutes. Compare this with MATLAB ode45 (see the ODE module).

3:

Often liquid surge tanks (particularly those containing hydrocarbons) will have a gas "blanket" of nitrogen or carbon dioxide to prevent the accumulation of explosive vapors above the liquid, as depicted below.

graphics/02fig11a.gif

Develop the modeling equations with gas pressure and liquid volume as the state variables. Let qf and q represent the inlet and outlet gas molar flow rates, Ff and F the liquid volumetric flow rates, V the constant (total) volume, Vl the liquid volume, and P the gas pressure. Assume the ideal gas law. Show that the modeling equations are

graphics/02equ109.gif


and state any other assumptions.

4:

Consider the ethylene glycol problem (Example 2.2). If two 800-gallon reactors are placed in series, what volumetric flow rate is necessary to produce 100 million lb/year of ethylene glycol? What percentage savings is this compared with using a single 800-gallon reactor?

5:

Consider the ethylene glycol problem (Example 2.2). Solve the dynamic equations using ode45 (see the ODE module), for a step change in space velocity from 0.0778 to 0.0817 min-1. Compare your plots with those shown in Figure 2-4.

6:

Semibatch reactors are operated as a cross between batch and continuous reactors. A semibatch reactor is initially charged with a volume of material, and a continous feed of reactant is started. There is, however, no outlet stream. Develop the modeling equations for a single first-order reaction. The state variables should be volume and concentration of reactant A.

7:

A stream contains a waste chemical, W, with a concentration of 1 mol/liter. To meet Environmental Protection Agency and state standards, at least 90% of the chemical must be removed by reaction. The chemical decomposes by a second-order reaction with a rate constant of 1.5 liter/(mol hr). The stream flow rate is 100 liter/hour and two available reactors (400 and 2000 liters) have been placed in series (the smaller reactor is placed before the larger one).

  1. Write the modeling equations for the concentration of the waste chemical. Assume constant volume and constant density. Let

    Cw1 = concentration in reactor 1, mol/liter

    Cw2 = concentration in reactor 2, mol/liter

    F = volumetric flow rate, liter/hr

    V1 = liquid volume in reactor 1, liters

    V2 = liquid volume in reactor 2, liters

    k = second-order rate constant, liter/(mol hr)

  2. Show that the steady-state concentrations are 0.33333 mol/liter (reactor 1) and 0.09005 mol/liter (reactor 2), so the specification is met.

    (Hint: You need to solve quadratic equations to obtain the concentrations.)

  3. Linearize at steady state and develop the state space model (analytical) of the form

    graphics/02equ110.gif


    where

    graphics/02equ110a.gif


  4. Show that the A and B matrices are

    graphics/02equ111.gif


    (also, show the units associated with each coefficient).

  5. Assuming that each state is an output, show that the C and D matrices are

    graphics/02equ112.gif


  6. Find the eigenvalues of A using the MATLAB eig function, and find the eigenvalues by hand, by solving det (lI - A) = 0.

  7. Solve a for the nonlinear differential equations, using ode45. Compare the linear and nonlinear variables on the same plots (make certain you convert from deviation to physical variables for the linear results) for a step change in the flow rate from 100 liters/hour to 110 liters/hour. Assume the initial concentrations are the steady-state values (0.3333 and 0.09005). Compare the linear and nonlinear responses of the reactor concentrations. Is the removal specification still obtained?

  8. Would better steady-state removal of W be obtained if the order of the reaction vessels was reversed? Why or why not? (Show your calculations.)

8:

Consider Example 2.5, the stirred-tank heater example. Read and work through the example. Use the following parameters and steady-state values:

Fs = 1 ft3/min

rcp = 61.3 Btu/(°F · ft3)

rjcpj = 61.3 Btu/(°F · ft3)

Tis = 50°F

Ts = 125°F

V = 10 ft3

Tjis = 200°F

Tjs = 150°F

Vj = 2.5 ft3

  1. By solving the steady-state equations, verify that the following values obtained for UA (overall heat transfer coefficient * area for heat transfer) and Fjs (steady-state jacket flow rate) are correct:

    graphics/02equ.gif


  2. Find the values of the matrices in the state space model.

  3. Write a function file, heater.m (example shown below), to be used with ode45 (Module 3) to solve the two nonlinear ordinary differential equations.

  4. First, verify that the steady-state state variable values are correct by simulating the process with no change in the jacket flow rate.

  5. Now, perform simulations for small and large step changes in the jacket flow rate. Use the MATLAB step command to solve for the linear state space model. Realize that the step results are based on deviation variables and for a unit step change in input one (jacket flow rate), and convert the linear states to physical variable form.

    We now consider the important issue of scale-up: Pilot plants are small-scale (intermediate between lab-scale and full-size manufacturing-scale) chemical processes, used to understand process operating behavior before the manufacturing process is designed. Here we discover the effect of vessel scale on the heat transfer removal capability of a vessel.

  6. Consider now a vessel that can handle 10 times the throughput of the previous vessel (that is, 10 ft3/min rather than 1 ft3/min). Assume that the same residence time is maintained (V/F = 10 minutes), so the volume of the new vessel is 100 ft3. Assume that the heat transfer coefficient (U) remains constant, but that the heat transfer area changes. Assume that the vessel can be modeled as a cylinder, with the height (L) = 2*diameter (D). Find the value of UA for the larger vessel.

  7. For the larger vessel, find the new steady-state value of jacket temperature that must be used to maintain the vessel temperature at T = 125°F. Also, find the new steady-state jacket flow rate. Hint: Solve the two modeling equations at steady state to obtain these values. Discuss the effect of process scale-up on the operating conditions. How large can the vessel become before the jacket temperature is too high (it approaches the inlet jacket temperature)?

  8. For the larger vessel, find the new state space model, assuming that the jacket volume is 0.25 times the vessel volume. Calculate the eigenvalues of the A matrix. How do they compare with the smaller vessel?

  9. Find the step response for the nonlinear and linear (state space) systems for a step increase of 0.1 ft3/min in jacket flow rate. How do these compare with the smaller vessel?

  10. Find the step response for the nonlinear and linear (state space) systems for a step increase of 10% in the jacket flow rate. How do these compare with the smaller vessel?

Example m-file to be used by ode45


function xdot = heater(t,x,flag,delFj);
%
% Dynamics of a stirred tank heater
% (c) 1994 - B.W. Bequette
% 8 July 94
% 23 Jan 01 - revised for jacket step change in argument list
%
% x(1) = T = temperature in tank
% x(2) = Tj = temperature in jacket
% delFj = change in jacket flowrate
% F = Tank flowrate
% Tin = Tank inlet temperature
% Tji = Jacket inlet temperature
% V = Tank volume
% Vj = Jacket volume
% rhocp = density*heat capacity
% rhocpj = density*heat capacity,jacket fluid
%
% parameter and steady-state variable values are:
%
 F = 1;
 Fjs = 1.5;
 Ti = 50;
 Tji = 200;
 V = 10;
 Vj = 2.5;
 rhocp = 61.3;
 rhocpj= 61.3;
 UA = 183.9;
%
% step change in jacket flow
%
 Fj = Fjs + delFj;
 T = x(1);
 Tj= x(2);
%
% odes
%
 dTdt = (F/V)*(Ti - T) + UA*(Tj - T)/(V*rhocp);
 dTjdt = (Fj/Vj)*(Tji - Tj) - UA*(Tj - T)/(Vj*rhocpj);
 xdot = [dTdt; dTjdt];
%
% generate simulations using
% [t,x] = ode45('heater',tspan,x0,[],delFj);
% where tspan = [0 30], for example

To make the runs go faster, you may wish to generate and run the following script file:


%
% runs stirred tank heater example - 23 Jan 01
% step changes to stirred tank heater
%
% make certain you enter the step change value (delFj)
% before running this file
% also, generate function file with the following first line:
% function xdot = heater(t,x,flag,delFj);
%
 options = odeset('RelTol',1e-6,'AbsTol',[1e-6 1e-6]);
%
 [t,x] = ode45('heater',tspan,x0,options,delFj);
%
 figure(1)
 subplot(2,1,1),plot(t,x(:,1))
 title('nonlinear, using ode45')
 xlabel('time, min')
 ylabel('temp, deg F')
 subplot(2,1,2),plot(t,x(:,2))
 xlabel('time, min')
 ylabel('jacket temp, deg F')
%
% state space model with unit step change
 a = [-0.4 0.3;1.2 -1.8];
 b = [0;20];
 c = [1 0;0 1];
 d = 0;
 sys = ss(a,b,c,d);
 [ylin,tlin] = step(sys);
%
 figure(2)
 subplot(2,1,1),plot(tlin,ylin(:,1))
 title('linear state space, unit step, deviation')
 xlabel('time, min')
 subplot(2,1,2),plot(tlin,ylin(:,2))
 xlabel('time, min')
%
% scale deviation by delFj
 ylinscale = ylin*delFj;
% plot in physical variable form
 figure(3)
 subplot(2,1,1),plot(tlin,125+ylinscale(:,1))
 title('linear state space, physical magnitude')
 xlabel('time, min')
 subplot(2,1,2),plot(tlin,150+ylinscale(:,2))
 xlabel('time, min')
% compare linear and nonlinear on same plot
 figure(4)
 subplot(2,1,1),plot(t,x(:,1),tlin,125+ylinscale(:,1),'--')
 title('nonlinear vs. linear')
 xlabel('time, min')
 ylabel('temp, deg F')
 legend('nonlinear','linear')
 subplot(2,1,2),plot(t,x(:,2),tlin,150+ylinscale(:,2),'--')
 xlabel('time, min')
 ylabel('jacket temp, deg F')
 legend('nonlinear','linear')


    [ Team LiB ] Previous Section Next Section