summaryrefslogtreecommitdiff
path: root/3862/CH2/EX2.24/Ex2_24.sce
blob: 1d8eca54197be819cc7f03f7fa20b581c695a0b6 (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
clear
//

//variable declaration
PB=200.0                       //Vertical loading at B,N
PD=250.0                       //Vertical loading at D,N
thetabc=30.0*%pi/180.0
thetabd=60.0*%pi/180.0
thetaed=45.0*%pi/180.0
//Free body diagrams of points B and D . Let the forces in the members be as shown in the figure. Applying Lami’s theorem to the system of forces at point D,

T1=PD*sin(%pi-thetabd)/sin(thetaed+(%pi/2)-thetabd)
T2=PD*sin(%pi-thetaed)/sin(thetaed+(%pi/2)-thetabd)

printf("\n T1= %0.2f  N",T1)
printf("\n T2= %0.2f  N",T2)

//sum of vertical Fy & sum of horizontal forces Fx is zero
//Assume direction of Fx is right
//Assume direction of Fy is up

T3=(PB+T2*cos(thetabd))/cos(thetabc)
printf("\n T3= %0.2f  N",T3)

T4=(T2*sin(thetabd))+T3*sin(thetabc)
printf("\n T4= %0.2f  N",T4)