From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2837/CH19/EX19.12/Ex19_12.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 2837/CH19/EX19.12/Ex19_12.sce (limited to '2837/CH19/EX19.12/Ex19_12.sce') diff --git a/2837/CH19/EX19.12/Ex19_12.sce b/2837/CH19/EX19.12/Ex19_12.sce new file mode 100755 index 000000000..50de73b37 --- /dev/null +++ b/2837/CH19/EX19.12/Ex19_12.sce @@ -0,0 +1,24 @@ +clc +clear +//Initalization of variables +n=1.4 +t1=540 //R +tmax=1500 //F +pr=5 +cp=0.24 +p1=14 //psia +p3=70 //psia +w2=75.9 //Btu/lb +Qa=265 //Btu/lb +//calculations +pint=p1*sqrt(pr) +t6=(tmax+460)/(p3/pint)^((n-1)/n) +t8=(tmax+460)/(pint/p1)^((n-1)/n) +work=cp*(tmax+460-t6) +w22=2*work +net=w22-w2 +Qb=cp*(tmax+460-t6) +Qt=Qa+Qb +eta=net/Qt*100 +//results +printf("Thermal efficiency = %.1f percent",eta) -- cgit