summaryrefslogtreecommitdiff
path: root/3862/CH3/EX3.2/Ex3_2.sce
blob: 91f36f6f2d8af1d529dcb3dafdb7a9b1498d667a (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
clear
//

//Now, we cannot find a joint with only two unknown forces without finding reactions.
//Consider the equilibrium of the entire frame,Sum of moments about A is zero,Horizontal forces & Vertical forces is zero.

//variable declaration

PB=40.0
PC=50.0
PE=60.0

theta=60.0

RD=(PC*3+PE*2+PB*1)/(4.0)

RA=PB+PC+PE-RD

FAB=RA/sin(theta*%pi/180)

printf("\n FAB= %0.4f KN (Comp.)",FAB)

FAE=FAB*cos(theta*%pi/180)

printf("\n FAE= %0.4f KN (Tension)",FAE)

FDC=RD/sin(theta*%pi/180)

printf("\n FDC= %0.4f KN (Comp.) ",FDC)

FDE=FDC*cos(theta*%pi/180)

printf("\n FDE= %0.4f KN (Tension) ",FDE)

FBE=(FAB*sin(theta*%pi/180)-PB)/sin(theta*%pi/180)

FBC=(FAB+FBE)*(0.5)
printf("\n FBC= %0.4f KN (Comp.)",FBC)


FCE=(FDC*sin(theta*%pi/180)-PC)/(sin(theta*%pi/180))
printf("\n FCE= %0.4f KN (Tension)",FCE)