summaryrefslogtreecommitdiff
path: root/3705/CH1/EX1.2/Ex1_2.sce
blob: f083daa4e47d52aea3de94b87bcbc57813894794 (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

clear//

//Variable Declaration
Ay=40 //Vertical Reaction at A in kN
Hy=60 //Vertical Reaction at H in kN
Hx=0 //Horizontal Reaction at H in kN
y=3 //Height in m
x=5 //Distance in m
p=4 //Panel distance in m
A=900 //Area of the member in mm^2
P_C=30 //Force at point C in kN

//Calculation
//Part 1
//Applying summation of forces in the x and y direction and equating to zero
P_AB=(-Ay)*(x*y**-1) //Force in member AB in kN
P_AC=-(p*x**-1*P_AB) //Force in member AC in kN
//Using stress=force/area
S_AC=(P_AC/A)*10**3 //Stress in member AC in MPa (T)

//Part 2
//Sum of moments about point E to zero
P_BD=(Ay*p*2-(P_C*p))*y**-1 //Force in memeber AB in kN (C)
S_BD=(P_BD/A)*10**3 //Stress in member in MPa (C)

//Result
printf("\n The Stress in member AC is %0.1f MPa (T)",S_AC)
printf("\n The Stress in member BD is %0.1f MPa (C)",S_BD)