blob: 58c115e105ae70cfc9d0eecdb525614ce5718897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Initilization of variables
Soa=1000 //N (tension)
alpha=45 //degree //where alpha=(360/8)
theta=67.5 //degree //angle made by bar AO with AB &AH
//Calcultions
Sab=Soa*(sind(theta)/sind(alpha)) // N // Using law of sines
Sah=Sab //N
Sob=(Sab*sind(180-2*(theta)))/sind(theta) //N
//Results
clc
printf('The axial force in the bar AB is %f N \n',Sab) //Compression
printf('The axial force in the bar OB is %f N \n',Sob) //Tension
|