Beruflich Dokumente
Kultur Dokumente
CAPITULO 2
FUNDAMENTO MATEMATICO
PRESENTADO POR:
Msc.Ing. GABRIEL PEREZ ORTIZ
INTRODUCCION
7
Ecuaciones Algebraicas
Lineales No lineales
Metodos
Numericos
Interval
Halving False
(o bisection) Position Ridder
(o regula falsi)
Succesive
Secant Muller
Substitution
(o fixed-point)
Wegstein Newton
Metodos Raphson
Analiticos
Brent
Broyden
Homotopy
Dogleg step
Hook step
8
Ecuaciones algebraicas lineales
Inconsistent equations
If equations are contradictory, then no solution exists.
General Representation
Example: 2 x y 2
a11 x1 a12 x2 a1n xn b1 2x y 1
a21 x1 a22 x2 a2 n xn b2
an1 x1 an 2 x2 ann xn bn
Analysis of System LAE (2)
as are constant coefficients, bs are constants, x are
the unknown variables, and n is the number of
Dependent equations
equations If equations are multiplies of others, many solutions can be
found
Example: 4 x 2 y 4
2x y 2
Ill-conditioned equations
If a small change in any of the coefficients will change the
solution set from unique to either infinite or empty, the
system of LAE is called to be ill-conditioned.
Numerical solution will be difficult
Example: (4 ) x 2 y 4
2x y 1
9
Ecuaciones algebraicas lineales
r r1 , r2 , , rn
then also satisfies the linear combination of these
linear equations:
m1S m2T Pitfalls of the Gauss Elimination
m1ao m1a1 x1 a2 x2 m1an xn m2bo m2b1 x1 m2b2 x2 m2bn xn 0
Limitation of algorithm
When pivot element equals zero
When pivot element is significantly smaller than the coefficient
being used to eliminate (or Ill-conditioned)
Round-off errors
10
Ecuaciones algebraicas lineales
LU Decomposition - Concept
11
Ecuaciones algebraicas lineales
LU Decomposition
using Gauss Elimination
Suppose we try to find LU factors of the following matrix:
4 12 8 4
1 7 18 9
A
2 9 20 20
3 11 15 14
1 0 0 0
1 0 0
L 21
Initialization: Let U = A and 31 32 1 0
41 42 43 1 Step 2: Rows 1 and 2 are unchanged. Rows 3 and 4 are
transformed by
a3 2 3 4 12 8 4
a 21 1 32
Step 1: Row 1 is unchanged, and rows 2-4 are modified by: 21 a2 2 4 to yield:
0 4 16 8
a11 4 U
0 0 4 12
to give: 4 12 8 4 a31 1 42
a4 2 1
0 4 16 8 31 a2 2 2 0 0 1 7
U a11 2
0 3 16 18 a 41 3 Step 3: The fourth row is modified to complete the forward
41 eliminating stage by:
0 2 9 11 a11 4
4 12 8 4
a4 3 1 0 4 16 8
43 to yield: U
a3 3 4 0 0 4 12
0 0 0 4
12
Ecuaciones algebraicas lineales
LU Decomposition
using Crout Method
Based on equating the elements of the product LU with the
corresponding elements of A , where the diagonal elementsUof
are 1s . For a 3 x 3 matrix
11 0 0 1 u12 u13 a11 a12 a13
22 0 0 1 u 23 a21 a22 a23
21
31 32 33 0 0 1 a31 a32 a33
Algorithm
Step 1: Set 1 1 a1 1 , then solve for the remaining elements in
the first row ofU and the first columnL of .
Step 2: Find 22 , then solve for the remainder of the second
row ofU and the second column of L
Continue for the rest
General Formula for Crouts Method
General formula for the first column of L, the first row of U and the
diagonal element of U
a1 j
i1 ai ,1; u1 j ; uii 1
11
General formula for the j-th row of L and the j-th column of U:
For j= 2, 3, , n-1; i = j, j+1, , n; and k = j+1, j+2, , n
j 1
ij aij ik u kj
k 1
j 1
a jk jiuik
i 1
u jk
jj
j 1
nn ann nk u kn
General formula for the last row of L k 1
13
Ecuaciones algebraicas lineales
LU Decomposition
using Choleskys Method
For a 3 x 3 matrix: x1 0 0 x1 u1 2 u1 3 a1 1 a1 2 a1 3
0 0 u 2 3 a 2 1 a 2 2 a 2 3
2 1 x2 x2
3 1 3 2 x3 0 0 x3 a 3 1 a 3 2 a 3 3
Algorithm:x (a )1 / 2
1 11
Find , then solve for the remaining
L elements in the
first row U
x 2 of and the first column of .
Find , then solve for the remainder
L of the second row ofU
and the second column of
Continue for the rest.
Generalization of Choleskys Method
For the k-th row
i 1
aki ij kj
j 1
ki i 1,2, , k 1
ii
k 1
xk akk 2kj
j 1
14
1 4 5 x1 0 0 x1 u12 u13 1 4 5
A 4 20 32 21 x 2 0 . 0 x 2 u 23 4 20 32
5 32 64 31 32 x3 0 0 x3 5 32 64
We get:
1 0 0 1 4 5 1 4 5 (5).(5) (6).(6) x32 64 x33 3;
4 2 0 . 0 2 6 4 20 32
1 0 0 1 4 5
5 6 x3 0 0 x3 5 32 64
L 4 2 0 ; U 0 2
6
5 6 3 0 0 3
15
Ejemplo
3x1+2x2=4
2x1+x2=1
Inversa de la matriz
Ax=b x=A-1 b x1=-2 x2=5
Descomposicin de Gauss
[-12 10] [ 21 ]
f1=-f1
[12 01 ] [ -21 ]
f2=-2f1+f2
[10 01 ] [ -25 ]
16
Ecuaciones algebraicas lineales
Basic Idea
To solve the i-th equation in the system for the i-th variable by
converting the given system to be suitable for finding the solution in
the iterative manner.
Algorithm Ax b
Transform to x Cx d so that we can solve iteratively
x for
as x ( k ) Cx ( k 1) d.
Stopping Conditions
To stop the iterations when the norm of the change in the solution
vector from one iteration to the next is sufficiently small.
To stop the iterations when the norm of the residual vector is below
a specified tolerance. Variations of Algorithm
Jacobi Method
Ax b x Cx d
Based on the transformation of to , in which the
x
matrix C has zeros on the diagonal. The vector is updated using
the previous estimate for all componentsxof to evaluate the right
hand side of the equation (simultaneous updating).
Gauss-Seidel Method Ax b x Cx d
Based on the transformation of to , in which the
matrix C has zeros onx the diagonal as in Jacobi method, but each
component of the vector is updated immediately as each iteration
progresses (sequential updating).
Successive Over Relaxation (SOR) Method
Like
0 1
Gauss-Seidel method, but we introduce an additional
parameter , that may accelerate the convergence of iteration. For
, the method is known as successive under relaxation,
while for 1 2 is known as successive over relaxation.
17
Ecuaciones algebraicas lineales
Initial condition/guess: x o 0 0 0
T
k 1
x x 0 .001
k
Stopping criteria
Gauss-Seidel Method
Iterative Scheme x1n ew 0.5 x 2o ld 0.5 x3o ld 0.5
x 2n ew 0.5 x1n ew 0.5 x3o ld 3
x3n ew 0.5 x1n ew 0.5 x 2n ew 1.5
x o 0 0
SOR Method
T
0
Initial condition/guess
x x new old
0 .0 0 1
Stopping criteria
Example
a11 x1 a12 x 2 a13 x3 b1
a 21 x1 a 22 x 2 a 23 x 3 b2
a 31 x1 a 32 x 2 a 33 x3 b3
18
Simple Example of Transformation
Ax b x Cx d
19
Ecuaciones algebraicas no lineales
Objetivo
Sea f(x) una funcin no lineal en x. Hallar el valor de x, x*, tal que
se cumple f(x*)=0.
x* se suele denominar el cero o raz de f(x)
x* se puede determinar por medios analticos (solucin
exacta) o por medios numricos (solucin aproximada)
20
Mtodos acotados
f(a)
21
Ejemplo Mtodo biseccin (Intervalo medio) (SIMPSON)
x2 4 0
0,6 3,6
0,3 0,1.5 no cambia signo
1.5,3 2.25,3 no cambia signo
1.5,2.25 1.5,1.875 no cambia signo
1.875,2.25
22
Ecuaciones algebraicas no lineales
False-Position Method
f(x)
f(b)
[nuevo
a Intersection point b
punto] x Algoritmo
[a,b]
23
Ejemplo mtodo de la posicin falsa (Regula Falsi)
x 4 0
2
[0,6]
2
y + 4 = 6x x =
3
2
, 6
3
32 20 2 18
y+ = (x - ) x =
9 3 3 15
18
, 6
15
24
Ecuaciones algebraicas no lineales
Relative Errors
Bisection method
False-position method
Number of iterations
25
Ecuaciones algebraicas no lineales
MTODOS ABIERTOS
26
Ecuaciones algebraicas no lineales
Mtodos acotados
La raz est situada en un intervalo (necesita dos puntos). Acaba
convergiendo dentro de una tolerancia.
Mtodos abiertos
Slo emplean un punto inicial (o dos puntos que no tienen por qu
contener a la raz) y una frmula para encontrar la raz. No siempre
convergen, pero cuando lo hacen son mucho ms rpidos que los mtodos
acotados.
27
Ecuaciones algebraicas no lineales
Sustitucin sucesiva
y Problema f(x)=0
y= x 1. Transformar a x=g(x)
2. Seleccionar un punto inicial x0
3. Calcular nuevo valor xi+1=g(xi)
y= g(x)
4. Repetir hasta llegar a la tolerancia requerida
Raiz
y
x2 x1 x0 x
y= x
Si:
y= g(x)
|g(x)|<1 El algoritmo converge linealmente
|g(x)|>=1 El algoritmo diverge
x3 x1 x0 x2 x
28
Ejemplo Mtodo punto fijo (Sustitucin directa/sucesiva)
x2 4 0
2 g' (x 0 ) = 3x 2 - 3 = 3 - 3 = 0 < 1
x = x -4+x Converge?
2 x0 1 xk+1 = xk (xk 2 - 3)
x = x(x - 3)
2 x1 = 1(12 - 3) = -2
g(x) = x(x - 3)
x 2 = -2((-2)2 - 3) = -2
x0 3
g' (x0 ) = 3x 2 - 3 = 3 * 9 - 3 = 24 > 1
Converge? x1 = 3(32 - 3) = 18
x 2 = 18(182 - 3) = 5778
29
Ecuaciones algebraicas no lineales
Problema g(x)=0
Newton Raphson
1. Seleccionar un punto inicial x0
2. Calcular g(xi) y g(xi)
3. Aplicar la tangente en ese punto y en el corte con el
eje de abcisas tenemos el nuevo punto estimado
g(xi)
xi+1=xi-
g(xi)
4. Repetir hasta llegar a la tolerancia requerida
y
g(x)
Necesita conocer la derivada de la
funcin
Convergencia cuadrtica (rpida)
Puede no converger (depende de la
funcin y de la estimacin inicial)
x2 x1 x0 x
30
Ejemplo Newton Method
x 4 0
2
x0 1 x0 3
( x0 4) ( x0 4)
2 2
x1 x0 x1 x0
2 x0 2 x0
(12 4) (32 4)
x1 1 1.5 x1 3 2.1666
2 1 23
(1.52 4) 23 (2.1666 2 4)
x2 1.5 x2 2.1666 2,006
2 1.5 12 2 2.1666
31
Ecuaciones algebraicas no lineales
x3 x2 x1 x0 x
32
Ecuaciones algebraicas no lineales
x0 x3
x3 x2 x1 x x0 x2 x1 x
At the first iteration, both methods produce the same estimate. After
La primera iteracin da el mismo resultado, luego cada
that, each method has a different estimate.
uno obtiene un nuevo punto estimado diferente
33
Ecuaciones algebraicas no lineales
Next estimate of Muller 4. Repeat step 2-3 until satisfying the convergent
criteria
34
Ecuaciones algebraicas no lineales
Alternative two: Use the ratio of the function to its derivative, and
then apply the Newton-Raphson formula for this ratio function
f ( xk )
u ( xk )
f ( xk )
u ( xk ) f ( xk ) f ( xk )
xk 1 xk xk
u ( xk ) f ( xk )2 f ( xk ) f ( xk )
35
Ecuaciones algebraicas no lineales
f1 ( x1 , x2 , x3 ,..., xn ) 0
f 2 ( x1 , x2 , x3 ,..., xn ) 0
f 3 ( x1 , x2 , x3 ,..., xn ) 0
f n ( x1 , x2 , x3 ,..., xn ) 0
F(X ) 0
36
Ecuaciones algebraicas no lineales
Xk+1=qXk+(1-q)g(Xk)
37
En los problemas de diagrama de flujo las variables de iteracin no estn todas muy acopladas ni todas
desacopladas, nos podemos encontrar:
1) Todas las especies dbilmente acopladas a travs de equilibrio L-V (no ideal)
2) Especies muy acopladas si participan en una reaccin
3) Si hay ms de una corriente de rasgado, hay un fuerte acoplamiento entre los flujos de cada
corriente de rasgado.
Cuando las variables estn desacopladas o dbilmente acopladas es necesario un parmetro de
aceleracin diferente para cada variable.
38
Ecuaciones algebraicas no lineales
El mtodo de Wegstein es muy bueno para particiones en las que hay una nica
corriente de rasgado. O cuando hay reciclo sin estar los componentes muy acoplados
(presencia de reaccin)
39
Ecuaciones algebraicas no lineales
Newton Raphson
En lugar de la derivada emplea el jacobiano (matriz de derivadas parciales)
La estimacin del nuevo conjunto de races se computa mediante la
siguiente ecuacin:
X i 1 X i J 1 ( X i ) F ( X i )
f1 f1 f1
x1 x1,i
x2 x2,i
xn xn ,i
f 2 f 2 f 2 Cmo resolveras la ecuacin
Jacobiano J ( X ) x1 x2 xn anterior sin tener que calcular la
i x1,i x2,i xn ,i
inversa de la matriz jacobiana?
f f n f n
n
x1 x2 xn
x1,i x2,i xn ,i
40
Ecuaciones algebraicas no lineales
J ( X i )( X i 1 X i ) F ( X i )
Resuelve un sistema J ( X i ) X F ( X i ) AX b
de ecuaciones lineales!
41
Ecuaciones algebraicas no lineales
Mtodo de Broyden
No calcula el jacobiano, lo aproxima empleando valores previos de x y f(x).
W es la aproximacin a la negativa de la inversa del jacobiano.
Es una extensin del mtodo de la secante (o mtodo quasi-Newton)
X i 1 X i W i F ( X i )
pi X i 1 X i min W i +1 - W i
y i f ( X i 1 ) f ( X i ) W i pi = y i
( p W y ) p W i
i i i iT
W i 1 W i iT
p W i yi
42
Ventajas:
Slo requiere una pasada por el diagrama de flujo en cada
Tiene en cuenta de forma aproximada la interaccin entre variables. Bueno para
diagramas de flujo con alta interaccin.
Desventajas:
Convergencia ms lenta que Newton. Necesita ms pasos que el mtodo de Newton
pero el costo computacional de cada mtodo es
Para los mtodos de Newton o Broyden es deseable escoger el mnimo nmero de variables de
corriente que rasgan todos los lazos (es decir buscar el menor nmero de ecuaciones).
Si todos los bucles estn rasgados la eleccin de las corrientes de rasgado no influye mucho en la
convergencia de estos dos mtodos.
43
Ecuaciones algebraicas no lineales
Syntax:
x = fzero(fun,x0)
x = fsolve(fun,x0)
44
Ecuaciones algebraicas no lineales
fsolve
Solve a system of nonlinear equations
x = fsolve(fun,x0) x = fsolve(fun,x0,options)
x = fsolve(fun,x0,options,P1,P2, ... )
[x,fval] = fsolve(...)
[x,fval,exitflag] = fsolve(...)
[x,fval,exitflag,output] = fsolve(...)
[x,fval,exitflag,output,jacobian] = fsolve(...)
45
ANALISIS NUMERICO
INTEGRACION NUMERICA
AGENDA
Introduccin
Mtodo Trapezoidal
Mtodo de Simpson
Mtodo Trapezoidal Compuesto
Mtodo de Simpson Compuesto
Introduccin
Si pn(x) aproxima la funcin f(x) en un intervalo de inters, puede
esperarse que al integrar pn(x) tambin aproxime la integral
correspondiente a f(x)
xn
x0
f ( x)dx est dado por el rea bajo la curva de f(x)
xn
x0
p n ( x)dx est dado por el rea bajo la curva de pn(x)
f (x ) sf ( x0 )dx
b x1
a
f ( x)dx
x0
0
Mtodo Trapezoidal
Para integrar el lado derecho es necesario tener la integral en trminos
de la nueva variable s dada por la expresin x = x0 + sh,
La diferencial de x en trminos de s queda dx = h ds, ya que x0 y h son
constantes.
Para que los limites x0 y x1 queden en trminos de s, se sustituyen por x
en x = x0 + sh y se despeja s, lo que da respectivamente
x0 = x0 + sh de donde s = 0
x1 = x0 + sh de donde s = 1, y resulta:
f (x ) sf ( x0 )dx h f ( x ) sf ( x0 )ds
x1 1
0 0
x0 0
Al integrar se tiene
s2 f ( x0 )
h f ( x0 ) sf ( x0 )ds h sf ( x0 )
1
f ( x0 ) h f ( x0 )
1
0
0
2 2
como f(x0) = f(x0 + h) f(x0), se llega finalmente a:
h
f ( x0 ) f ( x1 )
b
a
f ( x) dx
2
que es el algoritmo del mtodo trapezoidal. Note que el lado derecho de la
ecuacin es el rea del trapezoide de altura h y lados de longitud f(x0) y f(x1)
Mtodo Trapezoidal
a) Aproxime el rea A1 bajo la curva de la funcin dada por la tabla en el
intervalo a = 500, b = 1800.
h=1800 - 500, x0 = 500, x1 = 1800
Puntos 0 1 2 3 4 5
1300
F(x) 9 13,4 18,7 23 25,1 27,2
A1 (9 23) 20800
X 500 900 1400 1800 2000 2200
2
h = 5 - 0, x0 = 0, x1 = 5
b) Aproximar
5 5
A2 0
(2 3x)dx A2
2
((2 3(0)) (2 3(5))) 47.5
h = /2 0, x0 = 0, x1 = /2
d) Aproximar
/2
/2 A4 ( sen(0) sen( / 2)) / 4
A4 0
sen( x)dx 2
Mtodo de Simpson
Si n = 2; el intervalo [a, b] se divide en dos sub-intervalos, se tendrn tres
abscisas dadas por x0 = a, x2 = b
ba b a 1
x1 x0 1 a (b a )
2 2 2 2
Se aproxima f(x) con una parbola, polinomio de 2do grado p2(x), la
aproximacin a la integral es el rea bajo el segmento de parbola entre
f(x0) y f(x2) como muestra la figura.
b x2
a
f ( x)dx x0
p 2 ( x)dx
x2
Para integrar x0
p 2 ( x)dx
s( s 1)
p 2 ( x) p 2 ( x 0 sh) f ( x 0 ) sf ( x 0 ) 2 f (x 0 )
2!
Mtodo de Simpson
Al sustituir p2(x) y expresar toda la integral en trminos de la nueva variable s,
queda
b x2 2
a
f ( x)dx x0
p 2 ( x)dx h p 2 ( x0 sh)ds
0
2 2 s ( s 1) 2
0
p 2 ( x0 sh)ds h ( f ( x0 ) sf ( x0 )
0 2!
f ( x0 ))ds
2
s2 s3 2 s2 2 1
h sf ( x0 ) f ( x0 ) f ( x0 ) f ( x0 ) h 2 f ( x0 ) 2f ( x0 ) 2 f ( x0 )
2 3! 4 0 3
Por definicin de la 1ra y 2da diferencia hacia adelante se tiene
f(x0) = f(x0 + h) f(x0) = f(x1) f(x0) y
2f(x0) = f(x0 + 2h) 2f(x0 + h) + f(x0) = f(x2) 2f(x1) + f(x0)
c) 4 (2) x = -2 x = -2 + 3 = 1 x = 4
h 3 A3 30(1 2(2) 1 3(2) 2 4(1 2(12) 3(1) 2 ) 1 2(4) 3(4) 2 ) 90
2 3
/2
A4
0
sen( x)dx
d) x0 = 0 x1 = 0+/4 = /4 x2 = /2
0
h 2 /4
2 4 A4 ( sen(0) 4sen( / 4) sen( / 2)) 1.0023
3
Mtodo Trapezoidal Compuesto
Cuando el intervalo es amplio, en vez de aproximar la integral de f(x) en [a,
b] por una recta, conviene dividir [a, b] en n sub-intervalos y aproximar
cada uno por un polinomio de primer grado. Una vez hecho esto, se
aplica la formula trapezoidal a cada sub-intervalo y se obtiene el rea de
cada trapezoide, de tal modo que la suma de todas ellas da la
aproximacin al rea bajo la curva f(x).
b x1 x2 xn b
I
a
f ( x)dx
a x0
p ( x)dx
1 x1
p 2 ( x)dx ...
xn 1
p n ( x)dx
donde pi(x) es la ecuacin de la recta que pasa por los puntos (xi-1, f(xi-1)), (xi, f(xi)).
Mtodo Trapezoidal Compuesto
Entonces puede escribirse como sigue
x1 x0 x x1 x xn1
I ( f ( x0 ) f ( x1 )) 2 ( f ( x1 ) f ( x2 )) ... n ( f ( xn1 ) f ( xn ))
2 2 2
Si todos los sub-intervalos son del mismo tamao h, esto es, si xi+1 - xi = h, para i =
0, 1, , (n-1), entonces la ecuacin anterior puede anotarse as
h
I ( f ( x0 ) 2 f ( x1 ) 2 f ( x2 ) ... 2 f ( xn1 ) f ( xn ))
2
Que puede escribirse con la notacin de sumatoria como sigue
n 1
h
I ( f ( x0 ) 2 f ( xi ) f ( xn ))
2 i 1
Mtodo Trapezoidal Compuesto
Aproximar el rea bajo la curva de la funcin dada en forma tabular, entre
x = -1 y x = 4.
Puntos 0 1 2 3 4 5
X -1 0 1 2 3 4
F(x) 8 10 10 20 76 238
1
A (8 2(10 10 20 76) 238) 239
2
Mtodo de Simpson Compuesto
Como para cada aplicacin de la regla de Simpson se requieren dos sub-
intervalos, a fin de aplicarla n nmero de veces, se divide el intervalo [a,
b] en un nmero de sub-intervalos igual a 2n.
h1 h2
I ( f ( x0 ) 4 f ( x1 ) f ( x2 )) ( f ( x2 ) 4 f ( x3 ) f ( x4 )) ...
3 3
hn
( f ( xn2 ) 4 f ( xn1 ) f ( xn ))
3
Donde
h1 = x1 - x0 = x2 - x1
h2 = x3 - x2 = x4 - x3
.
hn = xn-1 - xn-2 = xn xn-1
Mtodo de Simpson Compuesto
h h
I ( f ( x0 ) 4 f ( x1 ) f ( x2 )) ( f ( x2 ) 4 f ( x3 ) f ( x4 )) ...
3 3
h
( f ( xn2 ) 4 f ( xn1 ) f ( xn ))
3
Usando la notacin de sumatoria queda de la siguiente manera
n 1 n2
h
I ( f ( x0 ) 4 f ( xi ) 2 f ( xi ) f ( x n ))
3 i 1 i 2
i 2 i 2
1
A1 (8 4(10 20) 2(10) 76) 74.666
3
b) Mtodo trapezoidal aplicado a los puntos (4) y (5)
1
A2 (76 238) 157
2
por lo tanto, la aproximacin al rea es A = 74.666 + 157 = 231.666
Balance de Materiales en
Yacimientos de Gas y Gas
Condensado
Contenido
Gases Ideales
Gases Reales
Yacimientos de Gas y Gas Condensado
Analisis PVT
Balance de Materiales para Yacimientos de Gas
Balance de Materiales para Yacimientos de Gas Condensado
Gases Ideales
Volmenes iguales de diferentes gases ideales a la mismas condiciones P-
T contienen el mismo nmero de molculas
Moles: nmero de unidades de peso del componente igual a su peso
molecular. 1 lbmol de O2 es igual a 32 lbs de oxgeno
Un mol de cualquier gas ideal contiene el mismo nmero de molculas y
ocupa el mismo volumen a las mismas condiciones de P-T
El estado de un gas esta definido por p, V y T: Segn Boyle, Charles y
Avogadro:
pV p2V2
1 1
T1 T2
Vr @ P T
z
Vi @ P T
Gases Reales
pVi nRT
Vr
p nRT
z
pVr znRT
El factor z es funcion de la presion y temperatura. Tipicamente, z=z(p), si
suponemos condiciones de agotamiento isotermico
Medicin de z
Vo
V
14.7Vo=nRT pVo=znRT
pV
z p
14.7Vo
Metodo
Grfico
Standing-
Katz
Ajuste Hall-Yarborogh
Tsc Tsc
2
Referencias:
80%
p [psi] 60%
40%
20%
Liquido+Gas
A: gas condensado
B: gas seco
T [F]
Diagrama P-T
Analisis PVT: Tipos de Muestras
Superficie: recombinacin de muestra del separador
Cabezal
Fondo: p<pdew
q g sep , g sep
q gtk , gtk
qc
q g sep
RGC sep
q c B o sep
Analisis PVT: Pruebas
Prueba CCE (Constant Composition Expansion)
p1>pdew p2=pdew P3<pdew p4<p3
Vc Vc
Analisis PVT: Equipos
PDVSA-Intevep
Vb 1 Swi
G
Bgi
Gas: EBM
cw Swi cf
GpB g WpBw G Bg - Bgi Bgi p We
1- Swi
zT
Bg vol gas en yac [bbl] Bg 0.00504 [bbl/SCF]
vol gas en sup [SCF] p
F G Eg Efw We
F GEt We
Mtodo Havlena-Odeh
F We GEt F-We
G
Et
F We F
G Et
1
Et Et
G
We
Et
Mtodo p/z
p p i G peq
C 1
z zi G p
C
z
cw Swi cf
C 1- p
1- Swi Gpeq G
w
Gpeq Gp 132800Wp [SCF]
Mw
pV znRT
zT
Bg 0.00504 [bbl/SCF]
p
zT
Bg 0.02829 [ft3/SCF]
p
Compresibilidad Isotrmica
dV 1 dz
nRT 2
p z
dp p dp
1 dV 1 dz 1
V dp z dp p
1 dV 1 1 dz
cg
V dp p z dp
En el caso que z=1 (gas ideal):
1
cg
p
Definicin del Modelo Composicional
ni n iL n iV
zi xi yi
n nL nV
z i Lx i Vy i
n n
L L V V
n n
L V 1
nc nc nc
i
zi xi y i
1 i i
1 1
Composicin Molecular
ZN i n gc Yi n g X i nc
ng, Yi
i
Zi
1
1
N
i
Yi
1
1
N
nc, Xi
i
Xi
1
1
Peso Molecular
En base a la composicin
Mg MiYi
Mc Mi X i
i
Mgc Mi Zi
i
Mgc 28.96 gc
44.29 c 6084
Mc
1.03 - c API - 5.9
A B
Gas Condensado
Liquido Gas
C
ujeo
burb
80%
p [psi] 60%
40%
20%
Liquido+Gas
cio
ro
T [F]
Vc (%)
pdew pi
Gas Condensado, p>pdew
Vc=0, no hay condensacin retrgrada
Metodos de recombinacin
basado en RGC
basado en Zi del separador de alta presin
zT zT
4. Bg 0.02829 4. Bg 0.02829
p p
Vb 1 Swi Vb 1 Swi
5. GCOES 5. GCOES
Bgci Bgci
qgsep
RGC nG 379.4qc Bosep
6. fg 6. fg
c nG nL qgsep
RGC 132800 350 L
Mc 379.4qc Bosep ML
MLsep
8. COES
GOES
RGC
8. COES
GCOES
379.4
1 fg B
Lsep osep
Gas Condensado, p<pdew
Vc>0, hay condensacin retrgrada
Mtodos
F(p/zgc)
p/z2F
Prueba CVD
Mtodo F(p/zgc)
p pi ,T
p i ,T
n p ,g G p sep
ni n rem ,g
n p ,c N c ,W p
n rem ,c
n p n i n rem
G peq
np
379.4
G
ni
379.4
1 V c p V c c
n rem V b 1 S wi C
z gc RT Mc
Mtodo F(p/zgc)
G peq V 1 S wi C 1 V c p V c c
1 379.4 b
G G z gc RT Mc
p V c c p i G peq
1 Vc CRT 1
z gc Mc z gci G
p
F
z gc
p
F 1 Vc p Vc c CRT
z gc z gc Mc
p p i G peq
F
z 1 G
z gc gci
Mtodo F(p/zgc)
p p i G peq
F 1
z G
z gc gci
p
F
z gc
G peq
G
p p Vc c
Si C=1 F
z
1- Vc RT
gc zgc Mc
p p
Si p>pdew, C=1 F
z
gc zgc
Prueba CVD
Procedimiento:
1. Calcular el volumen de gas condensado producido
Gp 379.4
V p Vph
zgc RT VceldaPVT
1 n
Gps Gp ZC1 ZC2 Zi
2 i 3
6. Vph pini 1 n
GOES 379.4 Z
zgcini RT 1
C ZC2 Z
2 i 3 ini
i
p<pdew
pVg
zgc
ng RT
gas
Vg, ng
p Vg Vc
condensado
z2F
ng nc RT
condensado
retrogrado
Vc, nc
zgcini p
de la prueba CVD se puede determinar z2F: z2F
Gpeq
pini 1
G
Gas Condensado: EBM
c S cf
Gpeq B2F W p Bw G B2F B2Fi B2Fi w w i p We
1 Sw i
c
Gpeq Gp 132800Nc
Mc
z2 F T
B2F 0.00504
p
F G E 2F Efw We
F GE t We
GRACIAS
POR SU ATENCION