summaryrefslogtreecommitdiff
path: root/1442/CH4/EX4.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1442/CH4/EX4.12
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 '1442/CH4/EX4.12')
-rwxr-xr-x1442/CH4/EX4.12/4_12.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1442/CH4/EX4.12/4_12.sce b/1442/CH4/EX4.12/4_12.sce
new file mode 100755
index 000000000..0d5ee2f5d
--- /dev/null
+++ b/1442/CH4/EX4.12/4_12.sce
@@ -0,0 +1,20 @@
+clc
+//initialisation of variables
+V= 0.2 //m^3
+v1= 0.02995 //m^3/kg
+u2= 2826.7 //kJ/kg
+u1= 2747.7 //kJ/kg
+h2= 3092.5 //kJ/kg
+h1= 2987.3 //kJ/kg
+p= 4 //Mpa
+v2= 0.06645 //m^3/kg
+v1= 0.02995 //m^3/kg
+//CALCULATIONS
+m= V/v1
+U= m*(u2-u1)
+H= m*(h2-h1)
+W= m*p*10^3*(v2-v1)
+Q= U+W
+//RESULTS
+printf (' work = %.1f kJ',W)
+printf ('\n heat interaction = %.1f kJ',Q)