Sie sind auf Seite 1von 11

disp('.......................................................

.............................................................
.............................................................
.................')
disp('.......................................................
.............................*1. Al-Shammasi
correlation*.................................................
.............')
.disp('......................................................
.............................................................
.............................................................
..................')
%Determination of Pb1
Pb1=Rawoil.^5.527215.*exp(-
1.841408*(Rawoil.*Rawgas)).*(GOR.*T.*Rawgas).^0.783716
%Absolute Erorr:-
ABSErorr1= abs(pb-Pb1)
%Relative Erorr:-
RElErorr1=(ABSErorr1./pb).*100
%Root mean square for ABS Erorr:-
SQRErorr1=ABSErorr1.^2
%Root mean square for Relative Erorr:-
SQRRelErorr1=RElErorr1.^2
%Averge Absolute Erorr:-
AAE1=mean(ABSErorr1)
%Average percent Realative Erorr:-
APRE1=mean( RElErorr1)
%Maximum ABS Erorr:-
MAXABS1=max(ABSErorr1)
%%Maximum Relative Erorr:-
MAXREl1=max(RElErorr1)
%Minimum Absolute Erorr:-
MINABS1=min(ABSErorr1)
%Minimum Relative Erorr:-
MINREL1=min(RElErorr1)
%Standard Deviation:-
STD1=std(ABSErorr1)
%The correlation coefficient:-
CRF1=corrcoef(Pb1,pb)
%Root Mean SQR Error:-
RMQE1=(sum(SQRRelErorr1)./24).^0.5
%NOW THE Plotting and disply figure:-
figure
plot(pb,Pb1)
title('Figure.1cross plot of predicted value of pb VS actual
pb Al-Shammasi correlation')
xlabel('Actual')
ylabel('predicted Pb')
figure
hold on
plot(Nod',pb,'black')
plot(Nod',Pb1,'r')
title('FIG.2 chart ilustrate the difference between actual &
predicted Pb Al-Shammasi correlation')
xlabel('Number of data')
ylabel('Actual+predicted PB')
hold off
disp('.......................................................
.............................................................
.............................................................
.................')
disp('.......................................................
...................*2.Glaso
correlation*.................................................
....................................')
disp('.......................................................
.............................................................
.............................................................
.................')
%glaso constant
a=0.816;
b=0.172;
c=-0.989;
%Determination of Pb2 by glaso Equ
pstar=((GOR./Rawgas).^a.*(t).^b.*(API).^c);
Pb2=10.^(1.7669+1.7447*log10(pstar)-
0.30218*(log10(pstar)).^2)
%Absolute Erorr:-
ABSErorr2= abs(pb-Pb2)
%Relative Erorr:-
RElErorr2=(ABSErorr2./pb).*100
%Root mean square for ABS Erorr:-
SQRErorr2=ABSErorr2.^2
%Root mean square for Relative Erorr:-
SQRRelErorr2=RElErorr2.^2
%Averge Absolute Erorr:-
AAE2=mean(ABSErorr2)
%Average percent Realative Erorr:-
APRE2=mean( RElErorr2)
%Maximum ABS Erorr:-
MAXABS2=max(ABSErorr2)
%%Maximum Relative Erorr:-
MAXREl2=max(RElErorr2)
%Minimum Absolute Erorr:-
MINABS2=min(ABSErorr2)
%Minimum Relative Erorr:-
MINREL2=min(RElErorr2)
%Standard Deviation:-
STD2=std(ABSErorr2)
%The correlation coefficient:-
CRF2=corrcoef(Pb2,pb)
%Root Mean SQR Error:-
RMQE2=(sum(SQRRelErorr2)./24).^0.5
%NOW THE Plotting and disply figure:-
figure
plot(pb,Pb2)
title('Figure3cross plot of predicted value of pb VS actual
pb Al-Shammasi correlation')
xlabel('Actual')
ylabel('predicted Pb')
figure
hold on
plot(Nod',pb,'black')
plot(Nod',Pb2,'r')
title('FIG.4chart ilustrate the difference between actual &
predicted Pb Al-Shammasi correlation')
xlabel('Number of data')
ylabel('Actual+predicted PB')
hold off
disp('.......................................................
.............................................................
.............................................................
.................')
disp('.......................................................
................*3.marhouns
correlation*.................................................
...............................')
disp('.......................................................
.............................................................
.............................................................
.................')
%marhouns constant:-
a=0.00538088;
c=-1.87784;
e=1.32657;
b=0.715082;
d=3.1437;
%Determination of Pb3 by marhouns Equ
Pb3=a*GOR.^b.*Rawgas.^c.*Rawoil.^d.*T.^e;
%Absolute Erorr:-
ABSErorr3= abs(pb-Pb3)
%Relative Erorr:-
RElErorr3=(ABSErorr3./pb).*100
%Root mean square for ABS Erorr:-
SQRErorr3=ABSErorr3.^2
%Root mean square for Relative Erorr:-
SQRRelErorr3=RElErorr3.^2
%Averge Absolute Erorr:-
AAE3=mean(ABSErorr3)
%Average percent Realative Erorr:-
APRE3=mean( RElErorr3)
%Maximum ABS Erorr:-
MAXABS3=max(ABSErorr3)
%%Maximum Relative Erorr:-
MAXREl3=max(RElErorr3)
%Minimum Absolute Erorr:-
MINABS3=min(ABSErorr3)
%Minimum Relative Erorr:-
MINREL3=min(RElErorr3)
%Standard Deviation:-
STD3=std(ABSErorr3)
%The correlation coefficient:-
CRF3=corrcoef(Pb3,pb)
%Root Mean SQR Error:-
RMQE3=(sum(SQRRelErorr3)./24).^0.5
%NOW THE Plotting and disply figure:-
figure
plot(pb,Pb2)
title('Figure.5cross plot of predicted value of pb3VS actual
pb Al-Shammasi correlation')
xlabel('Actual')
ylabel('predicted Pb3')
figure
hold on
plot(Nod',pb,'black')
plot(Nod',Pb3,'r')
title('FIG.6 chart ilustrate the difference between actual &
predicted Pb3Al-Shammasi correlation')
xlabel('Number of data')
ylabel('Actual+predicted PB')
hold off
disp('.......................................................
.............................................................
.............................................................
.................')
disp('.....................................................*4
.Petrosky&Farshad
correlation*.................................................
....................................')
disp('.......................................................
.............................................................
.............................................................
..................')
%Determination of Pb4 by marhouns Equ
x=7.916*(10^-4)*API.^1.5410-4.561*10^-5*(T-460).^1.3911;
Pb4=((112.727*GOR.^0.577421)./(Rawgas.^0.8439.*10.^x))-
1391.051
%Absolute Erorr:-
ABSErorr4= abs(pb-Pb4)
%Relative Erorr:-
RElErorr4=(ABSErorr4./pb).*100
%Root mean square for ABS Erorr:-
SQRErorr4=ABSErorr4.^2
%Root mean square for Relative Erorr:-
SQRRelErorr4=RElErorr4.^2
%Averge Absolute Erorr:-
AAE4=mean(ABSErorr4)
%Average percent Realative Erorr:-
APRE4=mean( RElErorr4)
%Maximum ABS Erorr:-
MAXABS4=max(ABSErorr4)
%%Maximum Relative Erorr:-
MAXREl4=max(RElErorr4)
%Minimum Absolute Erorr:-
MINABS4=min(ABSErorr4)
%Minimum Relative Erorr:-
MINREL4=min(RElErorr4)
%Standard Deviation:-
STD4=std(ABSErorr4)
%The correlation coefficient:-
CRF4=corrcoef(Pb4,pb)
%Root Mean SQR Error:-
RMQE4=(sum(SQRRelErorr4)./24).^0.5
%NOW THE Plotting and disply figure:-
figure
plot(pb,Pb4)
title('Figure.7cross plot of predicted value of pb3VS actual
pb Al-Shammasi correlation')
xlabel('Actual')
ylabel('predicted Pb4')
figure
hold on
plot(Nod',pb,'black')
plot(Nod',Pb4,'r')
title('FIG.8 chart ilustrate the difference between actual &
predicted Pb4Al-Shammasi correlation')
xlabel('Number of data')
ylabel('Actual+predicted PB4')
hold off
disp('-------------------------------------------------------
-------------------------------------------------------------
---------------------------')
disp('...-------------------------------------..Summary of
statical Error analysis for BPP calculations.---------------
--------------------')
disp('---------------------------------------------------
-------------------------------------------------------------
-------------------------------------')

disp('.......................................................
.............................................................
.............................................................
.................')

disp('...................METHOD(1)...........................
.........................')
disp('.......................................................
.............................................................
.............................................................
.................')
disp('Averge Absolute Erorr:-')
AAE1
disp('.......Average percent Realative Erorr:-')
APRE1
disp('..............Maximum ABS Erorr:-.......')
MAXABS1
disp('.........Maximum Relative Erorr:-.......')
MAXREl1
disp('............Minimum Absolute Erorr:-.........')
MINABS1
disp('.............Minimum Relative Erorr:-.........')
MINREL1
disp('.............Standard Deviation:-..........')
STD1
disp('........The correlation coefficient:-.........')
CRF1
disp('--------Root Mean SQR Error:---------')
RMQE1
disp('.......................................................
.............................................................
.........................')
disp('.......................................................
...........METHOD(2).........................................
.....................')

dis('........................................................
.............................................................
..............................')
disp('Averge Absolute Erorr:-')
AAE2
disp('.......Average percent Realative Erorr:-')
APRE2
disp('..............Maximum ABS Erorr:-.......')
MAXABS2
disp('.........Maximum Relative Erorr:-.......')
MAXREl2
disp('............Minimum Absolute Erorr:-.........')
MINABS2
disp('.............Minimum Relative Erorr:-.........')
MINREL2
disp('.............Standard Deviation:-..........')
STD2
disp('........The correlation coefficient:-.........')
CRF2
disp('--------Root Mean SQR Error:---------')
RMQE2
disp('.......................................................
.............................................................
.............................................................
.................')
disp('.......................................................
....METHOD(3)................................................
.....................................................')
disp('.......................................................
.............................................................
.............................................................
.................')
disp('................Averge Absolute
Erorr:......................-')
AAE3
disp('.......Average percent Realative Erorr:-')
APRE3

disp('..................................................Maxim
um ABS Erorr:-
.............................................')
MAXABS3

disp('.............................................Maximum
Relative Erorr:-.........................')
MAXREl3
disp('.........................................Minimum
Absolute Erorr:-..................................')
MINABS3
disp('.........................................Minimum
Relative Erorr:-................................')
MINREL3
disp('............................................Standard
Deviation:-..............................')
STD3
disp('....................................The correlation
coefficient:-.................................')
CRF3
disp('--------Root Mean SQR Error:---------')
RMQE3
disp('.......................................................
............')
disp('...................METHOD(2)....................')
dis('........................................................
........')
disp('Averge Absolute Erorr:-')
AAE4
disp('.......Average percent Realative Erorr:-')
APRE4
disp('..............Maximum ABS Erorr:-.......')
MAXABS4
disp('.........Maximum Relative Erorr:-.......')
MAXREl4
disp('............Minimum Absolute Erorr:-.........')
MINABS4
disp('........................Minimum Relative Erorr:-
..........................')
MINREL4
disp('..........................Standard Deviation:-
.....................')
STD4
disp('.......................The correlation coefficient:-
....................................')
CRF4
disp('----.................---Root Mean SQR Error:-
.......................--------')
RMQE4

Das könnte Ihnen auch gefallen