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 --- 1709/CH7/EX7.7/7_7.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 1709/CH7/EX7.7/7_7.sce (limited to '1709/CH7/EX7.7/7_7.sce') diff --git a/1709/CH7/EX7.7/7_7.sce b/1709/CH7/EX7.7/7_7.sce new file mode 100755 index 000000000..60b59d465 --- /dev/null +++ b/1709/CH7/EX7.7/7_7.sce @@ -0,0 +1,21 @@ +clc +//Initialization of variables +disp("Critical tables suggest,") +Tc=344 //R +Pc=673 //psia +P1=20 //psia +P2=500 //psia +M=16 +T=560 //R +//calculations +pr1=P1/Pc +pr2=P2/Pc +Tr=T/Tc +dh2=0.65*Tc +dsp=0.35 //B/lbm mol R +dsp2=0.018-dsp- 1545/778 *log(P2/P1) +W=dh2-dsp2*T +W2=W/M +//results +printf("Work per pound mass = %d B/lbm",W2) +//The answer is a bit different due to rounding off error -- cgit