Professional Documents
Culture Documents
Simulation Councils, Inc. (The Society for Computer SImulation), P. O. Box 2228, La Jolla, Ca. 92037
INT PROGRAM
The sixties saw the development of digital simulation pro-
grams designed to duplicate the function of the analog
computer. Many of these simulation programs have fallen
into disuse and only the best of them, such as MIMIC and
CSMP, have survived and enjoy current usage. For some
people actively engaged in chemical engineering compu-
tations, these simulation programs served to introduce
analog programmers to digital computation, but, for many, DYFLO PROGRAM
it became apparent that the principal advantage of the The general availability of programs such as INT and CSMP
simulation programs over the more basic FORTRAN was has provided a foundation for the development of the next
the availability of library routines that perform common level of sophistication: namely, dynamic simulation
mathematical procedures such as integrating differential programs. The concept here is to provide the pro-
equations, generating arbitrary functions, and solving grammer with a set of library routines that simulate the
algebraic loops. The other useful features such as equa- common &dquo;unit operations&dquo; in chemical processes, the unit
37
Figure 1 - Process input disturbances to the system and also calculates the
heat flux Q from the reactor, and the third is the REACT
EXAMPLE
module in which the reaction rates and reaction heat are
For a brief example of how such a program is used, con- calculated, based on the composition in stream #3.
sider the process shown in Figure 1. It consists of a mixing
tank where a feed stream consisting of two chemical com- The PRL subroutine controls the printing of the output
ponents (A and B) is mixed with a recycle stream con- information; namely, the state of lines 1 to 7 at one-minute
sisting of three components (A, B, and C). The flow from intervals (first argument) and also detects the end of the
the mixing tank passes to a reactor, where the reaction run (second argument). The last subroutine is from the INT
A+B-C takes place. The exit flow from the reactor is split, library and controls the integration procedure for all the
part of it being recycled to the mixing tank. This recycle integrations contained within the unit operation modules,
imposes a time lag for the fluid temperature and compo- in this case HLDP, and also controls the information stream
sitions between the split and mixing tank. The first step for in the line delay LDL.
the programmer to accomplish is to assign stream num-
bers to the various streams in the system and to indicate The output from such a program is displayed either as
the appropriate equivalent subroutine module for each numerical values of temperature composition, etc. or,
part of the process as shown in Figure 2. more conveniently, as line plots obtained from routines
that automatically specify the range of the plot and iden-
tify the variable being plotted.
Table 2 - DYFLO service routines
38
39
vapor pressure (three Antoine coefficients), two enthalpy 6 CALL STAGE (N,100 + N, 99 + N, N + 1, HL, HTC)
coefficients for both vapor and liquid, the latent heat of 5 - Main program for column
Figure
the vapor, and the activity.
It should be recognized that the dynamic programs avail-
There are several features of both the INT and DYFLO able today will inevitably be superseded by improved ver-
routines that have made the simulations of very large sions making better use of available hardware. Already,
problems a practical reality by digital simulation. The most several versions of DYFLO for use on an interactive
important of these is that where a large number of dif- terminal have been developed. One of the objectives of
ferential equations are automatically coded by gener- the program as published in the text was to stimulate the
alized calling statements, the net result is invariably a stiff
development of better programs for the future.
system; i.e., the ratio between the major and minor time
constants is very high. It can be shown that for these situa-
ABOUT THE AUTHOR
tions, the most efficient methods of solution in terms of
execution time is to use a simple Euler integration method ROGER G. E. FRANKS is a Senior Consultant, Engineering
with a fixed or externally varied step size. The INT system Computations, E. I. du Pont de Nemours & Co., Inc., and
offers three choices of integration methods, ranging from Past Chairman of Eastern Simulation Council. Mr. Franks is
simple Euler to fourth-order Runge-Kutta, which is used also the author of Mathematical modeling in chemical
for nonstiff systems. Experiments comparing execution engineering (Wiley, 1967) and numerous technical papers
times for large systems using simple Euler with fixed step on computer simulation of chemical processes. The
size vs. fourth-order RK with internally optimized step size author’s academic background includes an MS in Mechan-
show that solutions from both methods are practically the ical Engineering from the University of Pennsylvania (1957)
same, but execution times are as high as 20 times greater and a BS in the same field from Kings College of the Uni-
for the sophisticated integration method. The basic reason versity of London.
REFERENCES 4 INGELS D M MOTARD RL ADDITIONAL READING
PRODYC, asimulation program for chemical
1 FRANKS R GE FRANKS R G E
process dynamics and control
Modeling and simulation in chemical engineering Mathematical modeling in chemical engineering
University of Houston RE 4-70 Houston August New York 1967
Wiley New York 1972 1970 Wiley
2 BOBROW S JOHNSON AI PONTON J W 5 CULVER D A CARNAHAN B LUTHER H A WILKES J O
DYNSIS manual and application studies Distillation column dynamics simulation via DYFLO Applied numerical methods
McMaster University Hamilton, Ontario August Proceedings Summer Computer Simulation Con- Wiley New York 1970
1970 ference
AFIPS Press Montvale, New Jersey 1972 HURLEY EJ ROSEN E M
3 HAM P G Material and energy balance computation
Users manual — REMUS. Routine for executive 6 FRANKS R GE Wiley New York 1969
multiunit simulations Dynamic systems program for chemical engi-
University of Pennsylvania Philadelphia June 1970 neering HIMMELBLAU D M BOSCHEFF K B
Presented at the AlChE national meeting Novem- Process analysis and simulation—deterministic systems
Not copynghted Reprints available 25 for $ I. 100 for $3. ber 1971 Wiley New York 1966
40