Design of Singly Reinforced Slab Using Matlab
Design of Singly Reinforced Slab Using Matlab
%inputs
mu= input('enter the value of factored bending moment in KNm: '); %the unit should be KNm
fck= input('enter the compressive strength of concrete in N/sq.mm: '); %value of fck
fy= input('enter the yeild strength of steel in N/sq.mm (must be given as 415 for this code): '
D= input('enter the overall depth of the beam in mm: '); %value of D
d= input('enter the effective depth of the beam in mm: '); %value of d
b= input('enter the width of the beam in mm: '); %value of b
%calculation of mu_lim
mu_lim= (0.138*fck*b*(d^2))/(10^6); %10 to the power of 6 is for conversion of units
else
fprintf ('DESIGN A DOUBLE REINFORCED BEAM');
end
%final Ast
if Ast1 < Ast2
Ast = Ast1;
else
Ast = Ast2;
end
1
fprintf('required area of steel is %f sq.mm',Ast)
%number of bars
dia= input('Enter the diameter of steel bars: ')
dia = 20
area= (pi/4)*(dia^2)
area = 314.1593
N= (Ast/area);
N= round(N);
Ast_provided= N*area;
fprintf ('Provide %f bars at appropriate centre to centre distance',N)