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 --- 1460/CH7/EX7.9/7_9.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 1460/CH7/EX7.9/7_9.sce (limited to '1460/CH7/EX7.9') diff --git a/1460/CH7/EX7.9/7_9.sce b/1460/CH7/EX7.9/7_9.sce new file mode 100755 index 000000000..bf18b455c --- /dev/null +++ b/1460/CH7/EX7.9/7_9.sce @@ -0,0 +1,17 @@ +clc +//initialization of variables +g=1.4 +cv=0.171 //B/lbm +P1=14.7 //lb/in^2 +P2=100 //lb/in^2 +T1=60+460 //R +w=1 //lbm +//calculations +Tratio=(P2/P1)^((g-1)/g) +T2=T1*Tratio +WbyJ=cv*(T1-T2) +W=WbyJ*778 +//results +printf("Work done = %.1f B/lbm",W) +printf("\n CHange in internal energy = %d ft-lb/lbm",WbyJ) +//The answer in the textbook varies a bit due to rounding of error in textbook -- cgit