blob: dbc715f2c2956ea76bf7f0d91d7dd8d1b5fd2b95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
//initialisation of variables
TimberB= 100 //mm
TimberH= 400 //mm
SteelB= 12 //mm
SteelH= 300 //mm
Bm= 50 //KNm
ratio= 12
//CALCULATIONS
It= 2*TimberB*TimberH^3/12
Is= ratio*SteelH^3/12
sigmat= -(Bm*10^6*TimberH/2)/(It+ratio*Is)
sigmas= -(Bm*10^6*SteelH/2)/(Is+It/ratio)
//RESULTS
printf ('Maximum stress in timber= %.1f mm^2 (+ or -)',sigmat)
printf (' \n Maximum stress in steel=%.1f N/mm^2 (+ or -)',sigmas)
|