summaryrefslogtreecommitdiff
path: root/3705/CH6/EX6.9/Ex6_9.sce
blob: f41c2bd7d5a6e0d308eabff551a5c74f828b4616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

clear//

//Variable Declaration
P=300 //Force in N
L1=1 //Length in m
L2=2 //Length in m
R_a=100 //Reaction at A in N
R_c=200 //Reaction at C in N
EI=20.48*10**3 //Flexural Rigidity in N.m^2

//Calculations
//Part 1
tC_A=(0.5*(L1+L2)*P*L1-(0.5*L1*P*(L1+L2)**-1))*EI**-1 //First Moment in m
theta_A=tC_A/(L1+L2) //Angle in radians 

//Part 2
tD_A=0.5*L1*R_a*(L1+L2)**-1*EI**-1 //First Moment in m
delta_D=(theta_A*L1-tD_A) //Displacement in m 

//Result
printf("\n The angle in part 1 is %0.3f Degrees",theta_A*180*%pi**-1)
printf("\n The displacement in part 2 is %0.2f mm downward",delta_D*1000)