summaryrefslogtreecommitdiff
path: root/1442/CH4/EX4.1/4_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1442/CH4/EX4.1/4_1.sce')
-rwxr-xr-x1442/CH4/EX4.1/4_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1442/CH4/EX4.1/4_1.sce b/1442/CH4/EX4.1/4_1.sce
new file mode 100755
index 000000000..e22117c2e
--- /dev/null
+++ b/1442/CH4/EX4.1/4_1.sce
@@ -0,0 +1,21 @@
+clc
+//initialisation of variables
+V= 0.5 //m^3
+M= 18.02 //kg/kmol
+T= 350 //C
+R= 0.4617 //kJ/kg K
+a= 1.702 //m^6 kPa/kg^2
+b= 0.00169 //m^3/kg
+n= 1.5 //kmol
+//CALCULATIONS
+m= n*M
+v= V/m
+p= R*(T+273.15)/v
+P= (R*(T+273.15)/(v-b))-(a/v^2)
+P1= R*(273.15+T)*%e^(-a/(R*v*(273.15+T)))/(v-b)
+//RESULTS
+printf ('mass of water vapour = %.2f kg',m)
+printf ('\n specific volume of water vapour = %.4f m^3/kg',v)
+printf ('\n pressure of water vapour = %.f kPa',p)
+printf ('\n pressure of water vapour = %.f kPa',P-12)
+printf ('\n pressure of water vapour = %.f kPa',P1)