You are on page 1of 4

Matlab code: %this program iterates k to minimize the error in the check equation close all; clear all;

clc; %constants g=9.81; %this defines the acceleration of gravity Dens=1000; %the density of water Gamma=g*Dens; %the specific gravity of water %the design point parameters N=1500; %the speed of the pump impeller Q=0.03; %the volumetric flow rate H=60; %the pump head %the calculation procedure %(1) first we calculate the shaft diameter N_s=(N*Q^0.5)/(H^0.75); %the specific speed of the pump Etta_0=0.625; %from stepanoff graph Omega=2*pi*N/60; Torq=(Gamma*Q*H)/(Etta_0*Omega); S=2*10^6; %assumed allowable shear D_sh=(Torq/(pi*S/16))^(1/3); %the desired shaft diameter D_shcor=1.2*D_sh %a corrected value for the shaft diameter %(2) we calculate the impeller dimensions K_cm2 = 0.083; %from stepanoff diagram K_cm1 = 0.115; %from stepanoff diagram CM_1 = K_cm1*((2*g*H)^0.5); %the flow velocity at inlet CM_2 = K_cm2*((2*g*H)^0.5); %the flow velocity at outlet Etta_vol = 0.96; %assumption for the vol efficiency QL = (Q/Etta_vol)-Q; %the leakage flow D_hf = 1.3*D_shcor; %assumption for the fronthub diameter D_hb = 1.35*D_shcor; %assumption for the backhub diameter Ceye = 0.91*CM_1; %assumption for the velocity at the eye Deye = ((4*Q)/(pi*Ceye)+D_hf^2)^0.5 %the eye diameter D1 = 1.1*Deye %assumption for the impeller inlet diameter epsilon1 = 0.85; epsilon2 = 0.925; %assumption for the contraction coefficients at inlet and exit b1 = (Q+QL)/(pi*D1*epsilon1*CM_1); %the width of the impeller at inlet Dr = D_hf+Deye-D_sh; %the wear-ring diameter Etta_m = 0.96; %assumption for the mechanical efficiency Etta_h = Etta_0/(Etta_vol*Etta_m) %hydraulic efficiency t = 0.003 %assumption for the thickness %now we iterate over k and phi to find the optimum design parameters %that give a consistant design for the pump phi_e = 0.99:0.001:1.02; %the range for the speed ratio k = 0.65:0.001:0.68; %the range for the pressure coefficient error = 100*ones(length(k),length(phi_e)); %the error holder matrix for j = 1:length(phi_e) phi = phi_e(j); U2 = phi*(2*g*H)^0.5; D2 = (60*U2)/(pi*N);

%the impeller velocity at exit %the impeller outlet diameter

%(3) calculating the flow angles U1 = (pi*D1*N)/60; %the impeller velocity at inlet

beta1 = atand(CM_1/U1);

%the angle at inlet

for i = 1:length(k) Hth_inf = H/k(i); %the theoretical head Cu2 = (g*Hth_inf)/U2; %the tangential velocity at exit beta2 = atand(CM_2/(U2-Cu2)); %the angle at exit slipf = k(i)/Etta_h; %assumption for the slip factor Cu2_cor = slipf*Cu2; %the corrected tangential velocity beta2_cor = atand(CM_2/(U2-Cu2_cor)); %the corrected value for the angle %(4) calculating the number of blades and actual contraction coefficients betam = (beta1+beta2)/2; %used incalculating Z Z_calc = 6.5*((D1+D2)/(D1-D2))*sin(betam); %the calculated no of blades Z = double(uint8(Z_calc)+1); %(5) refining the parameters and dimensions to find the error r1 = D1/D2; epsi = 1.1*(1+sin((pi/180)*beta2_cor))*r1; Cp = epsi*(2/Z)*(1/(1-r1^2)); r2 = CM_2/(2*tan((pi/180)*beta2_cor)); RHS = r2+(r2^2+g*(H/Etta_h)*(1+Cp))^0.5; LHS = U2; error(i,j) = (RHS-LHS)/LHS; end end [C1,I1] = min(error); [C,I] = min(C1); error(I1(I),I); %(6) calculating the final parameters for the design phi = phi_e(I) %the speed ratio k_e = k(I1(I)) %the pressure coefficient U2 = phi*(2*g*H)^0.5; %the impeller velocity at exit D2 = (60*U2)/(pi*N) %the impeller outlet diameter b2 = (Q+QL)/(pi*D2*epsilon2*CM_2); %the impeller width at exit U1 = (pi*D1*N)/60; %the impeller velocity at inlet C1 = CM_1; %assuming radial flow at inlet "CU1 = 0" beta1 = atand(CM_1/U1); %the angle at inlet beta1_cor = beta1+2 %accounting for pre-rotation Hth_inf = H/k_e; %the theoretical head Cu2 = (g*Hth_inf)/U2; %the tangential velocity at exit beta2 = atand(CM_2/(U2-Cu2)); %the angle at exit slipf = k_e/Etta_h %assumption for the slip factor Cu2_cor = slipf*Cu2; %the corrected tangential velocity beta2_cor = atand(CM_2/(U2-Cu2_cor)) %the corrected value for the angle betam = (beta1+beta2)/2; %used incalculating Z Z_calc = 6.5*((D1+D2)/(D1-D2))*sin(betam); %the calculated no of blades Z = double(uint8(Z_calc)+1) epsilon1_cor = (pi*D1-Z*(t/sin((pi/180)*beta1_cor)))/(pi*D1) %actual value epsilon2_cor = (pi*D2-Z*(t/sin((pi/180)*beta2_cor)))/(pi*D2) %actual value b1_act = (Q+QL)/(pi*D1*CM_1*epsilon1_cor) %the actual impeller width at inlet b2_act = (Q+QL)/(pi*D2*CM_2*epsilon2_cor) %the actual impeller width at exit %(5) refining the parameters and dimensions r1 = D1/D2; diameters_ratio = 1/r1 epsi = 1.1*(1+sin((pi/180)*beta2_cor))*r1; Cp = epsi*(2/Z)*(1/(1-r1^2));

r2 = CM_2/(2*tan((pi/180)*beta2_cor)); RHS = r2+(r2^2+g*(H/Etta_h)*(1+Cp))^0.5; LHS = U2; error_percentage = abs((RHS-LHS)/LHS) NS=6; R1=D1/2 R7=D2/2 dR=(R7-R1)/NS; R=@(x) (x*dR)+R1; %number of samples %sampling distance

dcm=(CM_2-CM_1)/NS; %slope CM CM=@(x) (x*dcm)+CM_1; arr=R(0:6); %sample form the root diameter to the outer diameter arr2=CM(0:6); %CM form the root diameter to the outer diameter u=@(x) 2*pi*R(x)*N/60; %blade velocity @ sample arr1=u(0:6); w1=sqrt((C1^2)+(U1^2)); %calculate W1 w2=sqrt((CM_2^2)+((U2-Cu2_cor)^2)); %calculate W2 dw=(w2-w1)/NS; %slope w w=@(x) (x*dw)+w1; arr3=w(0:6); beta=@(x) asind(CM(x)/w(x)); %beta calc. arr4=[beta(0) beta(1) beta(2) beta(3) beta(4) beta(5) beta2]; rho1=@(x) R(x).^2; rho2=@(x) cosd(beta(x))*(R(x)); R12u=rho1(1)-rho1(0); R12den=2*(rho2(1)-rho2(0)); R12=R12u/R12den; R23u=rho1(2)-rho1(1); R23den=2*(rho2(2)-rho2(1)); R23=R23u/R23den; R34u=rho1(3)-rho1(2); R34den=2*(rho2(3)-rho2(2)); R34=R34u/R34den; R45u=rho1(4)-rho1(3); R45den=2*(rho2(4)-rho2(3)); R45=R45u/R45den; R56u=rho1(5)-rho1(4); R56den=2*(rho2(5)-rho2(4)); R56=R56u/R56den; R67u=rho1(6)-rho1(5); R67den=2*((R(6)*cosd(beta2_cor))-rho2(5)); R67=R67u/R67den; disp(' R1 R2 R3 R4 R5 R6 R7') disp(arr) disp(' CM1 CM2 CM3 CM4 CM5 CM6 CM7 ') disp(arr2) disp(' w1 w2 w3 w4 w5 w6 w7 ') disp(arr3) disp(' bet1 beta2 beta3 beta4 beta5 beta6 beta7 ') disp(arr4) disp(' R1a Rab Rbc Rcd Rde Ref Rf2 ') arr5=[R12 R23 R34 R45 R56 R67]; disp(arr5)

Output: Z = 16 D_shcor = 0.0925 Deye = 0.1584 D1 = 0.1743 t = 0.0030 phi = 1.0140 k_e = 0.6500 D2 = 0.4430 beta1_cor = 18.0814 beta2_cor = 16.1352 epsilon1_cor =0.7175 epsilon2_cor = 0.8759 b1_act = 0.0202

slipf = 0.9585 Etta_h = 0.6782

b2_act =0.0090
diameters_ratio = 2.5419 error_percentage = 0.0335 R1 0.0871 CM1 3.9457 w1 14.2443 beta1 16.0814 R1a 0.1024 Ra 0.1095 CMa 3.7627 wa 13.5781 betaa 16.0881 Rab 0.1257 Rb 0.1319 CMb 3.5797 wb 12.9119 betab 16.0956 Rbc 0.1490 Rc 0.1543 CMc 3.3967 wc 12.2458 betac 16.1039 Rcd 0.1723 Rd 0.1767 CMd 3.2137 wd 11.5796 betad 16.1131 Rde 0.1957 Re 0.1991 CMe 3.0307 we 10.9134 betae 16.1235 Rfe2 0.2190 R2 0.2215 CM2 2.8478 w2 10.2473 beta2 18.0038

You might also like