summaryrefslogtreecommitdiff
path: root/1808/CH3/EX3.32/Chapter3_Exampl32.sce
blob: b18fd13b8d3b25e6566f49286e1dc4d915cebfe0 (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
clc
clear
//INPUT DATA
cp=1.005;//specific pressure
cv=0.718;//specific volume
R=0.287;//gas constant
p1=100;//pressure in kPa
t1=300;//temperature in K
t3=1500;//temperature in K
g=1.4;//constant
v1=6;//volume in m^3/s
Rp=10;//compression ratio

//CALCULATIONS
wn=cp*(1-((1/(Rp^((g-1)/g)))))*(t3-t1*(Rp^((g-1)/g)));//Net work done in kJ/kg
t2=t1*(Rp^((g-1)/g));//temperature in K
ng=(wn/(cp*(t3-t2)))*100;//Thermal efficiency in percentage
t4=t3/(Rp^((g-1)/g));//temperature in K
Rw=((cp*(t2-t1))/(cp*(t3-t4)))*100;//back work ratio
m=p1*v1/(R*t1);//mass flow rate in kg/s
P=m*wn;//Power developed in kW

//OUTPUT
printf('(i))Thermal efficiency is %3.2f percentage \n(ii)The back work ratio is %3.1f percentage \n(iii)Power developed is %3.1f kW',ng,Rw,P)