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 --- 2519/CH11/EX11.7/Ex11_7.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 2519/CH11/EX11.7/Ex11_7.sce (limited to '2519/CH11/EX11.7') diff --git a/2519/CH11/EX11.7/Ex11_7.sce b/2519/CH11/EX11.7/Ex11_7.sce new file mode 100755 index 000000000..53d2ef92e --- /dev/null +++ b/2519/CH11/EX11.7/Ex11_7.sce @@ -0,0 +1,23 @@ +clc +clear +//Initialization of variables +x1=1/3 +n1=1 +n2=2 +x2=2/3 +p=12.7 //psia +cp1=7.01 //Btu/mole R +cp2=6.94 //Btu/mole R +R0=1.986 +T2=460+86.6 //R +T1=460 //R +p0=14.7 //psia +//calculations +p1=x1*p +p2=x2*p +ds1= cp1*log(T2/T1) - R0*log(p1/p0) +ds2= cp2*log(T2/T1) - R0*log(p2/p0) +S=n1*ds1+n2*ds2 +//results +printf("Entropy of mixture = %.2f Btu/R",S) +printf("\n the answer given in textbook is wrong. please check using a calculator") -- cgit