summaryrefslogtreecommitdiff
path: root/647/CH2/EX2.6/Example2_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /647/CH2/EX2.6/Example2_6.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 '647/CH2/EX2.6/Example2_6.sce')
-rwxr-xr-x647/CH2/EX2.6/Example2_6.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/647/CH2/EX2.6/Example2_6.sce b/647/CH2/EX2.6/Example2_6.sce
new file mode 100755
index 000000000..2b39429ad
--- /dev/null
+++ b/647/CH2/EX2.6/Example2_6.sce
@@ -0,0 +1,26 @@
+clear;
+clc;
+
+// Example: 2.6
+// Page: 44
+
+printf("Example: 2.6 - Page: 44\n\n");
+
+// Solution
+
+//*****Data*****//
+m = 1;// [kg]
+Temp = 373;// [K]
+P = 101325;// [N/square m]
+V_Liquid = 1.04*10^(-3);// [cubic m/kg]
+V_Vapour = 1.673;// [cubic m/kg]
+Q = 2257;// [kJ]
+//**************//
+
+// Work done due to expansion:
+Wexpansion = P*(V_Vapour - V_Liquid);// [N-m]
+deltaU = Q - Wexpansion/1000;// [kJ]
+deltaH = deltaU + Wexpansion/1000;// [kJ]
+
+printf("Change in Internal Energy is %.2f kJ\n",deltaU);
+printf("Change in enthalpy is %d kJ\n",deltaH); \ No newline at end of file