summaryrefslogtreecommitdiff
path: root/3825/CH9/EX9.8/Ex9_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3825/CH9/EX9.8/Ex9_8.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3825/CH9/EX9.8/Ex9_8.sce')
-rw-r--r--3825/CH9/EX9.8/Ex9_8.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3825/CH9/EX9.8/Ex9_8.sce b/3825/CH9/EX9.8/Ex9_8.sce
new file mode 100644
index 000000000..fbc6e2498
--- /dev/null
+++ b/3825/CH9/EX9.8/Ex9_8.sce
@@ -0,0 +1,27 @@
+clc
+P1=100 //pressure in kPa
+T1=300 //temperature in kelvin
+rp=8
+P2=P1*rp
+gama=1.4
+mprintf("P2=%fkPa\n",P2)//ans vary due to roundoff error
+T2=T1*rp^((gama-1)/gama)
+mprintf("T2=%fK\n",T2)//ans vary due to roundoff error
+P3=P2
+T3=1300
+Tmax=T3
+T4=T3*(1/rp)^((gama-1)/gama)
+mprintf("T4=%fK\n",T4)//ans vary due to roundoff error
+P4=P1
+Cp=1.0047
+Wc=-Cp*(T2-T1)
+mprintf("Wc=%fkJ/kg\n",Wc)//ans vary due to roundoff error
+WT=Cp*(T3-T4)
+mprintf("WT=%fkJ/kg\n",WT)//ans vary due to roundoff error
+Wnet=WT+Wc
+mprintf("Net Work done=%fkJ/kg\n",Wnet)//ans vary due to roundoff error
+q1=Cp*(T3-T2)
+mprintf("Energy added=%fkJ/kg\n",q1)//ans vary due to roundoff error
+Eta=Wnet/q1
+mprintf("Thermal efficiency=%f",Eta)//ans vary due to roundoff error
+