Design of Flexural Beam #Include #Include Using Namespace Void Double
Design of Flexural Beam #Include #Include Using Namespace Void Double
double Wu1,Wu2,Mu,Mulim,d,t,le1,le2,le,Astreqd,Astpr,n,R,d1,ds,fsc,Asc,kt,kc,N,Pc1; cout<<"Enter the compressive strenth of concrete in MPa:"; cin>>fck; cout<<"Enter the yield strength of steel in MPa:"; cin>>fy; cout<<"Enter live load in KN/m:"; cin>>LL; cout<<"Enter the Dead load in KN/m:"; cin>>DL; cout<<"Enter the Point load if any in KN:"; cin>>PL; cout<<"Enter the size of the Beam in millimetre:"; cin>>B>>D; cout<<"Enter the span of the beam in metre:"; cin>>L; cout<<"Enter the wall thickness of the structure in millimetre:"; cin>>t; cout<<"Enter the Clear cover of the beam in millimetre depending on the moisture condition:"; cin>>Cc; cout<<"Enter the diamter of the bar to be used in mm:"; cin>>dia; d=D-dia/2-Cc; cout<<"Effective depth of the beam is:"<<d<<"m"<<endl; le1=L+d/1000; le2=L+t/1000; if(le1<le2) { le=le1; cout<<"Effective span of the beam="<<le<<"m"<<endl; } else { le=le2; cout<<"Effective span of the beam ="<<le<<"m"<<endl; } SW=25*B/1000*D/1000; cout<<"Self weight of the beam is ="<<SW<<"KN/m"<<endl; Wu1=1.5*(LL+DL+SW); cout<<"Factored load, Wu1="<<Wu1<<"KN/m"<<endl; Wu2=1.5*PL; cout<<"Factored point load, Wu2="<<Wu2<<"KN"<<endl; V=(Wu1*le+Wu2)/2; cout<<"Reaction at the support ="<<V<<"KN"<<endl; Mu=(Wu1*le*le)/8+(Wu2*le)/4; cout<<"Factored moment from the load, Mu="<<Mu<<"KNm"<<endl; cout<<"Enter the value of a depending on the fy used";
cin>>a; cout<<"Enter the value of c from the code depending on fy used:"; cin>>c; Mulim=(c*fck*B*d*d)/(1000*1000); cout<<"Moment resistance of the section, Mulim="<<Mulim<<"KNm"<<endl; if (Mulim>Mu){ cout<<"Since Mulim is greater than Mu, design the section as singly reinforced section"<<endl; cout<<"......... DESIGN OF SINGLY REINFORCED BEAM.............."<<endl; R=Mu/(B*d*d); Astreqd=fck/(2*fy)*(1-(sqrt(1-(4.598*R)/fck)))*B*d*1000*1000; cout<<"Amount of steel required is,Astreqd="<<Astreqd<<"mm2"<<endl; n=ceil((4*Astreqd)/(3.14*dia*dia)); cout<<"Number of steel rebars ="<<n<<endl; Astpr=n*3.14/4*dia*dia; if(Astpr>Astreqd){ cout<<"Since Astpr>Astreqd, the section is safe"<<endl; } else { cout<<"Re-consider the diameter of the rebar"<<endl; } cout<<"...... DESIGN CHECKS........"<<endl; cout<<"1.Ultimate moment resistance of the beam"<<endl; Pt=Astpr/(B*d)*100; cout<<"Percentage reinforcement provided, Pt="<<Pt<<endl; MuR=(0.87*fy*Pt/100*(1-fy/fck*Pt/100)*B*d*d)/(1000*1000); cout<<"Ultimate moment resistance of the section, MuR="<<MuR<<"KNm"<<endl; if (MuR>Mu){ cout<<"Since, MuR>Mu, the design is safe"<<endl; } else { cout<<"Redesign the section"<<endl; } cout<<"2.Percentage reinforcement"<<endl; Ptlim=a*fck; if (Pt<Ptlim){ cout<<"Section is safe as per the percentage steel provided"<<endl; } else { cout<<"The is not safe"<<endl; } } else if(Mu>Mulim){ cout<<"Design the beam as doubly reinforced beam"<<endl; Ptlim=a*fck; Astlim=Ptlim/100*B*d; cout<<"Enter the diameter of the stirrup to be used:"; cin>>ds; d1=Cc+dia/2+ds; Ast1=(Mu*1000*1000-Mulim*1000*1000)/(0.87*fy*(d-d1)); Astreqd=Ast1+Astlim;
cout<<"Amount of steel reinforcement required is: Astreqd="<<Astreqd<<"mm2"<<endl; n=ceil((4*Astreqd)/(3.14*dia*dia)); cout<<"Number of steel rebars ="<<n<<endl; Astpr=n*3.14/4*dia*dia; cout<<"Amount of steel reinforcement provided is="<<Astpr<<"mm2"<<endl; cout<<"********** DETERMINING ASC****************"<<endl; cout<<"Enter the value of fsc from the code depending on the d1/d value"<<endl; cin>>fsc; Asc=(0.87*fy*Ast1)/(fsc-0.447*fck); cout<<"Amout of steel required in the compression side is ="<<Asc<<"mm2"<<endl; N=ceil((4*Asc)/(3.14*dia*dia)); cout<<"Number of compression reinforcement="<<N<<endl; Ascpr=N*3.14/4*dia*dia; cout<<"Amount of steel provided in the compression side is="<<Ascpr<<"mm2"<<endl; cout<<"************** DESIGN CHECKS***************"<<endl; cout<<"1.To ensure Xu<Xumax"<<endl; Pt=Astpr/(B*d)*100; cout<<"Pt="<<Pt<<endl; Pc=Ascpr/(B*d)*100; cout<<"Pc="<<Pc<<endl; Pc1=(0.87*fy*(Pt-Ptlim))/(fsc-0.447*fck); if(Pc>Pc1){ cout<<"since Pc>Pc1, the section is underreinforced"<<endl; } else { cout<<"Redesign the section"<<endl; } cout<<"2.check for deflection control"<<endl; cout<<"Enter kc,kt,lfrom the code"<<endl; cin>>kc>>kt>>l; dmax=l*kc*kt; cout<<"(l/d)max is="<<dmax<<endl; dp=L/d; cout<<"(l/d)provided="<<dp<<endl; if(dp<dmax){ cout<<"The section is safe against deflection"<<endl; } else { cout<<"Redesign, the is not safe against deflection"<<endl; } } }