PRINT " COAL EVALUATION PROGRAM" PRINT "NOTE: PROGRAM USES NOVEMBER 1986 STANDARDS FOR BY-PRODUCT VALUES, FIXED AND VARIABLE CONVERSION COSTS AND BULK DENSITY OIL USAGE." PRINT "UPDATING REQUIRES CHANGES IN LINES 1410, 1420, 1430, 1440, 4150, 4160, 4170, 4410, 4690 AND 4720." DIM A
(40, 40), E
(20, 50), B
(20, 50), Z
(20, 20), C
(20, 20), A$
(50), B$
(50) PRINT "THIS PROGRAM IS DESIGNED FOR A BLEND CONTAINING UP TO SEVEN COALS PLUS PETCOKE. ENTER THE NUMBER OF COALS IN THE BLEND." PRINT "ENTER NAME OF COAL" PRINT "ENTER DATA IN THIS ORDER: COST/TON, %WET COAL IN BLEND, %COAL H20, AND (DRY BASIS) %FIXED CARBON, %ASH, %VOLATILE MATTER, %SULFUR, %OXYGEN, BTU/LB " INPUT C
(N
, 1), A
(N
, 1), B
(N
, 5), B
(N
, 1), B
(N
, 2), B
(N
, 3), B
(N
, 4), B
(N
, 21), B
(N
, 22) N = C
PRINT "DOES THE BLEND CONTAIN PETCOKE? ENTER YES OR NO " A$(8) = "PETCOKE"
PRINT "ENTER DATA IN THIS ORDER: COST/TON, %WET PETCOKE IN BLEND, %PETCOKE H20, AND (DRY BASIS) %FIXED CARBON, %ASH, %VOLATILE MATTER, %SULFUR, %OXYGEN, BTU/LB" INPUT C
(8, 1), A
(8, 1), B
(8, 5), B
(8, 1), B
(8, 2), B
(8, 3), B
(8, 4), B
(8, 21), B
(8, 22) A$(9) = "COAL PORTION"
A$(10) = "BLEND"
A$(12) = "FCE COKE"
A$(i) = A$(N)
PRINT "ENTER THE PREDICTED COKE STABILITY" PRINT #1, " COAL YIELD EVALUATION " PRINT #1, " COAL ANALYSIS " PRINT #1, " ***************************DRY BASIS****************************** " PRINT #1, "COAL NAME WET COAL H20 F.C. ASH VOL. MAT S O2 " PRINT #1, "IN BLEND IN MIX % % % % % % " A(10, 1) = A(10, 1) + A(N, 1)
E(1, 5) = E(1, 5) + A(N, 1) * B(N, 5) / 100
E(1, 1) = E(1, 1) + A(N, 1) * ((100 - B(N, 5)) / 100) * B(N, 1) / 100
E(1, 2) = E(1, 2) + A(N, 1) * ((100 - B(N, 5)) / 100) * B(N, 2) / 100
E(1, 3) = E(1, 3) + A(N, 1) * ((100 - B(N, 5)) / 100) * B(N, 3) / 100
E(1, 4) = E(1, 4) + A(N, 1) * ((100 - B(N, 5)) / 100) * B(N, 4) / 100
E(1, 21) = E(1, 21) + A(N, 1) * ((100 - B(N, 5)) / 100) * B(N, 21) / 100
E(1, 22) = E(1, 22) + A(N, 1) * ((100 - B(N, 5)) / 100) * B(N, 22) / 100
P$ = "\ \###,## ##,### ##,### ##,### ##,### ##,### ##,### "
PRINT #1, USING P$; A$
(N
); A
(N
, 1); B
(N
, 5); B
(N
, 1); B
(N
, 2); B
(N
, 3); B
(N
, 4); B
(N
, 21) PRINT #1, USING P$; A$
(8); A
(8, 1); B
(8, 5); B
(8, 1); B
(8, 2); B
(8, 3); B
(8, 4); B
(8, 21) N = C
PRINT #1, " BLEND ANALYSIS" ' COAL BLEND LESS PETCOKE ANALYSIS
A(9, 1) = A(10, 1) - A(8, 1)
E(11, 5) = (E(1, 5) - A(8, 1) * B(8, 5) / 100) * 100 / A(9, 1)
E(11, 1) = (E(1, 1) - A(8, 1) * B(8, 1) / 100) * 100 / A(9, 1)
E(11, 2) = (E(1, 2) - A(8, 1) * B(8, 2) / 100) * 100 / A(9, 1)
E(11, 3) = (E(1, 3) - A(8, 1) * B(8, 3) / 100) * 100 / A(9, 1)
E(11, 4) = (E(1, 4) - A(8, 1) * B(8, 4) / 100) * 100 / A(9, 1)
E(11, 21) = (E(1, 21) - A(8, 1) * B(8, 21) / 100) * 100 / A(9, 1)
E(11, 22) = (E(1, 22) - A(8, 1) * B(8, 22) / 100) * 100 / A(9, 1)
E(8, 1) = B(8, 1) * (100 - B(8, 5)) / 100
E(8, 2) = B(8, 2) * (100 - B(8, 5)) / 100
E(8, 3) = B(8, 3) * (100 - B(8, 5)) / 100
E(8, 4) = B(8, 4) * (100 - B(8, 5)) / 100
E(8, 21) = B(8, 21) * (100 - B(8, 5)) / 100
PRINT #1, " **************************WET BASIS**************** " PRINT #1, " WET COAL H20 F.C. ASH VOL.MAT. S O2 " PRINT #1, " IN MIX% % % % % % % " Y = E(11, 4)
X = E(11, 21)
PRINT #1, USING P$; A$
(9); A
(9, 1); E
(11, 5); E
(11, 1); E
(11, 2); E
(11, 3); Y; X
Y = E(8, 4)
X = E(11, 21)
PRINT #1, USING P$; A$
(8); A
(8, 1); E
(8, 5); E
(8, 1); E
(8, 2); E
(8, 3); Y; X
Y = E(1, 4)
X = E(1, 21)
PRINT #1, USING P$; A$
(10); A
(10, 1); E
(10, 5); E
(10, 1); E
(10, 2); E
(10, 3); Y; X
' PRODUCED COKE (COKE PUSHED FROM THE OVENS)=COAL+PETCOKE
Z(4, 1) = E(11, 1) + E(11, 2) + 9.000001E-02 * E(11, 3) + 1.18 * (100 - E(11, 5)) / 100
Z(4, 1) = (Z(4, 1) / 100) * 2000 * (A(9, 1) / 100)
Z(4, 2) = (B(8, 1) + B(8, 2)) * ((100 - B(8, 5)) / 100)
Z(4, 2) = (Z(4, 2) / 100) * 2000 * (A(8, 1) / 100)
Z(4, 3) = Z(4, 1) + Z(4, 2)
Z(5, 1) = E(11, 1) + E(11, 2)
Z(6, 1) = E(11, 3) - E(11, 21)
' T IS THE COKING TEMPERATURE IN KELVIN
T = 1323
Z(6, 1) = (Z(6, 1) ^ (1.26 * (T / 1000) ^ 1.4)) / (9.5 * (T / 1000) ^ 7.3)
Z(5, 1) = Z(5, 1) + Z(6, 1)
Z(5, 1) = (Z(5, 1) / 100) * 2000 * (A(9, 1) / 100)
Z(5, 2) = (B(8, 1) + B(8, 2)) * ((100 - B(8, 5)) / 100)
Z(5, 2) = (Z(5, 2) / 100) * 2000 * (A(8, 1) / 100)
Z(5, 3) = Z(5, 1) + Z(5, 2)
Z(6, 1) = (1 / 2) * (Z(4, 1) + Z(5, 1))
Z(6, 2) = (1 / 2) * (Z(4, 2) + Z(5, 2))
Z(6, 3) = (1 / 2) * (Z(4, 3) + Z(5, 3))
' TAR YIELD
Z(1, 1) = 8.399999 * (E(11, 3) - E(11, 21)) ^ 2 / T
Z(1, 1) = (Z(1, 1) / 100) * (A(9, 1) / 100) * 2000
Z(1, 2) = .95 * B(8, 3) * ((100 - B(8, 5)) / 100)
Z(1, 2) = (Z(1, 2) / 100) * (A(8, 1) / 100) * 2000
Z(1, 3) = Z(1, 1) + Z(1, 2)
' LIGHT OIL YIELD
Z(2, 1) = -.284 + .0384 * E(11, 3)
Z(2, 1) = (Z(2, 1) / 100) * (A(9, 1) / 100) * 2000
Z(2, 2) = 0
Z(2, 3) = Z(2, 1) + Z(2, 2)
' COKE OVEN GAS YIELD
Z(3, 1) = 14500 * E(11, 1) / 100
Z(3, 1) = .105 * (E(11, 22) - Z(3, 1))
Z(3, 1) = Z(3, 1) * (T / E(11, 3)) ^ (1 / 2)
Z(3, 1) = Z(3, 1) * 2000 / (500 * 35.6)
Z(3, 1) = E(3, 1) * (A(9, 1) / 100)
Z(3, 2) = .05 * B(8, 3) * (100 - B(8, 5)) / 100
Z(3, 2) = (Z(3, 2) / 100) * 2000
Z(3, 2) = Z(3, 2) * (A(8, 1) / 100)
Z(3, 3) = Z(3, 1) + Z(3, 2)
' DETERMINE COKE FC, ASH, VM AND S ANALYSIS ON A DRY WT BASIS
A(12, 1) = (Z(6, 3) / 2000) * 100
E(12, 2) = (E(1, 2) / A(12, 1)) * 100
E(12, 3) = .9
E(12, 4) = .6 * (A(9, 1) / 100) * E(11, 4)
E(12, 4) = E(12, 4) + .8 * (A(8, 1) / 100) * E(8, 4)
E(12, 4) = (E(12, 4) / A(12, 1)) * 100
E(12, 1) = 100 - E(12, 2) - E(12, 3)
X = E(12, 4)
Q$ = "THE OXYGEN CONTENT OF THE WET COAL OPRTION OF THE BLEND IS BY WT ##,###%"
R$ = "THE HEATING VALUE OF THE WET COAL PORTION OF THE BLEND IN BTU/LB IS #####"
' COKE OVEN GAS FOR UNDERFIRING REQUIREMENT
' 1,022 BTU/LB OF DRY COAL; 1,710 BTU/LB OF WATER
' C.O.G. IS AT 35.6 CU FT/LB AND 500 BTU/LB OF WATER
Z(3, 4) = 1022 * 2000 * ((100 - E(1, 5)) / 100)
Z(3, 4) = E(3, 4) + 1710 * 2000 * (E(1, 5) / 100)
Z(3, 4) = Z(3, 4) / (500 * 35.6)
'PRODUCED COKE TO FURNACE COKE, BREEZE AND BUCKWHEAT
'L=L(2,1); M=E(2,2); S=E(1,17); N=L(1,1)
'BREEZE; PRODUCED COKE ASH; STABILITY; FURNACE COKE
M = E(12, 2)
L = .79 + (1.824 * M - .152 * S)
Z(7, 3) = Z(6, 3) * (L / 100)
Z(7, 5) = Z(7, 3)
Z(8, 3) = Z(6, 3) - Z(7, 3)
Z(i, 5) = Z(i, 3) - Z(i, 4)
'PRODUCTS PER NT OF DRY FURNACE COKE
Z(i, 6) = Z(i, 5) * (2000 / Z(8, 5))
'UNIT VALUES
Z(1, 7) = .38 / 9.68 ' 1410
Z(2, 7) = .5 / 7.41 ' 1420
Z(3, 7) = (2.94 / 1000000!) * 500 * 35.6 ' 1430
Z(7, 7) = 39.7 / (2000 * (100 - 12) / 100) ' 1440
'DETERMINE VALUE PER NT OF FURNACE COKE
Z(i, 8) = Z(i, 6) * Z(i, 7)
PRINT #1, " PRODUCTS OF COKING " B$(1) = "COAL"
B$(2) = "PETCOKE"
B$(3) = "BLEND"
B$(4) = "USED"
B$(5) = "PRODUCT"
B$(6) = "/NT COKE"
B$(7) = "$/LB"
B$(8) = "$/NT COKE"
PRINT #1, "ITEM TAR L.OIL COKE OVEN COKE COKE FURNACE" PRINT #1, "LB/NT GAS TOTAL BREEZE COKE " S$ = "\ \ ###.#### ###.#### ###.#### ###.#### ###.#### ###.####"
PRINT #1, USING S$; B$
(i
); Z
(1, i
); Z
(2, i
); Z
(3, i
); Z
(6, i
); Z
(7, i
); Z
(8, 1) PRINT #1, " COKE PRODUCED FROM COAL ONLY TOTAL COKE BREEZE & FURNACE" PRINT #1, " FORMULA 1 FORMULA 2 AVERAGE PRODUCED BUCKWHEAT COKE " T$ = " ####.## ####.## ####.## ####.## ####.## ####.##"
PRINT #1, USING T$; Z
(4, 1); Z
(5, 1); Z
(6, 1); Z
(6, 3); Z
(7, 3); Z
(8, 3) 'COAL COST
C(9, 2) = 2000 / Z(8, 5)
C(i, 2) = C(9, 2) * A(i, 1) / 100
C(i, 3) = C(i, 2) * (100 - B(i, 5)) / 100
C(i, 4) = C(i, 1) * C(i, 2)
C(9, 3) = C(9, 3) + C(i, 3)
C(9, 4) = C(9, 4) + C(i, 4)
C(9, 1) = C(9, 4) / C(9, 2)
PRINT #1, " COAL NAME UNIT WET WET COAL NT/ DRY COAL NT/ COAL COST " PRINT #1, " IN BLEND COAL COST NT DRY NT DRY $/NT OF DRY " PRINT #1, " $/NT FURNACE COKE FURNACE COKE FURNACE COKE " U$ = "\ \ ##.## ##.## ##.## ###.###"
PRINT #1, USING U$; A$
(i
); C
(i
, 1); C
(i
, 2); C
(i
, 3); C
(i
, 4) PRINT #1, USING U$; A$
(8); C
(8, 1); C
(8, 2); C
(8, 3); C
(8, 4) PRINT #1, USING U$; A$
(10); C
(9, 1); C
(9, 2); C
(9, 3); C
(9, 4) 'WET COAL BLEND, DRY COAL BLEND AND COKE ANALYSIS
'WET COAL BLEND ANALYSIS
A = A(10, 1)
B = E(1, 5)
C = E(1, 1)
D = E(1, 2)
E = E(1, 3)
F = E(1, 4)
A$ = "WET BLEND"
PRINT #1, USING P$; A$; A; B; C; D; E; F; E
(1, 21) 'DRY COAL BLEND ANALYSIS
A = A(10, 1) - E(1, 5)
C = E(1, 1) * 100 / A
D = E(1, 2) * 100 / A
E = E(1, 3) * 100 / A
F = E(1, 4) * 100 / A
G = E(1, 21) * 100 / A
H = E(1, 22) * 100 / A
A$ = "DRY BLEND"
E(1, 5) = 0!
PRINT #1, USING P$; A$; A
(10, 1); E
(1, 5); C; D; E; F; G
V$ = "THE HEATING VALUE OF THE WET BLEND IN BTU/LB IS #####"
W$ = "THE HEATING VALUE OF THE DRY BLEND IN BTU/LB IS #####"
A$(12) = "FURNACE COKE"
A$(13) = "TOTAL COKE"
PRINT #1, " DRY COKE H20 F.C. ASH VOL. MAT. S " PRINT #1, ' YIELD% % % % % % " PRINT #1, USING P$; A$
(13); A
(12, 1); E
(12, 5); E
(12, 1); E
(12, 2); E
(12, 3); X
Y = (Z(8, 3) / 2000) * 100
PRINT #1, USING P$; A$
(12); Y; E
(12, 5); E
(12, 1); E
(12, 2); E
(12, 3); X
PRINT #1, " DESCRIPTION $NT DRY $NT DRY " PRINT #1, " FURNACE COKE FURNACE COKE " PRINT #1, " RAW MATERIAL COST" X$ = " ###.###"
PRINT #1, " BULK DENSITY OIL" PRINT #1, " 1.53 GAL/NT FCE COKE" ' 4150 PRINT #1, " AT $0.50/GALLON " ' 4160 PRINT #1, " 0.770 " ' 4170 PRINT #1, " INVENTORY COST AT 1%" C(11, 4) = Z(3, 8) * Z(3, 4) / Z(3, 5)
PRINT #1, " COG FOR UNDERFIRING" C(11, 4) = Z(3, 8) * Z(3, 4) / Z(3, 5)
PRINT #1, " SUBTOTAL RAW MATERIALS" C(12, 4) = C(9, 4) + .77 + C(10, 4) + C(11, 4) ' 4410
Y$ = " ###.### ###.###"
PRINT #1, " BY-PRODUCT CREDITS" PRINT #1, " EXCESS COKE OVEN GAS" PRINT #1, " COG FOR UNDERFIRING" A = Z(3, 8) * Z(3, 4) / Z(3, 5) * (-1)
PRINT #1, " TOTAL COKE OVEN GAS" T = Z(3, 8) * Z(3, 3) / Z(3, 5) * (-1)
PRINT #1, " COKE BREEZE AND BUCKWHEAT" B = T - Z(1, 8) - Z(2, 8) - Z(7, 8)
PRINT #1, " TOTAL BY-PRODUCTS CREDITS" PRINT #1, " CONVERSION COST " PRINT #1, " CONVERSION - VARIABLE" C = 16.23 ' 4690
PRINT #1, " CONVERSION - FIXED" D = 193073! / (7 * 100 * 18 * (Z(8, 5) / 2000)) ' 4720
PRINT #1, " TOTAL CONVERSION" E = C + D
PRINT #1, " TOTAL PRODUCTION COST" PRINT #1, " $/NT DRY FURNACE COKE" G = C(12, 4) + B + E