Professional Documents
Culture Documents
For i = 1 To 6
rowsum = 0
For j = 1 To 6
If j <> i Then
rowsum = rowsum + A(i, j) *
x(j)
The values from doing the iterations one by one are End If
the same from doing it through a computer. (See Next j
Numeric Problem for 1st and 2nd iteration.) u(i) = b(i) - rowsum
Next i
'reassign u vector to x
Results show that we need eight (8) iterations until For m = 1 To 6
our values were satisfied. Further iterations show no x(m) = u(m)
change in x, y, and z variables as shown in 9th iteration Next m
in Table 1. Therefore, hydrocarbon loss stops when
Next iter
height of condensate tanks is 0.1861 km, concentration
at 0.3312 mg/L, and temperature at -0.4227º C. 'write out data
For RC = 1 To 6
IV. CONCLUSIONS For CC = 1 To 6
Worksheets("MatrixProblem").Cells(27 +
In conclusion to this study, the hydrocarbon loss of RC, 1 + CC).Value = A(RC, CC)
natural gas in refineries can be solved with Gauss-
Jacobi method with a numerical problem related to Worksheets("MatrixProblem").Cells(27 +
engineering. Manual iterations and approximations are RC, 13).Value = b(RC)
good but it can be done better and faster with code in Worksheets("MatrixProblem").Cells(27 +
Microsoft Excel through VBA. RC, 9).Value = x(RC)
Next CC
Next RC
End Sub
Group Contribution:
Narciso, Rainier Angelo S. – Introduction,
Methodology, Results and Discussions,
Compilation, References.
Arellano, Jose Martin S. – Introduction,
Conclusion, Appendix (Code), References.