Professional Documents
Culture Documents
#include<iostream.h>
#include<math.h>
#include<conio.h>
#include<iomanip.h>
void main()
{
clrscr();
cout.precision(3);
float Ast,dia,n,pi=3.14159;
cout<<"enter the dia of steel:";cin>>dia;
cout<<"no. of bars:";cin>>n;
Ast=n*pi*dia*dia/4;
cout<<"Area of steel for given dia and nos. is :"<<Ast<<" mm2"<<endl;
getch();
}
INPUT - OUTPUT
enter the dia of steel:25
no. of bars:6
Area of steel for given dia and nos. is : 2945.241 mm2
//. Number of rows of bar for given N-# combi of bars & breadth of beam.
#include<iostream.h>
#include<math.h>
#include<conio.h>
#include<iomanip.h>
void main()
{
clrscr();
cout.precision(3);
float Ast,dia1,dia2,n2,B,pi=3.14159,s1,s2;
int n1;
cout<<"enter the area of steel:";cin>>Ast;
cout<<"first size of dia of bars:";cin>>dia1;
n1=(4*Ast)/(pi*dia1*dia1);
cout<<"Required no. for single dia.:"<<n1<<endl;
cout<<"no. of bars for "<<dia1<<" #:";cin>>n1;
float Ast1,Ast2;
Ast1=n1*pi*dia1*dia1/4;
Ast2=Ast-Ast1;
cout<<"second size of dia of bars:";cin>>dia2;
n2=(4*Ast2)/(pi*dia2*dia2);
int n3=n2+1;
cout<<"Provide "<<n1<<"- "<<dia1<<" # and "<<n3<<" - "<<dia2<<" #"<<endl;
cout<<"spacing between two bars :";cin>>s1;
cout<<"side cover provided :";cin>>s2;
int n=n1+n3;
B=2*s2+(n-1)*s1;
cout<<"min breadth reqd for beam for one raw of bars:"<<B<<endl;
int ans,b;
cout<<"Is it o.k.? (1 for Y :: 2 for N): ";cin>>ans;
if(ans==2)
{
cout<<"enter the width of beam reqd.:";cin>>b;
n1=((b-2*s2)/(s1))+1;
cout<<"provide "<<n1<<" nos. of bars in one raw."<<endl;
cout<<"no. of raws reqd. "<<(n/n1)+1;
}
else
{
cout<<"Provide width of beam "<<B<<" with one raw of bars."<<endl;
}
getch();
}
void main()
{
clrscr();
beam b1;
b1.getdata();
getch();
}
// Serviceability Check.
#include<iostream.h>
#include<math.h>
#include<conio.h>
#include<iomanip.h>
class check
{
private:
float mr,l,mr1;
int type,R,ans;
public:
void getdata()
{
cout<<"Enter the length of beam in M :";cin>>l;
cout<<"Enter type of beam:(1-canti 2-SS 3-Conti.) :";cin>>ans;
cout<<"M.R. for given grade of mati. :";cin>>mr;
}
void getout()
{
switch(ans)
{
case 1:
cout<<"span/Depth should not be more than "<<7*mr<<endl;
cout<<"Depth of beam should be :"<<l*1000/(7*mr)<<" mm"<<endl;
break;
case 2:
if (l>10) mr1=10/l;
if (l<=10) mr1=1;
cout<<"span/Depth should not be more than "<<20*mr*mr1<<endl;
cout<<"Depth of beam should be :"<<l*1000/(20*mr*mr1)<<" mm"<<endl;
break;
case 3:
if (l>10) mr1=10/l;
if (l<=10) mr1=1;
cout<<"span/Depth should not be more than "<<26*mr*mr1<<endl;
cout<<"Depth of beam should be :"<<l*1000/(26*mr*mr1)<<" mm"<<endl;
break;
}
}
};
void main()
{
clrscr();
cout.precision(3);
check c1;
c1.getdata();
c1.getout();
getch();
}
6
INPUT - OUTPUT
1
Enter the length of beam in M :6
Enter type of beam:(1-canti 2-SS 3-Conti.) :2
M.R. for given grade of mati. :1.6
span/Depth should not be more than 32
Depth of beam should be :187.5 mm
2
Enter the length of beam in M :12
Enter type of beam:(1-canti 2-SS 3-Conti.) :3
M.R. for given grade of mati. :1.4
span/Depth should not be more than 30.333
Depth of beam should be :395.604 mm
INPUT - OUTPUT
1
Enter the grade of concrete :20
Enter the grade of steel :415
Diameter of stirrups
:8
Width and eff depth of beam :300 450
Load on beam (kn/m)
:20
length of beam (m)
:5
Assume % of steel (pt)
:1
Only nonimal shear reif. reqd.
Provide 8 # stirrups @ 173.747 c/c
2
Enter the grade of concrete :25
Enter the grade of steel :415
Diameter of stirrups
:10
Width and eff depth of beam :300 500
Load on beam (kn/m)
:40
length of beam (m)
:6
Assume % of steel (pt)
:1.9
Shear Rein. is reqd.
Provide 10 # stirrups @ 248.618 c/c
10
12
13
clrscr();
cout.precision(3);
Flange f1;
f1.getdata();
f1.getcal();
f1.getout();
getch();
}
INPUT - OUTPUT
1
Enter the grade of concrete :20
Enter the grade of steel :415
Eff depth,width of web :600 250
Thickness and width of flange:120 1200
MR of T-section is 797.515 KN-M
2
Enter the grade of concrete :25
Enter the grade of steel :500
Eff depth,width of web :500 200
Thickness and width of flange:150 1500
MR of T-section is 984.601 KN-M
15
}
}
void getout()
{
cout<<"MR of T-section is "<<Mu/1e06<<" KN-M"<<endl;
cout<<"Area of Tension steel :"<<Ast<<" mm2"<<endl;
}
};
void main()
{
clrscr();
cout.precision(3);
Flange f1;
f1.getdata();
f1.getcal();
f1.getout();
getch();
}
INPUT - OUTPUT
Enter the grade of concrete :20
Enter the grade of steel :415
Eff depth,width of web :450 240
Thickness and width of flange:120 1500
MR of T-section is 611.061 KN-M
Area of Tension steel :1635.847 mm2
17
if (sp[i]<=300)
{
cout<<"The spacing for "<<D[i]<<" mm dia is "<< sp[i]<<" mm c/c"<<endl;;
}
else
{goto jbo;}}
jbo:
if (sp[1]>300 && sp[2]>300 &&sp[3]>300)
{
cout<<"Provide 10 mm dia @ 300 mm c/c"<<endl;
}
}
};
void main()
{
clrscr();
cout.precision(3);
slab s1;
s1.getdata();
s1.getcal();
getch();
}
INPUT - OUTPUT
Enter the grade of concrete :20
Enter the grade of steel :415
Working Moment due to external load (kn-m):20
Assume Eff depth of slab :105
Eff. depth reqd for slab is :104.257
Provided depth is O.K.
ast 1002.94
The spacing for 10 mm dia is 88 mm c/c
The spacing for 12 mm dia is 112 mm c/c
The spacing for 16 mm dia is 200 mm c/c
19
20
cout<<"Qy = ";cin>>Qy;
Mx=Qx*w*lx*lx/8;
My=Qy*w*lx*lx/8;
Astx=Mx/(0.87*fy*(dx-0.42*xul));
Asty=My/(0.87*fy*(dy-0.42*xul));
ast=3.14*.25*dia*dia;
spx=ast*1000/Astx;
spy=ast*1000/Asty;
if(spx>300) spx=300;
if(spy>300) spy=300;
Astd=0.12*1000*d/100;
spr=3.14*.25*8*8*1000/Astd;
if(spr>300) spr=300;
}
void getout()
{
cout<<"Eff depth of slab :"<<dx<< " mm"<<endl;
cout<<"Provide "<<dia<<" # @ "<<spx<<" mm c/c in shorter span."<<endl;
cout<<"Provide "<<dia<<" # @ "<<spy<<" mm c/c in longer span."<<endl;
cout<<"Provide "<<8<<" # @ "<<spr<<" mm c/c as distri. steel."<<endl;
}
};
void main()
{
clrscr();
cout.precision(3);
slab s1;
s1.getdata();
s1.getcal();
s1.getout();
getch();
}
22
INPUT - OUTPUT
Enter the grade of concrete :20
Enter the grade of steel :415
Working external load (kn/m):20
Shorter span & Longer span (m):2 2
diameter of reinforcement :10
Assume Eff depth of slab :120
Eff. depth reqd for slab is :73.721
Provided depth is O.K.
Value of Constants of Moments for ly/lx :1,
Qx= .52
Qy = .52
Eff depth of slab :120 mm
Provide 10 # @ 300 mm c/c in shorter span.
Provide 10 # @ 300 mm c/c in longer span.
Provide 8 # @ 300 mm c/c as distri. steel.
23
}
switch(fy)
{
case 250:
fst=140;
break;
case 415:
fst=190;
break;
}
m=280/(3*fcbc);
k=1/(1+(fst/(m*fcbc)));
j=1-(k/3);
Q=0.5*fcbc*k*j;
dr=sqrt(Mu/(Q*3.14*0.5*r1));
}
void getout()
{
cout<<endl;
cout<<"------------------ Analysis Data ---------------------"<<endl;
cout<<endl;
cout<<"Diameter of footing :"<<2*r2<<" mm"<<endl;
cout<<"Depth reqd. tobe provided : "<<dr<<" mm"<<endl;
cout<<endl;
cout<<"--------------------------------------------------"<<endl;
cout<<endl;
}
};
void main()
{
clrscr();
cout.precision(3);
footing f1;
f1.getdata();
f1.getcal();
f1.getout();
getch();
}
27
INPUT - OUTPUT
Enter the value of Grade of concrete & steel 20 415
Working axially load on cloumn (kn):1000
Diameter of col. :500
Safe bearing capacity of Soil :200
------------------ Analysis Data --------------------Diameter of footing :2646.955 mm
Depth reqd. to be provided : 611.44 mm
-------------------------------------------------2
Enter the value of Grade of concrete & steel 20 250
Working axially load on cloumn (kn):800
Diameter of col. :400
Safe bearing capacity of Soil :140
------------------ Analysis Data --------------------Diameter of footing :2829.714 mm
Depth reqd. to be provided : 612.893 mm
--------------------------------------------------
28
}
switch(fy)
{
case 250:
fst=140;
break;
case 415:
fst=190;
break;
}
m=280/(3*fcbc);
k=1/(1+(fst/(m*fcbc)));
j=1-(k/3);
Q=0.5*fcbc*k*j;
dr=sqrt(Mu/(Q*3.14*0.5*r1));
At=Mu/(Q*fst*dr);
at=3.14*0.25*dia*dia;
sp=At/at;
sp=sp+1;
}
void getout()
{
cout<<endl;
cout<<"------------------ Analysis Data ---------------------"<<endl;
cout<<endl;
cout<<"Diameter of footing :"<<2*r2<<" mm"<<endl;
cout<<"Min Depth reqd. tobe provided : "<<dr<<" mm"<<endl;
cout<<"Area of steel (both way ) :"<<At<<" ("<<sp<<" nos. of bar of "<<dia<<
"# )"<<endl;
cout<<endl;
cout<<"--------------------------------------------------"<<endl;
cout<<endl;
}
};
void main()
{
clrscr();
cout.precision(3);
footing f1;
f1.getdata();
f1.getcal();
f1.getout();
getch();
}
30
INPUT - OUTPUT
Enter the value of Grade of concrete & steel 20 415
Working axially load on cloumn (kn):1000
Diameter of col. :500
Safe bearing capacity of Soil :200
Daimeret of reinforcement :10
------------------ Analysis Data --------------------Diameter of footing :2646.955 mm
Min Depth reqd. tobe provided : 611.44 mm
Area of steel (both way ) :1263.105 (17 nos. of bar of 10# )
--------------------------------------------------
31
32
{
case 20:
fcbc=7;
break;
case 25:
fcbc=8.5;
break;
case 30:
fcbc=10;
break;
default :
cout<<"Enter correct values of fck"<<endl;
}
switch(fy)
{
case 250:
fst=140;
break;
case 415:
fst=190;
break;
}
m=280/(3*fcbc);
k=1/(1+(fst/(m*fcbc)));
j=1-(k/3);
Q=0.5*fcbc*k*j;
p=(P1+P2)/(L*B);
x1=(P1/(p*B))-a;
Mu=(P1+P2)*1000*x1;
dr=sqrt(Mu/(Q*B));
At=Mu/(Q*fst*dr);
at=3.14*0.25*dia*dia;
sp=At/at;
sp=sp+1;
}
void getout()
{
cout<<endl;
cout<<"------------------ Design Data ---------------------"<<endl;
cout<<endl;
cout<<"Size of Combined footing :"<<L <<" X "<<B<<" mm"<<endl;
cout<<"Projection::from Col 1:"<<a<<" and from col.2:"<<b<<" mm"<<endl;
cout<<"Min Depth reqd. tobe provided : "<<dr<<" mm"<<endl;
cout<<"Area of steel :"<<At<<" ("<<sp<<" nos. of bar of "<<dia<< "# )"<<endl;
cout<<endl;
cout<<"--------------------------------------------------"<<endl;
34
cout<<endl;
}
};
void main()
{
clrscr();
cout.precision(3);
footing f1;
f1.getdata();
f1.getcal();
f1.getout();
getch();
}
35
INPUT - OUTPUT
Enter the value of Grade of concrete & steel:20 415
Working axially load on cloumn1 (kn):600
Working axially load on cloumn2 (kn):800
Size of sqare col.-1 :320
Size of sqare col.-2 :400
Dist. between two col. :3500
Safe bearing capacity of Soil :150
Daimeret of reinforcement :16
Area of footing comes...:10.267
Enter the Breadth of footing :2.1
Lngth of footing...:4.889
Round off the Length..:5
------------------ Design Data --------------------Size of Combined footing :5000 X 2100 mm
Projection::from Col 1: 500 and from col.2: 1000 mm
Min Depth reqd. tobe provided : 1033.018 mm
Area of steel :11417.566 (58 nos. of bar of 16# )
-------------------------------------------------2
Enter the value of Grade of concrete & steel:20 415
Working axially load on cloumn1 (kn):800
Working axially load on cloumn2 (kn):600
Size of sqare col.-1 :320
Size of sqare col.-2 :400
Dist. between two col. :3000
Safe bearing capacity of Soil :150
Daimeret of reinforcement :20
Area of footing comes...:10.267
Enter the Breadth of footing :2.1
Length of footing...:4.889
Round off the Length..:5
------------------ Design Data --------------------Size of Combined footing :5000 X 2100 mm
Projection::from Col 1: 1214.286 and from col.2: 785.714 mm
Min Depth reqd. tobe provided : 1033.018 mm
Area of steel :11417.566 (37 nos. of bar of 20# )
--------------------------------------------------
36
37
INPUT - OUTPUT
1
Enter the length l1,l2 and t:110 110 10
Enter the dia of rivet:20
What is the stress of steel:250
Type of Section:: 1.Single 2.Double(same side)1
Tensile Strength of member in KN ::236.231018
2
Enter the length l1,l2 and t:110 110 10
Enter the dia of rivet:20
What is the stress of steel:250
Type of Section:: 1.Single 2.Double(same side)2
Tensile Strength of member in KN ::502.198547
38
40
/*A generalised C++ program for the design of Rectangular Singly or Doubly
Reinforced Beam for a given section,Moment of Resistance and Shear*/
#include<iostream.h>
#include<conio.h>
#include<math.h>
# define Es 200000
class beam
{
float
fck,fy,fsc,fcc,abs,abse,absp,b,d,D,xumax,Ast1,Ast2,Ast,Asc,pt,pc,sv,c1,c2;
double Mu,Mu2,Mumax,Vu;
public:
//
friend void strain(void);
void m_grade()
{
cout<<"\n:Program for design of Rectangulr R.C. Beam Section for
Limit State of Flexure:";
cout<<"\nGive the grade of concrete to be used:";
cin>>fck;
cout<<"\nGive the grade of steel to be used:";
cin>>fy;
}
void designdata()
{
cout<<"\nGive the width of the beam in mm:";
cin>>b;
cout<<"\nGive the overall depth of the beam in mm:";
cin>>D;
cout<<"\nGive the effective cover to the tension steel in mm:";
cin>>c1;
cout<<"\nGive the effective cover to the compression steel:";
cin>>c2;
cout<<"\nGive the Ultimate(Factored) Moment for design in kN-m:";
cin>>Mu;
//
cout<<"\nGive the Ultimate(Factored) Shear Force for design in kN :";
//
cin>>Vu;
}
void designprocess();
void results()
{
cout<<"***************** RESULTS ****************"<<endl;
if(Mu<Mumax)
{
cout<<"\nThe beam is designed as a SINGLY REINFORCE BEAM";
cout<<"\nThe Area of tension steel is :"<<Ast<<" sq mm"<<endl;
41
}
else if (Mu>Mumax)
{
cout<<"The beam is designed as a DOUBLY REINFORCED BEAM: ";
cout<<"\nAst1 ="<<Ast1<<" sq mm\n";
cout<<"\nAst2 ="<<Ast2<<" sq mm";
cout<<"\n\nThe total area required of steel in tension is :"<<Ast<<" sq mm";
cout<<"\n\nThe required area of steel in compression is:"<<Asc<<" sq mm";
}
}
};
void beam :: designprocess()
{
float res,temp;
d=D-c1;//cout<<"d="<<d<<endl;
Mu=Mu*1000000;
temp=0.0035+0.002+(0.87*fy/Es);
xumax=0.0035*d/temp;//cout<<"xumax="<<xumax<<"mm"<<endl;
Mumax=0.36*fck*b*xumax*(d-(0.42*xumax));
//
cout<<"Mumax = "<<Mumax/1000000.0<<"kN-m"<<endl;
if(Mu<Mumax)
{
res=sqrt(1-(4.6*Mu/(fck*b*d*d)));
pt=50*(fck/fy)*(1-res);
Ast=pt*b*d/100;
}
else
{
//abs= Strain at the level of the compression steel.
//fsc= Stress in compression steel.
res=sqrt(1-(4.6*Mumax/(fck*b*d*d)));
pt=50.0*(fck/fy)*(1-res);//cout<<"pt="<<pt<<endl;
Ast1=pt*b*d/100;
Mu2=Mu-Mumax;//cout<<"Mu2 ="<<Mu2/1000000<<"kN-m"<<endl;
Ast2=Mu2/(0.87*fy*(d-c2));
Ast=Ast1+Ast2;
//Now finding fsc.
abs=0.0035*(xumax-c2)/xumax;//cout<<"abs="<<abs<<endl;
/*
if (abs>0.002)
{
fcc=0.446*fck;cout<<"fcc="<<fcc<<endl;
}
else
{
fcc=446.0*fck*(abs-(250*abs*abs));cout<<"fcc="<<fcc<<endl;
}*/fcc=0;//fcc is neglected in design.
if(fy==250)
{
if (abs<0.00108)
42
{
fsc=abs*Es;
}
else
{
fsc=fy/1.15;
}
}
else if(fy==415)
{
if (abs<0.00144)
{
fsc=abs*Es;
}
else
{
if(abs>=0.00144 && abs<=0.00163)
{
fsc=288.7+(18.0*(abs-0.00144)/(0.00019));
}
else if(abs>0.00163 && abs<=0.00192)
{
fsc=306.7+(18.1*(abs-0.00163)/(0.00029));
}
else if(abs>0.00192 && abs<=0.00241)
{
fsc=324.8+(18.0*(abs-0.00192)/(0.00049));
}
else if(abs>0.00241 && abs<=0.00276)
{
fsc=342.8+(9.0*(abs-0.00241)/(0.00035));
}
else if(abs>0.00276 && abs<0.00380)
{
fsc=351.8+(9.1*(abs-0.00276)/(0.00104));
}
else if(abs>=0.00380)
{
fsc=360.9;
}
}
}
//cout<<"fsc="<<fsc<<endl;
Asc=Mu2/((fsc)*(d-c2));
}
}//Main function starts
void main()
43
{
clrscr();
beam b1;
b1.m_grade();
b1.designdata();
b1.designprocess();
b1.results();
getch();
}
INPUT
:Program for design of Rectangulr R.C. Beam Section for Limit State of Flexure:
Give the grade of concrete to be used:20
Give the grade of steel to be used:415
Give the width of the beam in mm:300
Give the overall depth of the beam in mm:500
Give the effective cover to the tension steel in mm:25
Give the effective cover to the compression steel:25
Give the Ultimate(Factored) Moment for design in kN-m:100
OUTPUT
***************** RESULTS ****************
The beam is designed as a SINGLY REINFORCE BEAM
The Area of tension steel is :643.726196 sq mm
INPUT
:Program for design of Rectangulr R.C. Beam Section for Limit State of Flexure:
Give the grade of concrete to be used:20
Give the grade of steel to be used:415
Give the width of the beam in mm:300
Give the overall depth of the beam in mm:500
Give the effective cover to the tension steel in mm:25
Give the effective cover to the compression steel:25
Give the Ultimate(Factored) Moment for design in kN-m:200
OUTPUT
***************** RESULTS ****************
The beam is designed as a DOUBLY REINFORCED BEAM:
Ast1 =1355.685669 sq mm
Ast2 =83.039528 sq mm
The total area required of steel in tension is :1438.72522 sq mm
The required area of steel in compression is:84.475952 sq mm
44
45
47
{Tbd = tbd*1.6;
}
if(d> (12*dia))
{
lo = d;
}
else
{
lo = 12*dia;
}
if(fy==415)
{
k = (0.87*fy)/(4*Tbd);
}
else
{
k = (0.87*fy)/(4*tbd);
}
ld = k*dia;
ldp = ((1.3*m/sf)*1000) + lo;
if(ld < ldp)
{
cout<<"the development check is o.k."<<"\n";
}
else
{
cout<<"the development check is not o.k."<<"\n";
}
}
void DL :: display()
{
cout<<"k = "<<k<<"\n";
cout<<"lo = "<<lo<<"\n";
cout<<"ld = "<<ld<<"\n";
cout<<"ldp = "<<ldp<<"\n";
}
int main()
{
clrscr();
DL A;
A.getdata();
A.display();
getch();
return 0;
}
51
INPUT
enter the value of fck & fy (n/mm2)
20 415
enter the diameter of bar (mm)
20
enter the value of design bond stress (n/mm2)
1.3
enter the value of effective depth (mm)
450
enter the value of moment (kn.m)
125
enter the value of s.f. (kn)
200
OUTPUT
the development check is o.k.
k = 47.011719
lo = 450
ld = 940.234375
ldp = 1262.5
52
Mb = (M*a)*(2-((3*a)/l)) / (l);
cout<<"\nThe value of fixed end moment at left support is "<<Ma<<" kN-m ";
cout<<"\nThe value of fixed end moment at right support is "<<Mb<<" kN-m ";
cout<<"\nBoth the fixed end reactive moments are in the same direction \n\t\tas
they are applied\n";
break;
}
}
};
void main()
{
fea b1,b2;
b1.input();
b1.result();
getch();
}
INPUT
Given case for loads on a fixed beam
1. Concentric or Point load.
2. Uniformly distributed load.
3. Uniformly varying load.
4. Applied moment or a couple.
Enter your case : 1
Enter the span of beam in m : 5
Enter the value of load in kN : 20
Enter the distance of point load from the left support in m : 2.5
OUTPUT
The value of fixed end moment at left support is 12.5 kN-m <anti-clockwise>
The value of fixed end moment at right support is 12.5 kN-m <clockwise>
55
else
{
ast = st2;
}
cout<<"\n"<<"\n"<<"CALCULATED VALUE OF STEEL IS: "<< ast;
diffe = (ast/10);
diffee = ceil(diffe);
Ast = (((diffee)*(10)) + (10));
cout<<"\n"<<"\n"<<"Enter dia of steel to provide in footing in mm:";
cin>>dia;
spacing = (((3.14)*(250)*(dia)*(dia)/(Ast)));
if(spacing<100)
{
spac = 100;
}
else
{
spac = spacing;
}
cout<<"\n"<<"\n"<<"PROVIDE STEEL OF"<<Ast<<"mm2";
cout<<"\n"<<"\n"<<"AREA HAVING DIA OF "<<dia<<"mm";
cout<<"\n"<<"\n"<<"AT SPACING "<<spac<<"mm";
}
void isofooting :: shearone(void)
{
cout<<"\n"<<"\n"<<"CHECKS";
/* SHEAR ONE WAY ACTION */
/*shear force at critical section fde m away from column face*/
Vu = ((pre)*((0.001)*(d))*(((0.5)*(((b)*(0.001))-(cb*0.01)))-(fde*0.001)));
/* Nominal shear stress */
Tv = ((Vu)/(b*fde));
pt = (((ast)*(100))/((b)*(1000)*(fde)));
cout<<"\n"<<"Percentage of the steel is :"<<pt;
cout<<"\n"<<"\n"<<"Grade of concrete is :"<<fck;
cout<<"\n"<<"\n"<<"Enter the value of shear strength of from IS:456 ";
cin>>Tc;
if (Tc>Tv)
{
cout<<"\n"<<"\n"<<"IT IS O.K.IN ONE WAY ACTION OF THE SHEAR";
}
else
{
cout<<"\n"<<"\n"<<"CHECK FOR ONE WAY ACTION IS NOT SATISFIED";
}
}
void isofooting :: sheartwo(void)
{
58
59
INPUT OUTPUT
Enter the value of column load in KN:1200
baring capacity of soil in kN/m2 is:165
unit weight of earth in kN/m3 is:19
characteristic strength of concrete in N/mm2 is :25
approximate depth of footing in m is :1.5
load factor:1.5
The size of column is breadth by depth in cm x cm is:40 40
DIMENTION OF FOOTING
AREA OF SQUARE FOOTING:6.25
HAVING DIMENTION OF :2.5 x 2.5
DEPTH OF FOOTING IN mm IS :214.516647
PROVIDE DEPTH OF FOOTING:560mm
CALCULATION OF STEEL
CALCULATED VALUE OF STEEL IS: 2010.975464
Enter dia of steel to provide in footing in mm:10
PROVIDE STEEL OF2030mm2
AREA HAVING DIA OF 10mm
AT SPACING 100mm
CHECKS
Percentage of the steel is :0.143641
Grade of concrete is :25
Enter the value of shear strength of from IS:456 0.33
IT IS O.K.IN ONE WAY ACTION OF THE SHEAR
IT IS SAFE FOR TWO WAY ACTION OF THE SHEAR
60
Mur=0.36*fck*b*xu*(d-(0.42*xu));
cout<<"The moment of resistance is: \n"<<Mur;
}
else if(xu=xumax)
{
cout<<"Section is balanced section";
xu=xumax;
Mur=0.36*fck*b*xu*(d-(0.42*xu));
cout<<"The moment of resistance is: \n"<<Mur;
}
break;
case 2:
cout<<"\n DOUBLY REINFORCED SECTION";
cout<<"enter the value of b and d(mm)";
cin>>b>>d;
cout<<"Enter the grade of concrete and steel \n";
cin>>fck>>fy;
if(fy==250)
{
xumax=0.53*d;
}
else if(fy==415)
{
xumax=.48*d;
}
cout<<"Enter the diameter and number of bars for Ast \n";
cin>>dia>>n;
cout<<"Enter the value of dc \n";
cin>>dc;
Ast=(n*pi*dia*dia)/4;
cout<<"Enter the diameter and number of bars for Asc \n";
cin>>dia1>>n1;
Asc=(n1*pi*dia1*dia1)/4;
fsc=0.87*fy;
xu=(0.87*fy*Ast-fsc*Asc)/(0.36*fck*b);
fsc1=700*(1-(dc/xu));
if(fsc1>fsc)
{
fsc=fsc;
}
else
{
fsc=fsc1;
}
cout<<" DEPTH OF NEUTRAL AXIS IS"<<xu;
if(xu<xumax)
{
62
63
dh = dia;
bc = (2*de + N*dia + (N-1)*dh);
Astp = N*0.7854*dia*dia;
sp = dh + dia;
dep = (b -(N*dia + (N-1)*dh))/2;
if( bc<=b && Astp>Ast && Ast_max>Astp )
{
cout<<"
"<<N<<"
"<<dia<<"
"<<setw(8)<<floor(Astp) <<"
"<<sp <<"
"<<dep<<"\n";
}
}
}
cout<<"-------------------------------------------------------------------------------"<<"\n";
}
// main programme
int main()
{
clrscr();
select A;
A.process();
getch();
return 0;
}
65
INPUT
Give the section of beam : width (mm) x effective depth (mm):
300 500
Give the value of tension reinforcement (mm2):
500
Give the value of grade of concrete(n/mm2):
20
Give the value of grade of steel(n/mm2):
415
OUTPUT
section of beam :300 mm x500 mm [Ast_max] = 1433.142456
------------------------------------------------------------------------------Number of bars Dia(mm) Ast(mm2)
c/c spacing(mm) side cover(mm) -----------------------------------------------------------------------------3
16
603
41
101
3
18
763
43
98
3
20
942
45
95
3
22
1140
47
92
3
24
1357
48
90
4
14
615
39
84
4
16
804
41
80
4
18
1017
43
76
4
20
1256
45
72
5
12
565
37
70
5
14
769
39
65
5
16
1005
41
60
5
18
1272
43
55
6
12
678
37
51
6
14
923
39
45
6
16
1206
41
39
7
10
549
35
40
7
12
791
37
33
-------------------------------------------------------------------------------
66
69
INPUT
Enter the grade of steel (n/mm2):
415
--------------------------Fe 415
--------------------------strain stress
0.00144 288.7
0.00163 306.7
0.00192 324.8
0.00241 342.8
0.00276 351.8
0.00380 360.9
--------------------------Enter the value of strain from above table (esc):
0.002
OUTPUT
---------------------------------------------------The corresponding value of stress is: 327.74 n/mm2
----------------------------------------------------
70
}
class cases:public ten_mem
{
protected:
float k,Anet,S;
int choice;
public:
void func();
void calc2();
};
void cases::func()
{
cout<<"The cases for the selected sections are:\n";
cout<<"1. Single angle connected by one leg only\n";
cout<<"2. Pair of angles placed back to back connected by only one leg of each angle
to the same side of gusset plate\n";
cout<<"3. Double angles placed back to back and connected to each side of gusset
plate\n";
cout<<"\n";
cout<<"Enter your case: ";
cin>>choice;
cout<<"\n";
}
void cases::calc2()
{
switch(choice)
{
case 1:
k = (3*a1) / (3*a1+a2);
Anet = a1 + k*a2;
cout<<"The net area of the section is "<<Anet<<" sq.mm\n";
cout<<"\n";
cout<<"Check for Strength:\n";
S = fs*Anet/1000;
if(S>=P)
cout<<"Section is O.K.\n";
else
cout<<"Redesign the section\n";
break;
case 2:
k = (5*a1) / (5*a1+a2);
Anet = a1 + k*a2;
cout<<"The net area of the section is "<<Anet<<" sq.mm";
cout<<"\n";
cout<<"Check for Strength:\n";
72
S = fs*Anet/1000;
if(S>=P)
cout<<"Section is O.K.\n";
else
cout<<"Redesign the section\n";
break;
case 3:
Anet = (2*A) - (d*t*2);
cout<<"The net area of the section is "<<Anet<<" sq.mm";
cout<<"\n";
cout<<"Check for Strength:\n";
S = fs*Anet/1000;
if(S>=P)
cout<<"Section is O.K.\n";
else
cout<<"Redesign the section\n";
break;
}
}
void main()
{
cases t1;
clrscr();
t1.getdata();
t1.calc1();
t1.func();
t1.calc2();
getch();
}
73
INPUT
Enter the value of load for which the tension member is to be designed in kN
120
Enter the value of permissible stress in steel in N/mm2
150
Enter the value of rivet dia in mm
18
The area required for the tension member is 800 sq.mm
Select the corresponding angle section having area
about 20 percent higher than that of reqd.
Enter the gross area of selected section from steel table
1152
Enter the thickness of selected angle in mm
10
Enter the length of connected leg and length of outstanding leg of the selected
angle in mm respectively
75 50
The cases for the selected sections are:
1. Single angle connected by one leg only
2. Pair of angles placed back to back connected by only one leg of each angle to
the same side of gusset plate
3. Double angles placed back to back and connected to each side of gusset plate
Enter your case: 1
OUTPUT
The net area of the section is 851.946533 sq.mm
Check for Strength:
Section is O.K.
74