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 --- 2837/CH13/EX13.4/Ex13_4.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 2837/CH13/EX13.4/Ex13_4.sce (limited to '2837/CH13/EX13.4') diff --git a/2837/CH13/EX13.4/Ex13_4.sce b/2837/CH13/EX13.4/Ex13_4.sce new file mode 100755 index 000000000..17316bed3 --- /dev/null +++ b/2837/CH13/EX13.4/Ex13_4.sce @@ -0,0 +1,21 @@ +clc +clear +//Initialization of variables +p1=30 //psia +t1=80+460 //R +R1=48.3 +R2=55.2 +m1=20 //lb/min +p2=50 //psia +m2=35 //lb/min +t2=160+460 //R +cp1=0.219 +cp2=0.248 +J=778 +//calculations +tf=(m1*cp1*(t1-460) + m2*cp2*(t2-460))/(m1*cp1+m2*cp2) +Po2=m1/32/(m1/32+m2/28) *p1 +ds=cp1*log((tf+460)/t1) - R1/J *log(Po2/p1) +dss=ds*m1 +//results +printf("Change in entropy = %.4f units/min",dss) -- cgit