summaryrefslogtreecommitdiff
path: root/2507/CH9/EX9.3/Ex9_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2507/CH9/EX9.3/Ex9_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2507/CH9/EX9.3/Ex9_3.sce')
-rwxr-xr-x2507/CH9/EX9.3/Ex9_3.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2507/CH9/EX9.3/Ex9_3.sce b/2507/CH9/EX9.3/Ex9_3.sce
new file mode 100755
index 000000000..d8f11dd1c
--- /dev/null
+++ b/2507/CH9/EX9.3/Ex9_3.sce
@@ -0,0 +1,25 @@
+clc
+clear
+printf("Example 9.3 | Page number 255 \n\n");
+//Part(a) Find internal energy
+//Part(b) Find enthalpy and internal energy at (i)10bar,50°C and,(ii)0.085 m^3/kg and 50°C
+
+//Given Data
+p = 1 //bar //pressure
+T = 50+273 //°C //temperature
+h = 324.6 //kJ/kg //enthalpy
+R = 8.3143 //kJ/kmolK
+M = 28.97 //kg/kmol
+//Part (a)
+printf("Part (a)\n");
+u = h - (R/M)*T //kJ/kg //internal energy
+printf("Internal energy = %.1f kJ/kg\n",u)
+//Part (b)
+printf("\nPart (b):(i)\n");
+u = h - (R/M)*T //kJ/kg //internal energy
+printf("Enthalpy = %.1f kJ/kg\n",h)
+printf("Internal energy = %.1f kJ/kg\n",u)
+printf("Part (b):(ii)\n");
+u = h - (R/M)*T //kJ/kg //internal energy
+printf("Enthalpy = %.1f kJ/kg\n",h)
+printf("Internal energy = %.1f kJ/kg",u)