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.6/7_6.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 1460/CH7/EX7.6/7_6.sce (limited to '1460/CH7/EX7.6') diff --git a/1460/CH7/EX7.6/7_6.sce b/1460/CH7/EX7.6/7_6.sce new file mode 100755 index 000000000..8874fb274 --- /dev/null +++ b/1460/CH7/EX7.6/7_6.sce @@ -0,0 +1,22 @@ +clc +//initialization of variables +P1=14.7 //lb/in^2 +P2=20 //lb/in^2 +w=1 //lbm +//calculations +printf("From table 3 of appendix,") +v1=26.8 +h1=1150.4 +s1=1.7566 +u1=h1- 144*P1*v1/778 +printf("\n Internal energy 1 = %.1f B/lbm",u1) +disp("For pressure of 20 lb/in^2 , from table 2,") +v2=26.8 +h2=1260.9 +s2=1.8637 +u2=h2-144*P2*v2/778 +du=u2-u1 +ds=s2-s1 +//results +printf("\n Change in internal energy = %.1f B/lbm",du) +printf("\n CHange in entropy = %.4f B/lbm R",ds) -- cgit