From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3825/CH8/EX8.1/Ex8_1.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 3825/CH8/EX8.1/Ex8_1.sce (limited to '3825/CH8/EX8.1/Ex8_1.sce') diff --git a/3825/CH8/EX8.1/Ex8_1.sce b/3825/CH8/EX8.1/Ex8_1.sce new file mode 100644 index 000000000..dc426cf3b --- /dev/null +++ b/3825/CH8/EX8.1/Ex8_1.sce @@ -0,0 +1,26 @@ +clc +P1=10 //pressure in bar +P2=1 //pressure in bar +h1=3052.1*10^3 +v1=0.258 +u1=h1-(P1*10^5*v1) +mprintf("u1=%fkJ/kg\n",u1/1000)//ans vary due to roundoff error +s1=7.1251 //in kJ/kg K +s2=s1 +sg=7.3598 +sf=1.3027 +X2=(s2-sf)/(sg-sf) +mprintf("X2=%f\n",X2)//ans vary due to roundoff error +hg=2675.4 +hf=417.54 +h2=(X2*hg)+(1-X2)*hf +mprintf("h2=%fkJ/kg\n",h2)//ans vary due to roundoff error +vg=1.694 +vf=0.0010434 +v2=(X2*vg)+(1-X2)*vf +mprintf("v2=%fmetre-cube/kg\n",v2)//ans vary due to roundoff error +u2=(h2*10^3)-(P2*10^5*v2) +mprintf("u2=%fkJ/kg\n",u2/1000)//ans vary due to roundoff error +W=u1-u2 +mprintf("W=%fkJ",W/1000)//ans vary due to roundoff error + -- cgit