summaryrefslogtreecommitdiff
path: root/3594/CH12/EX12.3/Ex12_3.sce
blob: 31c2277e39e54e5e93e53661f90c8c949675058e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

clc
//given
D=9//in
stroke=24//in
d=2//in
l=60//in
CP=l
N=120
theta=40//degrees
x=theta*%pi/180
P1=160//lb/in^2
P2=32//lb/in^2
OC=stroke/2
F=%pi*(D/2)^2*P1-%pi*(D/2)^2*P2+%pi*(d/2)^2*P2
//Ft*Vc=F*Vp; Where Vc and Vp are velocities of crank and pin respectively
//Vp/Vc=IP/IC=OM/OC - From similar triangles  ; fig 274
n=CP/OC
OM=OC*(sin(x) + (sin(2*x)/(2*n)))//from 3.11
T=F*OM/12//torque exerted on crankshaft
Torque=floor(T)
printf("The torque exerted on crankshaft= F*OM = %.f lb ft",Torque)