Professional Documents
Culture Documents
~o/
,. ?J
\.....-
/
10,000
W = Kg/s
IL = cp
cQ D=m
P = Kg/m3
1,000
a = dyne/cm
K1 = 513 and K2 = 2.16 when the units of the data are
English
100 W = lb/h
10 100 1,000 10,000 IL = cp
B. D = ft
Fig. 1-Program's approximation of the Baker graph. P = Ib/cu3
a = dyne/cm
Determination of two-phase flow by computar. In a recent
paper Soliman3 provided a BASIC program to compute two- The computar programo Table 1 is a listing of the computer
~ phase pressure drop based on the excellent work of Kern.2 program written in BASIC. It has two options for the input
To determine the pattern of two-phase flow, Soliman re- of the data: metric or english units. Table 2 is an example of
duced the Baker graph to four regions instead of the seven the program output illustrating one zone in the Baker graph. /
found experimentally. This makes the computer program- We think that the errors in using our approximations are of
mirig a great deal easier. However, we think that Ibis is an the same magnitude as the inherent errors of the original
oversimplification. Baker graph.
TABLE1
,.- 10 REM PROGRAMA "BAKER" EN CINTA 01-F
11 REM IPAKO INe, DE PROCESO -1984-'
12 REM
I~
20
30
REM DEFINES
PRINTER
THE PRINTER
IS 7,I',WIDTH(76) TABLE
2
40 OPTION BASE 1
I 50 REM
I 60 REM DATA INPUT METR lC LJNITS
70 REM
80 INPUT "ENGLISH UNITS? <Y/N)",S$ 7,488
LiquId flo" rate(Kg/s):""""
90 INPUT "LIQUID FLUW RATE?" ,G1 1.176
Gas Ho" rate<Kg/s): ,
100 INPUT "GAS FLOW RATE?" G2 499,888
Liquid denslty(Kg/M3):"""",
110 INPUT "LIQUID DENSIrY?:', RI 29,637
Gas densIty(Kg/M3):""""""
120 INPUT "GAS DENSITY?",R2 ,102
130 INPUT "LIQUID Pipo dinMeter'(M):"""""",
VISCOSITy?" ,VI Uq,Jid vlscoslty(cp):"""-",, ,11
140 INPUT "LIQUID SURFACE TENSION?", T 5,07
150 INPUT "P IPE DIAMETER?", LiquId surface tensIon(dynes/cM)
D
160 REM
170 REM DATA PRINTING RESLJL TS
180 REM
190 U$=" METRIC UNITS" BLJBBLE
200 IF S$="Y" THEN U$=" ENGLISH UNITS" X:" '" '" " " '" " " " '" " , , , 244,886469269
Y: , , , , , , " , , " , , , '" , , , , , , " , , , 30180,2515474
210 PRINT U$ ,LIN(2)
220 IF S$="Y" THEN 290
230 PRINT "LiquId flo" rate(Kg/s): "¡G1 ENGUSH UNITS
;,40 prnNT "Ga', flo" rote(Kg/s):""""", "¡G2
250 PRINT "LiquId denslty(Kg/M3):"""", " 'R 1 59428,57
Liquid flo" rate<lb/h):""""
260 PRINT "Gas densIty(Kg/M3):"""""" ";R2 Gas Ho" rate<lb/h):""""", .9333,333
270 PRINT "PIpe dIaMeter(M):"""""", " ¡D 31.204
280 GOTa 340 Uquid density(lb/ft3)"""",
Gas denslty<lb/ft3):""-"",,, 1.85
290 PRINl "LiquId nO" rote(lb/h):"""" "¡ GI Pipo dioMeter(lnch):"",-",,:, 4,01967
300 PRIN1 "Gas flow rote(lb/h):""""", " ¡G2 ,11
Liquid vi""oslty(cp):"",..""
310 PRINT "LiquId densIty(lb/ft3)"""", " ¡ R1 UquId surface tension(dynes/cM) 5,07
320 PRINT "Gas denslty(lb/ft3):""""", " ¡R2
330 PRINT "PIpe dIaMeter(lnch): , " ¡D
\.......- 340 PRINT "LIquId ulscoslty(cp):""""" " ¡VI RESUL T5
350 PRINT "LiquId surface tensIon(dyneslcM) "¡ T, UN (2) BUBBLE
360 PRINT "RESULTS"
X: , , , , , , , , " , , , , , , , , , , , , , .-, , , , , 244,839562172
370 PRINT LIN(1)
371 -REM Y:"" " "',"', """ " '" " " 30111,0615956
380 REM DEFINES SYSTEM OF UNITS
381 REM
:\90 IF S$,""Y" THEN 450
400 T=T/1000
410 VI=V1/1000
420 KI=2,1039
430 K2=25524,617 Although the program was originally written for a HP-
440 GOTa 480
450 K 1"531 9835 and IBM PC, we rewrote it in a version simple enough
460 K2=2, 16 to run in most personal computers. It is easily converted to a
470 D=D*,08333
480 A=PI*D*D/4 subroutine by changing the GOTO 1020's to RETURN's.
490 X=K1*(G1/G2)*( (R1*R2)', 5/R1' ,667)* (V1 A, 333/1>
500 Y=K2*GU(A*(R1*R2)',5)
'-- 510
520
IF X)10000
lF X< ,1 THEN 1010
THEN lOtO
'- 680
690
700
710
720
IF L4 )C3 THEN 910
IF X)4,OI:!
GOTa 950
IF L4<C5
GOTa 950
THEN 710
THEN 930
" "..,
, "¡X
"¡Y
resources for engineering. He is a part-time professor of chemical en-
gineering at the University of La Plata, Argentina. He holds a as de-
1040 END gree from the University of La Plata and an MS degree fram the Univer-
sity of Minnesota, both in chemical engineering.