blob: d09aaf328824dda96a0194db7daf208ab7067608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//Input data
p=110//Oil pressure in kg/cm^2
pc=25//Pressure in the combustion chamber in kg/cm^2
q=0.805//Velocity coefficient. In textbook it is given wrong as 9.805
d=0.906//Specific gravity
//Calculations
v=(37.1*q*sqrt((p-pc)/d))//Velocity in m/s
//Output
printf('The velocity of injection is %3.0f m/s',v)
|