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 --- 1709/CH10/EX10.3/10_3.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 1709/CH10/EX10.3/10_3.sce (limited to '1709/CH10/EX10.3/10_3.sce') diff --git a/1709/CH10/EX10.3/10_3.sce b/1709/CH10/EX10.3/10_3.sce new file mode 100755 index 000000000..ec1dfb3aa --- /dev/null +++ b/1709/CH10/EX10.3/10_3.sce @@ -0,0 +1,21 @@ +clc +//Initialization of variables +m1=5 +m2=2 +cp1=0.248 +cp2=0.203 +T11=300 //F +T12=100 //F +P=10 //psia +Pi=20 //psia +Pf=15 //psia +//calculations +T2=(m1*cp1*T11 + m2*cp2*T12)/(m1*cp1+m2*cp2) +n1=m1/28 +n2=m2/44 +n=n1+n2 +P1=P*n1/n +P2=P*n2/n +dS=m2*(cp2*log((T2+460)/(T12+460)) - 35.1/778 *log(P2/Pi)) +m2*(cp2*log((T2+460)/(T12+460)) - 55.2/778 *log(P1/Pf)) +//results +printf("change in enthalpy = %.2f B/R",dS) -- cgit