summaryrefslogtreecommitdiff
path: root/3863/CH7/EX7.8/Ex7_8.sce
blob: 97695e9bd864d2f734a34a62c8b93e8924c4853a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
clear
//
//

//Given
//Variable declaration
W=20*1000        //Total load in N
L=3.6            //Span in m
sigma_max=7      //Maximum stress in N/sq.mm

//Calculation
M1=W*L/8*1e3                                             //Maximum Bending moment in Nmm
b1=((M1*3/(sigma_max*2))**(1/3))                  //Breadth of the beam in mm

d1=int((2*b1))                                    //depth of the beam in mm

M2=W*L/4*1e3                                             //Maximum Bending moment in Nmm
b2=(((M2*3/(sigma_max*2))**(1/3)))  //Breadth of the beam in mm

d2=2*b2                                                  //depth of the beam in mm

//Result
printf("\n Dimensions of the cross-section:")
printf("\n Breadth of beam = %0.3f  mm",b1)
printf("\n Depth of beam %0.3f  mm",d1)

printf("\n Dimensions of the cross-section when the beam carries a point load at the centre:")
printf("\n Breadth of beam = %0.3f  mm",b2)
printf("\n Depth of beam %0.3f  mm",d2)