%Theoretical Optimum Shape Finding %Seeks the shape optimised beam design with the minimum possible embodied %carbon when shape is not restricted in any form %Output figure shows the variation of embodied carbon with design depth %Minimum point of the curve shows the optimum depth and minimum possibel %embodied carbon %Check EEEE in the memory for design details of each beam global dflange bf fc Ec fs Es; dflange=160; %mm fs=500; %N/mm2 Es=200000; %N/mm2 %finding the moments of the section and calling for curvature global L0 d h bw M; L0=8; %m %Concrete Compressive strength and Elastic modulus F=[12 20 30 40 50]; E=[27000 30000 33000 35000 37000]; G=3; fc=F(G); Ec=E(G)/3; %Big loop beamno=1; for Hmax=300:10:900 %Analyse for this beam %Calculate flexure for s=0:5 row=1; for h=dflange:5:Hmax %N1=2+(h-250)/10; for bw=200:5:700 bf=bw+2240; Wu=67.67; %kN/m for ULS %Flexural performance d=Hmax-40; M=Wu*L0*L0/8; k=M*1000000/(bf*d*d*fc); z=d*(0.5+(0.25-(k/1.14))^0.5); if isreal(z) if z>0.95*d z=0.95*d; end Asf=M*1000000/(0.87*fs*z); else Asf=NaN; end Asmax=0.04*h*bw; if Asf>Asmax Asf=NaN; end x=(d-z)/0.4; Ans=['For h= ', num2str(h), 'and b= ', num2str(bw), ' Asflex= ', num2str(Asf)]; disp (Ans); %N2=2+(h-bw)/10; ASM{row,1,s+1}=h; ASM{row,2,s+1}=bw; %Change the d now d=h-40; %Check whether it satisfies apploed moment Lx=L0*s/10; Mx=Wu/2*Lx*(L0-Lx); zx=Mx*1000000/(0.87*fs*Asf); xx=1.908*fs*Asf/(fc*bf); dx=zx+xx*0.4; if dxd Asf=NaN; end ASM{row,3}=Asf; %ASM(N,i+1)=As; %Shear design Ved=Wu*L0/2-Wu*L0*s/10; %Desin shear stress Ved=Ved*1000; %Concrete Capacity Vrdc k1=1+(200/d)^0.5; k2=2; k=min(k1,k2); ro1=Asf/(bw*d); ro2=0.02; ro=min(ro1,ro2); Vrdc1=0.12*k*bw*d*(100*ro*fc)^(1/3); Vrdc2=0.035*bw*d*(fc^0.5)*(k^(3/2)); Vrdc=max(Vrdc1,Vrdc2); Vmin=0.15*d*bw*(fc)^0.5; %Minimum reinforcement decision if Ved=2.5 %disp ('Use cot(teta)=2.5'); AwS=Ved/(0.9*2.5*d*fs*0.87); shearcon='Use cot(teta)=2.5'; %Calculate concrete strut strength Vcon=0.13*d*bw*fc*(1-fc/250); if Vcon