g_max_A=172.369*(10^6);
g_max_M=68.9476*(10^6);
G_M=10.8*(10^9);
G_A=28.8*(10^9);
v=0.33;
D = 5;
D=D/1000;
d_net=0;
length_f=0.121;
while (length_f >= 0.01) & (d_net <= 0.07857)
length_f=length_f-0.001;
dl=105;
dl=dl/1000;
angle_f=90;
g=zeros(40);
while (g<=0.08) & (angle_f>=0)
angle_f=angle_f-0.1;
pitch_f=tand(angle_f)*pi*D;
length_i=length_f-dl;
n=length_f/pitch_f;
angle_i=atand(length_i/(pi*n*D));
d=150*(10^-6);
g=d./D.*cosd(angle_i).^2.*(sind(angle_f-(2*angle_i))+...
sind(angle_i))./(cosd(angle_f-(2*angle_i)).^2.*...
(cosd(angle_f-(2*angle_i)).^2.+...
(sind(angle_f-(2*angle_i)).^2)./(1+v)));
end
angle_range=angle_i:0.1:angle_f;
g_range=d./D.*cosd(angle_i).^2.*(sind(angle_range-(2*angle_i))+...
sind(angle_i))./(cosd(angle_range-(2*angle_i)).^2.*...
(cosd(angle_range-(2*angle_i)).^2.+...
(sind(angle_range-(2*angle_i)).^2)./(1+v)));
gcr_s=0.01;
gcr_f=0.12;
ESg=0.5.*cos(pi.*(g_range-gcr_f)./(gcr_s-gcr_f))+0.5;
eigth=round(length(ESg)*0.01/g);
ESg(1:eigth)=0;
angle_A_f0 = 30;
angle_A_f = fzero(@(angle_A_f) findangle(angle_A_f,G_A,d,D,angle_i,v,n),angle_A_f0);
d_A=n*pi*D*tand(angle_A_f);
d_net=dl-d_A;
end
disp(angle_A_f)
disp(d_net)
function Z = findangle(angle_A_f,G_A,d,D,angle_i,v,n)
Z = G_A*d^4/(8*D^3*n)*cosd(angle_i)^3/(cosd(angle_A_f)^2*(cosd(angle_A_f)...
^2+sind(angle_A_f)^2/(1+v)))*n*pi*D*tand(angle_A_f) - 0.981;
end
0 Comments
Sign in to comment.