summaryrefslogtreecommitdiff
path: root/1205/CH13/EX13.6/S_13_6.sce
blob: 4dc8f8f15fea9c4fe900270e733b0b16a383f9ab (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
clc;
m=1.5;//kg, massof collar
Lo=150;//mm, Undeformed length of spring
k=400;//N/m, spring constant
Ldc=175;//mm
Loc=125;//mm, radius

//Position 1
//Kinetic energy
vA=0;//m/s
TA=0;//J

//Potential energy
delLad=Ldc+2*Loc-Lo;//mm, compression of spring
delLad=delLad/1000;//m, conversion to meter
VA=1/2*k*delLad^2;//J

//Position B
//Kinetic energy
//TB=1/2*m*vB^2;
Lbd=sqrt((Ldc+Loc)^2+Loc^2);//mm
delbd=Lbd-Lo;//mm compression
delbd=delbd/1000;//m, conversion into m
VB=1/2*k*delbd^2;//J

//Conservation of energy

vB=sqrt((VA-VB)/(1/2*m));//m/s
printf("Velocity of collar as it passes through B is vB= %.2f m/s \n",vB);