summaryrefslogtreecommitdiff
path: root/3864/CH5/EX5.12/Ex5_12.sce
blob: 755716ee5d0e3ecd3c6b18c183e5dbdd60e52670 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
clear
//
//


//Initilization of Variables
L_AC=2 //m //Length of AC,CD,DB
L_DB=2
L_CD=2
F_C=40 //KN //Force at C
w=20 //KN/m //u.d.l
L=6 //m //span of beam

//Let E*I=X
X=15000 //KN-m**2


//Calculations

//Let V_A & V_B be the reactions at A & B respectively
//V_A+V_B=80

//Taking Moment B,M_B
V_A=(F_C*(L_CD+L_DB)+w*L_DB*L_DB*2**-1)*L**-1 //KN
V_B=80-V_A //KN

//Taking Moment at distance x from A
//M_x=33.333*x-40*(x-2)-20*(x-4)**2*2**-1
//EI*(d**2/dx**2)=33.333*x-40*(x-2)-10*(x-4)**2

//Integrating above equation we get
//EI*(dy/dx)=C1+33.333*x**2*2**-1-20*(x-2)**2-10*3**-1*(x-4)**3

//Again Integrating above equation we get
//EI*y=C2+C1*x+33.333*x**3*6**-1-20*3**-1*(x-2)**3-10*12**-1*(x-4)**4

//At
x=0
y=0
C2=0

//At
x=6
y=0
C1=-760*6**-1

//Assuming Deflection to be max in portion CD and sustituting value of C1 in equation of slope we get
//EI*y=C2+C1*x+33.333*x**3*6**-1-20*3**-1*(x-2)**3-10*12**-1*(x-4)**4
//0=-126.667+33.333*x**2**-1-20*(x-2)**2

//After rearranging and simplifying further we get

//x**2-24*x+62=0
//From above equations
a=1
b=-24
c=62

y=(b**2-4*a*c)**0.5

x1=(-b+y)*(2*a)**-1
x2=(-b-y)*(2*a)**-1

//Taking x2 into account
x=2.945 //m
C1=-126.667
C2=0

y_max=(C2+C1*x+33.333*x**3*6**-1-20*3**-1*(x-2)**3)*X**-1 //mm

//Max slope occurs at the ends
//At A,
//EI*(dy/dx)_A=-126.667
//At B
//EI*(dy/dx)_B=126.667+33.333*6**2*2**-1-20*4**2-10*2**3
//After simplifying Further we get
//EI*(dy/dx)_B=73.3273

//Now Max slope is EI(dy/dx)_A=-126.667
//15000*(dy/dx)_=-126.667

//Let Y=dy/dx
Y=-126.667*X**-1 //Radians

//Result
printf("\n Maximum Deflection for Beam is %0.4f  mm",y_max)
printf("\n Maximum Slope for beam is %0.4f  radians",Y)