Professional Documents
Culture Documents
DE YACIMIENTOS
PROYECTO FINAL
ECUACIN DE BALANCE DE MATERIA
Prof: Daniel Eduardo Carballo Ayala
EQUIPOS DE 5 PERSONAS
LINEAMIENTO
S DEL
PROYECTO
TRABAJO ESCRITO
CODIGO EN MATLAB
INSTRUCCION
ES
Tabla 1
PVT
B) ndices de empuje
(c) Para los puntos de tiempo de 0 a 3595 das, con la tcnica de la EBM expresada como
lnea recta, determine N. Asuma que NO existe acufero.
(d) Que concluye, con los valores de N que obtiene?
(e) Realice unagrficade F vs F/Et como se muestrea en lafigura1. Esta es conocida
comogrficade Campbell. Comprela con lagrficaporporcionada.
Tabla 4
Produccin
Tabla 3
PVT
Grafica
de
Campbell
Funcin linterp
function [yStar,slope] = linterp(x,y,xStar);
% linterp Piecewise linear interpolation in a
table of (x,y) data
% Synposis: yi = linterp(x,y,xi)
% Input: x,y = vectors containing the tabulated
data
% xi = value of x at which function y = f(x)
is desired
% Output: yi = value of y at xi obtained by
linear interpolation
% slope = Slope at xi
i = binSearch(x,xStar); % Find
appropriate data pair
slope=(y(i+1)-y(i))/(x(i+1)-x(i));
yStar = y(i)+ slope*(xStar-x(i)); % Evaluate
interpolant
Funcin binsearch
function ia = binSearch(x,xhat);
% binSearch Binary search to find index i such that x(i)<=
xhat <= x(i+1)
% Synopsis: i = binSearch(x,xhat)
% Input: x = vector of monotonic data
% xhat = test value
% Output: i = index in x vector such that x(i)<= xhat <=
x(i+1)
n = length(x);
if xhat<x(1) | xhat>x(n)
error(sprintf('Test value of %g is not in range of x',xhat));
end
ia = 1; ib = n; % Initialize lower and upper limits
while ib-ia>1
im = fix((ia+ib)/2); % Integer value of midpoint
if x(im) < xhat
ia = im; % Replace lower bracket
else
ib = im; % Replace upper bracket