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.1/Ex12_1.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 2735/CH12/EX12.1/Ex12_1.sce (limited to '2735/CH12/EX12.1/Ex12_1.sce') diff --git a/2735/CH12/EX12.1/Ex12_1.sce b/2735/CH12/EX12.1/Ex12_1.sce new file mode 100755 index 000000000..d52728238 --- /dev/null +++ b/2735/CH12/EX12.1/Ex12_1.sce @@ -0,0 +1,19 @@ +clc +clear +//Initialization of variables +p1=100 //psia +p2=14.7 //psia +k=1.4 +T1=700 //R +R=10.73/29 +V=50 +cv=0.171 +cp=0.24 +R2=1.986/29 +//calculations +T2=T1/ (p1/p2)^((k-1)/k) +m1=p1*V/(R*T1) +m2=p2*V/(R*T2) +Wrev= cv*(m1*T1 - m2*T2) - (m1-m2)*(T2)*cp +//results +printf("Work done in case 1 = %d Btu",Wrev) -- cgit