summaryrefslogtreecommitdiff
path: root/1442/CH4/EX4.8
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.8
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.8')
-rwxr-xr-x1442/CH4/EX4.8/4_8.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1442/CH4/EX4.8/4_8.sce b/1442/CH4/EX4.8/4_8.sce
new file mode 100755
index 000000000..2f957df18
--- /dev/null
+++ b/1442/CH4/EX4.8/4_8.sce
@@ -0,0 +1,22 @@
+clc
+//initialisation of variables
+T= 250 //C
+T2= 300 //C
+v300= 0.6548 //m^3/kg
+v250= 0.591 //m^3/kg
+v= 0.6 //m^3/kg
+u= 3000 //kJ/kg
+u250= 2726.1 //kJ/kg
+u300= 2804.8 //kJ/kg
+T2= 510.30
+u2= 3145.26 //kJ/kg
+p= 0.4 //Mpa
+p2= 0.2 //Mpa
+//CALCULATIONS
+T1= T1+((v-v250)/(v300-v250))*(T2-T)
+u1= u250+((v-v250)/(v300-v250))*(u300-u250)
+du= u1-u
+p1= p+((u-u1)/(u2-u1))*p2
+//RESULTS
+printf ('pressure = %.3f Mpa',p1)
+printf ('\n temperature = %.f C',T2)