summaryrefslogtreecommitdiff
path: root/572/CH3/EX3.3/c3_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /572/CH3/EX3.3/c3_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 '572/CH3/EX3.3/c3_3.sce')
-rwxr-xr-x572/CH3/EX3.3/c3_3.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/572/CH3/EX3.3/c3_3.sce b/572/CH3/EX3.3/c3_3.sce
new file mode 100755
index 000000000..da48c3110
--- /dev/null
+++ b/572/CH3/EX3.3/c3_3.sce
@@ -0,0 +1,18 @@
+// (3.3) A well-insulated rigid tank having a volume of .25 m3 contains saturated water vapor at 100C. The water is rapidly stirred until the pressure is 1.5 bars. Determine the temperature at the final state, in C, and the work during the process, in kJ.
+
+//solution
+
+//variable initialization
+V = .25 // volume of tank in m3
+T1 = 100 // initial temperature in degree celcius
+p2 = 1.5 // final pressure in bars
+
+v = 1.673 // specific volume in m3/kg obtained using table A-2
+u1 = 2506.5 // specific internal energy in state 1 in KJ/Kg obtained from table A-2
+T2 = 273 // temperature in state 2 in degree celcius obtained from table A-4
+u2 = 2767.8 // specific internal energy in state 2 in KJ/Kg obtained from table A-4
+m = V/v // mass of the system in kg
+DeltaU = m*(u2-u1) // change in internal energy in KJ
+W = - DeltaU // from energy balance
+printf('the temperature at the final state in degree celcius is:\n T2 = %f',T2);
+printf('\nthe work during the process in KJ is:\n\tW = %f',W); \ No newline at end of file