The purpose of this study is to build a PC-Windows based model for two-phase one-dimension water & gas system based on the formulation of the model developed by King and Ertekin in 1985. This model is written in Visual Basic 6.0. The advantage of this model over the King and Ertekin's model is the ability of running the model on personal computers, graphical abilities for input and output, and solving the matrices using an internal solver instead of using a commercial solver. The advantage of this model over other existing models is its ease of to use and being inexpensive that makes this model attractive especially to the independent producers. Fully implicit, generalized Newton-Raphson procedure was used to solve the nonlinear equations and Gaussian elimination was used to solve the Jacobian matrix.
展开▼