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 --- 2735/CH12/EX12.7/Ex12_7.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 2735/CH12/EX12.7/Ex12_7.sce (limited to '2735/CH12/EX12.7') diff --git a/2735/CH12/EX12.7/Ex12_7.sce b/2735/CH12/EX12.7/Ex12_7.sce new file mode 100755 index 000000000..17d530815 --- /dev/null +++ b/2735/CH12/EX12.7/Ex12_7.sce @@ -0,0 +1,21 @@ +clc +clear +//Initialization of variables +cp1=0.25 +T=3460 //R +T0=946.2 //R +T00=520 //R +dG=1228 //Btu/lbm +cp=0.45 +//calculations +dqa=cp1*(T-T0) +w=cp*dqa +hf=cp1*(T-T00)-T00*cp1*log(T/T00) +heat=w-hf +eff=w/hf +epower=w/dG +//results +printf("Loss of available energy = %.1f Btu/lbm mixture ",heat) +printf("\n Efficiency of cycle = %.3f ",eff) +printf("\n Effectiveness of overall cycle = %.2f",epower) +disp("The answer is a bit different due to rounding off error in textbook") -- cgit