summaryrefslogtreecommitdiff
path: root/1442/CH4
diff options
context:
space:
mode:
Diffstat (limited to '1442/CH4')
-rwxr-xr-x1442/CH4/EX4.6/4_6.sce52
-rwxr-xr-x1442/CH4/EX4.8/4_8.sce44
2 files changed, 48 insertions, 48 deletions
diff --git a/1442/CH4/EX4.6/4_6.sce b/1442/CH4/EX4.6/4_6.sce
index 0cef4a8db..929ae873d 100755
--- a/1442/CH4/EX4.6/4_6.sce
+++ b/1442/CH4/EX4.6/4_6.sce
@@ -1,26 +1,26 @@
-clc
-//initialisation of variables
-T= 296 //K
-T1= 250 //K
-T2= 300 //K
-v= 0.1257 //m^3/kg
-v1= 0.11144 //m^3/kg
-u1= 27772.6 //kJ/kg
-u2= 2679.6 //kJ/kg
-h1= 3023.5 //kJ/kg
-h2= 2902.5 //kJ/kg
-s1= 6.7664 //kJ/kg K
-s2= 6.5433 //kJ/kg K
-//CALCULATIONS
-a1= (T-T1)/(T2-T1)
-a2= 1-a1
-V= a1*v+a2*v1
-U= a1*u1+a2*u2
-H= a1*h1+a2*h2
-S= a1*s1+a2*s2
-//RESULTS
-printf ('a2 = %.3f ',a2)
-printf ('\n specific volume = %.5f m^3/kg',V)
-printf ('\n internal energy = %.1f kJ/kg',u)
-printf ('\n enthalpy = %.1f kJ/kg',H)
-printf ('\n Entropy = %.1f kJ/kg',S)
+clc
+//initialisation of variables
+T= 296 //K
+T1= 250 //K
+T2= 300 //K
+v= 0.1257 //m^3/kg
+v1= 0.11144 //m^3/kg
+u1= 27772.6 //kJ/kg
+u2= 2679.6 //kJ/kg
+h1= 3023.5 //kJ/kg
+h2= 2902.5 //kJ/kg
+s1= 6.7664 //kJ/kg K
+s2= 6.5433 //kJ/kg K
+//CALCULATIONS
+a1= (T-T1)/(T2-T1)
+a2= 1-a1
+V= a1*v+a2*v1
+U= a1*u1+a2*u2
+H= a1*h1+a2*h2
+S= a1*s1+a2*s2
+//RESULTS
+printf ('a2 = %.3f ',a2)
+printf ('\n specific volume = %.5f m^3/kg',V)
+printf ('\n internal energy = %.1f kJ/kg',U)
+printf ('\n enthalpy = %.1f kJ/kg',H)
+printf ('\n Entropy = %.1f kJ/kg',S) \ No newline at end of file
diff --git a/1442/CH4/EX4.8/4_8.sce b/1442/CH4/EX4.8/4_8.sce
index 2f957df18..99c9bf231 100755
--- a/1442/CH4/EX4.8/4_8.sce
+++ b/1442/CH4/EX4.8/4_8.sce
@@ -1,22 +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)
+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
+T1= 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) \ No newline at end of file