Using MatLab make a script to model liquid petroleum being p

Using MatLab, make a script to model liquid petroleum being pumped from an underground reservoir. Assume the reservoir is a square with equal pressure on all sides, with a well-hole drilled into the middle. The pressure of the reservoir is 18,616,000Pa and the pressure of the well-hole is 101,300Pa. Use a differential equation to show how the pressure of the reservoir changes over time. You may want to use the Foward Euler Method.

Solution

%Metodo de Euler % Hello, I assume an exponetional solution for the reservoir pressure. If % you give me the euatio (or yopu could do yourself) you can change the % differential equetion and solve with EULER method. clear,clc %Inputs syms x y dydx = -201*exp(-0.02*x)*abs(cos(100*x)) - 350*exp(-0.02*x)*abs(sin(100*x)); %DIFERENTIAL EQUATION x0 = 0; %Valor inicial en x y0 = 18616; %INITIAL VALUE a = 0; %Limite inferior solucion b = 200; %Limite superior solucion n = 501; %Nummber of points h = (b - a)/(n - 1); %Espaciado entre puntos de red %Aproximacion a la solucion X(1) = x0; Y(1) = y0; for i = 1:n-1 m = subs(dydx,{x,y},[X(i),Y(i)]); Y(i+1) = Y(i) + h*m; X(i+1) = X(i) + h; end X ; Y ; plot(X,Y,\'r\') grid on hold off title(\'P(t) Vs. t\') xlabel(\'time [month]\') ylabel(\'Pressure at the reservoir [kPa]\')
Using MatLab, make a script to model liquid petroleum being pumped from an underground reservoir. Assume the reservoir is a square with equal pressure on all si

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site