summaryrefslogtreecommitdiff
path: root/1898/CH6/EX6.22/Ex6_22.sce
blob: 51deaa8c93a11a153c0f6fdf123eb36e532a027a (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
clear all; clc;

disp("Scilab Code Ex 6.22 : ")

//Given:
sigma_allow_st = 168; //MPa
sigma_allow_w = 21; //MPa
Est = 200; //GPa
Ew = 12; //GPa
Iz = 7.93*10^6; //mm^4
A1 = 5493.75; //mm^2
t = 5; //mm
h = 100; //mm

//Without Board:
c = h+t;
M1 = (sigma_allow_st*Iz)/(c*10^6);

//With Board:
bw = 300;//mm
n = (Ew/Est); 
bst = n*bw;

//For the transformed section:
y1 = 0;
y2 = 55;
A2 = bst*h;

y_bar = (y1*A1 + y2*A2)/(A1+A2);

I1 = Iz + A1*y_bar^2;
I2 = (1/12)*(bst*h^3) + (A2*(y2-y_bar)^2);
I = I1+I2;

c = c+y_bar;
M2 = (sigma_allow_st*I)/(c*10^6);

cw = c - y_bar;
Mw = (sigma_allow_w*I)/(n*cw*10^6);

M = min(Mw,M2);

//Display:

  printf("\n\nThe maximum bending moment without re-inforcement = %1.3f kNm',M1);
 printf("\nThe maximum bending moment with re-inforcement     = %1.2f kNm',M);
 
 //------------------------------------------------------------------------END---------------------------------------------------------------------------------------