Beruflich Dokumente
Kultur Dokumente
Appendix B
=
2
(
233.9096
) 's','MarkerSize',8);
√ 0.145 4
1.2
( ) −1
0.090
= 𝟖. 𝟐𝟒𝟑 𝒎/𝒔
title ('Pressure vs
Distance of the tube',
𝑄𝑉𝑒𝑛𝑡𝑢𝑟𝑖 = (𝑈𝑚𝑒𝑎𝑛 )(𝜋 ∗ 𝑟 2 )
= (8.243 )(𝜋 ∗ 0.06352 )
'FontName','Times','Fon
𝒎𝟑 tSize',20)
= 𝟎. 𝟏𝟑𝟔𝟏
𝒔
xlabel('Distance (in)', 'FontName','Times','Fon
'FontName','Times','Fon tSize',20);
tSize',19);
ylabel('Pressure (Pa)', plot(U,R);
'FontName','Times','Fon xlabel('velocity
tSize',19); (m/s)',
'FontName','Times','Fon
tSize',20);
Pmax=P(1,9);
Pmin=min(P); ylabel('r (in)',
'FontName','Times','Fon
delat_P=abs(Pmax-Pmin); tSize',20);
q=1.2; hold on;
Umax=max(U);
da=145; R2=2.5;
db=90; n=7;
'FontName','Times','Fon
flow_rate=U_mean* tSize',20);
pi*(da/(2*1000))^2; xlabel('velocity
(m/s)',
U_mean=sqrt((2/(((da/db U_Theortical=Umax*((1-
)^4)-1))*(delat_P/q)); (R.^2/R2^2)).^(1/n));
plot(U_Theortical,R);
ylabel('r (in)',
U=sqrt((2/q)*(delta_P2) ('Experimental','Theore
); tical data',
r=R*0.0254; 'Location', 'best')
Q_pitot=2*pi()* trapz
(r(6:11),U(6:11).*r(6:1 'FontName','Times','Fon
1)); tSize',20);
plot(delta_P2,r); legend
ylabel('r (in)', fprintf(1,'Umean=%4.3f,
'FontName','Times','Fon Umax=%4.3f,Pitot
tSize',20); Flow=%4.3f, Venturi
xlabel('Delta_Pressure Flow=%4.3f,\n'...
(Pa)',
,U_mean,Umax m = ((N*sum(x.*Y))-
,Q_Pitot,Q_Venturi) sum(x)*sum(Y))/((N*sum(
x.^2))-sum(x)^2);
%linear regression
uncertainity=0.01; slope calculation
b = 1/N*sum(Y-m*x);
Area_pipe=3.14*max(R)*. dmdx = -
0254*max(R)*.0254; 1/(N*sum(x.^2)-
sum(x)^2)*(N*sum(Y)-
UN_pressure=((uncertain sum(Y))+...
ity*248.84)/2); (N*sum(x.*Y)-
UN_pressure_Venturi sum(x)*sum(Y))*...
=sqrt((UN_pressure^2) (-1/(N*sum(x.^2)-
+((-UN_pressure)^2)); sum(x)^2)^2)*(N*sum(2*x
UN_FlowRate_Venturi=sqr )-2*sum(x));
t((3.14*((max(R)*.0254) dmdy = -(sum(x) -
^2)*UN_velocity_Venturi N*sum(x))/(N*sum(x.^2)
)^2); - sum(x)^2);
dbdx = -m/N;
dbdy =1/N;
UN_velocity_Venturi=sqr
t(((.5)*((2/(((da/db)^4 %errors of slope and
-1)) interceps
*1/q)^(1/2))*(delat_P)^ um
(- =sqrt((dmdx*ux)^2+(dmdy
1/2)*(UN_pressure_Ventu *uY)^2);
ri))^2); ub
=sqrt((dbdx*ux)^2+(dbdy
*uY)^2);
%Calcaulations %output
N = length(x); figure
plot(x, Y, 'Marker',
'o', 'MarkerSize', 6,
'Color', 'k', ...
'MarkerFaceCOlor',
'k', 'LineStyle',
'none')
'FontName','Times','Fon
tSize',20)
set(findall(fig,'-
property','FontSize'),'
FontSize',12);
set(findall(fig,'-
property','FontSize'),'
FontName','Times')
hold on
plot(x, m*x+b,
'LineWidth', 4,
'Color', [0.7 0 0.65])
errorbar(x, m*x+b,
uYFit, 'LineWidth', 2,
'Color', [1 0 0])
legend('Raw data',
'Fitted Line')
xlabel('radius (in)',
'FontName','Times','Fon
tSize',20)
ylabel('Pressure
("H2O)',