summaryrefslogtreecommitdiff
path: root/1913/CH2/EX2.25/ex25.sce
blob: cb9d0e2d0ad09ae7de56de1125ed937a5b6a6307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear
//Input data
m=10;//The rate of fluid compressed adiabatically in kg/s
p1=500;//Initial pressure of the process in kPa
p2=5000;//Final pressure of the process in kPa
v=0.001;//The specific volume of the fluid in m^3/kg

//Calculations
P=m*v*(p2-p1);//The power required in kW

//Output
printf('The power required P = %3.0f kW ',P)