blob: b7b754a12b354cd2f409394d1146e002600178d5 (
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
|
clear all; clc;
disp("Scilab Code Ex 6.26 : ")
//Given:
M = 5; //kNm
sigma_y = 500; //MPa
r = 16; //mm
h = 80; //mm
w = 120; //mm
r_h = r/h;
w_h = w/h;
k = 1.45;
c = h/(2000);
t = 20/1000; //m
//Calculations:
I = (1/12)*(t)*(h/1000)^3
sigma_max = (k*M*c)/(I*1000);
//Display:
printf("\n\nThe maximum normal stress in the steel = %1.0f MPa',sigma_max);
//------------------------------------------------------------------------END---------------------------------------------------------------------------------------
|