summaryrefslogtreecommitdiff
path: root/1442/CH4/EX4.12/4_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '1442/CH4/EX4.12/4_12.sce')
-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)