Está en la página 1de 12

SofThor - Software Development Inc.

PROGRAMA QUE CALCULA LAS PROPIEDADES Y EL FACTOR DE DESVIACIN (z) DE LAS MEZCLAS DE GASES Recomendaciones: El computador debe estar configurado para utilizar el punto decimal para las fracciones, no coma para separar las fracciones, de no ser as los resultados sern aleatorios. Este programa consta principalmente de cuatro archivos, los mismos que son: 1. 2. Gas1.txt: Archivo que contiene los valores de las fracciones molares de la muestra de gas. Se actualiza constantemente, reteniendo los ltimos valores del gas que se ingresaron. Gas2.txt: Archivo en el que se guardan los valores fsico qumicos de los diferentes componentes para una mezcla gases. Se recomienda no ingresar ni modificarlo ya que tonara el programa inoperable. FactZ.exe: Es el programa ejecutor principal, el mismo que presentamos. Lista.txt: Generado por el programa para uso futuro y por el momento no tiene utilidad. Para correr el programa, deben copiarse todos stos archivos en su directorio de uso y que obligatoriamente deber ser: C:\Vb60\FactZ (Tener presente que el programa principal FactZ.exe, apuntar siempre a ste directorio).

3. 4. 5.

Para operar, arrancar el programa corriendo el archivo FactZ.exe y aparecer la siguiente pantalla (Figure 1):

Figure 1
Escribir en el casillero Please type the Key Word la palabra clave o password, la misma que ha sido proporcionada por separado. Si ha ingresado la clave correcta, ste casillero desaparecer de la pantalla Page 1 of 6 a9a07FactZ-Manual.Wpd

SofThor - Software Development Inc. y podr operar sin problema; Si no lo tiene, solicitarlo a los correos electrnicos: fdiazm@ec-red.com o fdiazmo@speedy.com.pe, el mismo que les ser provedo sin costo ni compromiso alguno. Luego de ingresar la palabra clave, pulsar la tecla Run y se obtendr la pantalla Figure 2; tener presente que si la sumatoria de las fracciones molares es mayor de 100, hay un error evidente respecto a la composicin molar del gas, por ello el programa alerta de sta posibilidad, pero continuar operando normalmente.

Figure 2
A continuacin en esta pantalla se puede apreciar tres zonas claramente definidas y son: 1. Gas Composition. Zona en donde deberemos poner los valores del porcentaje molar de la muestra de gas que trabajaremos, excepto para el ltimo trmino, es decir para el agua, la misma que es calculada por el ordenador con diferencia a 100. En caso de que la sumatoria de los componentes sea mayor que 100 la casilla del agua tomar un valor negativo y tornar a un color rojizo como aviso al operador para revisar los valores de los porcentajes de la muestra de gas que obviamente no estn correctos, no obstante el programa continuar corriendo y puede dar resultados incorrectos o desviados. Gas Properties. Es la zona donde obtendremos los valores de las diferentes propiedades para sta muestra de gas en particular, luego que presionemos la tecla Run. Las mismas que son: Capacidad Calrica en BTU/Pie3 Gross o superior y la Capacidad Calrica en BTU/Pie3 Neto o inferior; Peso molecular, Gravedad especifica, Temperatura y presin crticas en grados Rankine y Psia respectivamente, (Las mismas que ya estn corregidas por la presencia del H2S y CO2 en los casos de mezcla de gases agrios o cidos). Tener en cuenta que stos dos casilleros tienen un fondo amarillento, como ayuda visual de que se pueden cambiar a voluntad para calcular el factor de desviacin del gas z (Si desconocemos la composicin del gas pero conocemos las propiedades pseudo criticas de la muestra de gas a la presin y temperatura que ingresemos en la seccin Data Input). Page 2 of 6 a9a07FactZ-Manual.Wpd

2.

F. Daz M.

SofThor - Software Development Inc. 3. Data Input. En las dos primeras casillas se ponen la presin y la temperatura a las cules se desea obtener el factor de desviacin Z, por defecto se ponen 1,000 Psi y 100 grados Fahrenheit, pulsando la tecla Calculation se obtendra el resultado para el factor Z, a stas condiciones que para ste caso ejemplo sera de 0.8760. Para poder ingresar a sta zona, obligatoriamente deber haberse efectuado el clculo de las propiedades del gas del paso anterior ya que en sta parte el programa hace uso de stos valores (Botn Run). Asimismo, nos da los valores de viscosidad del gas tanto a 1 atmsfera y temperatura solicitada (100 F/) como a la presin nueva solicitada (1,000 Psia) y a la misma temperatura, que en el caso ejemplo saldr 0.0115 y 0.0134 respectivamente. Si se ha seguido el proceso correctamente, se tendr los resultados en la siguiente Figure 3. Para terminar y salir del programa pulsar la tecla End con lo que se sale automticamente del programa.

Figure 3
Al llegar a ste punto, est en libertad de cambiarse indistintamente los valores de Presin y Temperatura crticos, (Casilleros de fondo amarillo), para el caso del ejemplo supongamos que Tc = 360 F/ y Pc = 700, cargamos estos valores y presionamos la tecla Calculation y se obtendra el nuevo valor de z = 0.8819, vale decir que podemos variar a voluntad los valores crticos de temperatura y presin y calcular el valor respectivo de z, Ojo los valores de viscocidad no cambian ya que stos clculos se realizan con la tecla Run; si desea los valores de viscosidad a los nuevos valores de P y T, deber pulsarse la tecla Run.

F. Daz M.

Page 3 of 6

a9a07FactZ-Manual.Wpd

SofThor - Software Development Inc. En estas circunstancias, se puede variar a voluntad el valor de la presin y temperatura a las que se desee el valor del factor de desviacin del gas Z, por ejemplo si requerimos ste valor a 2,100 Psi y 200 F/, los mismos los introducimos en sus casilleros respectivos, presionamos la tecla Calculation y obtendremos un nuevo valor de z = 0.9043. De ste modo se puede proceder a cambiar los datos cuantas veces se crea conveniente. Ver el cuadro siguiente (Figure 4). Asimismo, a modo de apoyo visual, se puede obtener un grfico de la curva del factor Z para stas condiciones de sta mezcla de gases, vale decir de los valores crticos, al mismo que se accede con el botn Graph y se regresa a la pantalla original con el botn de Out. Se puede acceder en cualquier momento, y el grfico corresponde a las condiciones que figuran en el momento en los sectores: Gas composition y Gas Properties. Ver grfico Figure 5.

Figure 4

F. Daz M.

Page 4 of 6

a9a07FactZ-Manual.Wpd

SofThor - Software Development Inc.

Figure 5
Requerimientos mnimos del Sistema: 1. 2. 3. 4. 5. Computador Pentium I, o superior. Sistema operativo: Windows 98 o superior. Espacio de memoria del sistema: 256KB. Espacio en disco Duro, menos de 500 KB. No requiere impresora ni conexin a Internet.

Cualquier comentario, aporte o sugerencia ser muy bienvenida a los correos electrnicos: fdiazm@ecred.com o fdiazm@speedy.com.pe Reconocimientos:

Especial reconocimiento a la empresa Pluspetrol Peru Corp. S. A. Por el apoyo brindado en la materializacin del presente trabajo. Al departamento de Ingeniera de Petrleo, Petroqumica y Gas Natural de la Universidad Nacional de Ingeniera. A MICROSOFT International por las facilidades y soporte gentilmente cedidos. A COREL WordPerfectg, por la suite con la que se ha redactado ste manual. A WinZip Computing Inc., por la licencia de uso sin fines comerciales del Software WinZip 8.1 SR-1.

F. Daz M.

Page 5 of 6

a9a07FactZ-Manual.Wpd

SofThor - Software Development Inc.

Bibliografa: 1. 2. 3. 4. 5. Gas Pipeline Hydraulics, Editorial Taylor & Francis, Edition 2005 by E. Shashi Menon. Natural Gas Reservoir Engineering, Editorial Krieger Publishing Company, Malabar Florida 1992. By Chi U. Ikoku. Programmers Guide, Microsoft Visual Basic, Ver. 4.0, Ed. 1995, Microsoft Corporation. Ingeniera Aplicada de Yacimientos Petrolferos, Editorial TECNOS, Madrid, Ed. 1968, by B. C. Craft & M. F. Hawkins, Jr. Mtodos numricos y Programacin Fortran ,Editorial Limusa, 1977, Mexico, por Daniel D. McCraken y William S. Dorn.

Julio - 2009. Lima - Per.

F. Daz M.

Page 6 of 6

a9a07FactZ-Manual.Wpd

SofThor - Software Development Inc. PROGRAM TO CALCULATE THE PROPERTIES OF THE GAS M IXTURES AND THE GAS DEVIATION FACTOR (z) Recom mendations: The com puter m ust be configured to use the decim al point for fractions, do not use com m a to separate the fractions, otherwise the results will be uncertain. This program consists m ainly of four files, and they are: 1. 2. 3. 4. 5. Gas1.txt : This file contain the values of the m ole fractions of the gas sam ple. It is updated continuously, retaining last values of the gas being adm itted.. Gas2.txt : In this file the physical values is stored from different chem ical com ponents for a gas m ixture. It is recom m ended not m odify since the program results becam e in errors. FactZ.exe : Es el program a ejecutor principal, el m ism o que presentam os. Lista.txt : Generated by the program for future use. To execute the program , all files m ust be copied to directory: C: \ Vb60 \ Factz (Note that the m ain program FactZ.exe, always point to this directory).

To operate, start the program executing the file FactZ.exe, and the following screen will be showed (Figure 1):

Figure 1
In the box "Please type the Key W ord" , enter the key word or password, which has been provided separately. If you entered the correct key, it disappears from the screen box and can operate without problem ; If not, request it to em ails: fdiazm @ ec-red.com or fdiazm o@speedy.com .pe, the sam e that will be provided without cost or obligation.

Page 1 of 6

10811FactZ-Manual-eng.wpd

SofThor - Software Development Inc. After entering the keyword, press the Run button and the screen becam e the Figure 2, take in m ind that if the sum of m ole fractions is greater than 100, there is an obvious error regarding m olar com position of gas, so the program will alert this possibility, but will continue operating norm ally.

Figure 2
On this figure you can see three clearly defined areas, which are: 1. Gas Composition. Area where we set the values of the m olar percentage gas sam ple, except for the last term , (for water), which is calculated by com puter by far to 100. If the sum of com ponents is greater than 100, water box will take a negative value and returns to a reddish color as a warning to the operator to check the values of the m olar percentages of the sam ple gas, which obviously is not correct, however the program will continue running and m ay give incorrect results or forwarded. Gas Properties. After you press the button Run, In this area we get the values of the different properties for this particular sam ple of gas; they are: Gross heat capacity in BTU/ft 3 , Net heat capacity in BTU/ft3, average m olecular weight, specific gravity, tem perature and critical pressure in Psia and Rankine degree, respectively (Both are already corrected for the presence of H 2S and CO 2 for the case of sour m ixture gas). Note that these two boxes have a yellow background, as a visual aid that can be changed at will to calculate the gas deviation factor "z" (If gas com position is unknown but we know the properties of the pseudo critical pressure and tem perature for gas sam ple). Data Input. In the first two boxes are the pressure and tem perature to which the deviation factor z is requiered, the default is 1,000 psi and 100 Fahrenheit degrees; by pressing the Calculation button, would get the result for the z factor to these conditions; for this case exam ple will be 0.8760 . To enter this zone, necessarily m ust have m ade the calculation of gas properties from the previous step because in this part of the program uses these values (execute Run previously). Page 2 of 6 10811FactZ-Manual-eng.wpd

2.

3.

F. Daz M.

SofThor - Software Development Inc. It also gives the values of viscosity at 1 atm osphere and at tem perature requested (100 F / ) and applied to new pressure (1,000 psia) and at the sam e tem perature, which in case exam ple will 0.0115 and 0.0134 respectively. If you've followed the process correctly, you will have the results as in the following Figure 3. To finish and exit the program , press the End key thereby autom atically exits program .

Figure 3
At this point, you are free to change either the critical values of pressure and tem perature, (Locker yellow background) for the exam ple suppose Tc = 360 F / and Pc = 700, charge these values and press the Calculation button and get the new value z = 0.8819, which m eans that we can vary at will the critical values of tem perature and pressure and calculate the respective value of z, Take on account that the viscosity values do not change as these estim ates perform ed with the Run button, if you want the values of viscosity at the new values of P and T, Run button m ust be executed. In these circum stances, it can vary at will the value of the pressure and tem perature to which want the value of the gas deviation factor Z, for exam ple if we require this value to 2,100 psi and Two hundred F /, they introduce them into their respective boxes by pressing the Calculation and obtain a new value of z = 0.9043 . In this m ode you can proceed to change the data as often as it sees fit. (See Figure 4). Furtherm ore, as a visual aid, you can obtain a graph of the curve of the Z factor for these conditions of the gas m ixture, ie the critical values at the sam e accessed by Graph button and go back to the original screen with the Out button. It can be accessed at any tim e, and the graph corresponds to the conditions

F. Daz M.

Page 3 of 6

10811FactZ-Manual-eng.wpd

SofThor - Software Development Inc. contained in the tim e sectors: Gas Com position and Gas Properties. (See graph Figure 5).

Figure 4

Figure 5

F. Daz M.

Page 4 of 6

10811FactZ-Manual-eng.wpd

SofThor - Software Development Inc. M inimum System Requirements: 1. 2. 3. 4. 5. Com puter Pentium I or higher. Operating system : W indows 98 or higher. Space System Mem ory: 256KB. Hard disk space, less than 500 KB. Requires no printer or internet connection.

Any com m ents, input or suggestions will be very welcom e to em ail: fdiazm @ ec-red.com or fdiazm @speedy.com .pe Acknow ledgments:

Special recognition to Pluspetrol Peru Corp. S. A. for their support in the realization of this work. Engineering Department of Petroleum, Petrochemical and Natural Gas from Universidad Nacional de Ingeniera. To MICROSOFT International for the support, facilities and kindly disposed. To COREL WordPerfectg Corporation, for the software with which this manual has been drafted. To WinZip Computing Inc., for noncommercial licensed to use the Software WinZip 8.1 SR-1.

F. Daz M.

Page 5 of 6

10811FactZ-Manual-eng.wpd

SofThor - Software Development Inc.

Bibliography:: 1. 2. 3. 4. 5. Gas Pipeline Hydraulics, Editorial Taylor & Francis, Edition 2005 by E. Shashi Menon. "Natural Gas Reservoir Engineering, Krieger Publishing Com pany, Malabar Florida 1992. By Chi U. Ikoku.. "Program m er's Guide", Microsoft Visual Basic, Ver 4.0, Ed 1995, Microsoft Corporation. "Applied Engineering Oilfield, TECNOS Editorial, M adrid, Ed 1968, by B. C. Craft & M. F. Hawkins, Jr. Mtodos num ricos y Program acin Fortran Lim usa, 1977, Mexico, by Daniel D. McCraken and W illiam S. Dorn.

10812

F. Daz M.

Page 6 of 6

10811FactZ-Manual-eng.wpd

También podría gustarte