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/CH9/EX9.9/Ex9_9.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 2735/CH9/EX9.9/Ex9_9.sce (limited to '2735/CH9/EX9.9') diff --git a/2735/CH9/EX9.9/Ex9_9.sce b/2735/CH9/EX9.9/Ex9_9.sce new file mode 100755 index 000000000..0ecd214f1 --- /dev/null +++ b/2735/CH9/EX9.9/Ex9_9.sce @@ -0,0 +1,26 @@ +clc +clear +//Initialization of variables +P1=144 //psia +T1=400 //F +y=0.7 +//calculations +disp("From steam tables,") +h1=1220.4 //Btu/lbm +s1=1.6050 //Btu/lbm R +s2=1.6050 //Btu/lbm R +P2=3 //psia +sf=0.2008 //Btu/lbm R +sfg=1.6855 //Btu/lbm R +x=(s1-sf)/sfg +hf=109.37 //Btu/lbm +hfg=1013.2 //Btu/;bm +h2=hf+x*hfg +work=h1-h2 +dw=y*work +h2d=h1-dw +//results +printf("Work done = %d Btu/lbm",work) +printf("\n work done in case 2 = %.1f Btu/lbm",dw) +printf("\n Final state pressure = %d psia",P2) +disp("The answer is a bit different due to rounding off error in textbook") -- cgit