blob: 76322bace72710ee2d37122eac7949e54a06985f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//
//Given
//Variable declaration
D=15*10 //Diameter of shaft in mm
P=150*1e3 //Power transmitted in W
N=180 //Speed of shaft in r.p.m
//Calculation
T=(P*60)/(2*%pi*N)*1e3 //Torque transmitted in Nmm
tau=int((16*T)/(%pi*D**3)) //Maximum shear stress in N/sq.mm
//Result
printf("\n Maximum shear stress = %0.3f N/mm^2",tau)
|