summaryrefslogtreecommitdiff
path: root/1808/CH3/EX3.30/Chapter3_Exampl30.sce
blob: eb1e72a8f9039e217b00a69a7b4ff56c5850f7cd (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
27
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=30;//temperature in Degree C
t2=800;//temperature in Degree C
g=1.4;//constant
Rc=5;//compression ratio
Qs=900;//heat supplied in kJ/kg
nr=0.75;//regenerator efficiency in percentage


//CALCULATIONS
Qs1=R*(t2+273)*log(Rc)+(1-nr)*cv*(t2-t1);//heat supplied in kJ/kg
m=Qs/Qs1;//mass flow rate in kg/min
wn=(m/60)*R*log(Rc)*(t2-t1);//net work done in kW
ns=(wn/(Qs/60))*100;//Thermal efficiency in percentage
vs=((m)*R*(t1+273)*(1-(1/Rc)))/(p1*60);//swept volume in m^3/s
pm=wn/vs;//mean effective pressure in kN/m^2
P=wn*1;//Power developed by the engine in kW

//OUTPUT
printf('(i)The net work done is %3.2f kW \n (ii)Thermal efficiency is %3.2f percentage \n (iii)mean effective pressure is %3.2f kN/m^2 \n (iv)Power developed by the engine is %3.2f kW ',wn,ns,pm,P)